cee::vis::ScalarMapperFilledContours
-
class
ScalarMapperFilledContours
: public ScalarMapperContinuousDomain Maps scalar values to texture coordinates/colors using a filled contours style with user defined contour/color-change values.
You setup the mapper by providing an array of contour/level values, and an array of the color of the level using the setColorsAtValues() method. The first value in the values array will be the minimum value of the mapper, and the last value in the array will be the maximum value. The number of colors specified must be one less than the number of values.
Note that there is no way to set the min/max value of this mapper.
Public Functions
-
ScalarMapperFilledContours
() Constructs an empty object.
-
double
rangeMinimum
() const Returns the minimum range value.
-
double
rangeMaximum
() const Returns the maximum range value.
-
void
setColorsAtValues
(const std::vector<Color3f> &colorArray, std::vector<double> values) Sets the scalar mapper level colors from an array of colors.
-
virtual Vec2f
mapToTextureCoordinate
(double scalarValue) const Maps scalar value to texture coordinate.
-
virtual double
normalizedValue
(double domainValue) const Maps domain value (range_min -> range_max) into a normalized value (0 -> 1)
-
virtual double
domainValue
(double normalizedPosition) const Maps normalized value (0 -> 1) into a domain value (range_min -> range_max)
-
virtual unsigned int
version
() const Returns the version number of the mapper. Version is increased whenever the mapper is modified.
-
virtual std::vector<double>
tickValuesHint
() const Returns the tick value hints.
-