JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
jarmos.visual.ColorGenerator Class Reference

The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats. More...

Public Member Functions

float[] getDefaultColor (int size)
 Returns an array with "size" default colors (effectively 4*size RGBT values) More...
 
float[] computeColors (float[] fieldValues)
 Computes a 4-tuple color array with values R, G, B, Alpha for the given field values. More...
 

Public Attributes

ColorMap ColorMap
 The color map to use. More...
 
float alphaValue = 0.8f
 default alpha value, use 1.0f for nonblend rendering More...
 

Detailed Description

The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats.

The resulting array is four times the size of the original array.

For coloring, any given ColorMap instance is used to obtain suitable coloring. If none is given, the #getDefaultColors method can be used.

Note
Thus far only the original colormap from rbAppMIT is included here without using the ColorMap enum.
Author
Daniel Wirtz
Date
Aug 29, 2011

Definition at line 18 of file ColorGenerator.java.

Member Function Documentation

float [] jarmos.visual.ColorGenerator.computeColors ( float[]  fieldValues)

Computes a 4-tuple color array with values R, G, B, Alpha for the given field values.

Parameters
fieldValues
Returns
The color array for the given fieldValues and color map

Definition at line 53 of file ColorGenerator.java.

float [] jarmos.visual.ColorGenerator.getDefaultColor ( int  size)

Returns an array with "size" default colors (effectively 4*size RGBT values)

Parameters
size
Returns

Definition at line 36 of file ColorGenerator.java.

Member Data Documentation

float jarmos.visual.ColorGenerator.alphaValue = 0.8f

default alpha value, use 1.0f for nonblend rendering

Definition at line 28 of file ColorGenerator.java.

ColorMap jarmos.visual.ColorGenerator.ColorMap

The color map to use.

Definition at line 23 of file ColorGenerator.java.


The documentation for this class was generated from the following file: