Abstract base class for scalar mappers. More...
Public Member Functions | |
virtual Vec2f | mapToTextureCoordinate (double scalarValue) const =0 |
Maps scalar value to texture coordinate. More... | |
virtual Color3f | mapToColor (double scalarValue) const =0 |
Maps scalar value to color. More... | |
virtual bool | updateTexture (Image *image) const =0 |
Updates texture image based on the settings in the scalar mapper. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
Abstract base class for scalar mappers.
The scalar mapper offers two services:
|
pure virtual |
Maps scalar value to color.
Implemented in cee::vis::ScalarMapperContinuous, cee::vis::ScalarMapperFilledContoursUniform, cee::vis::ScalarMapperContinuousPiecewise, and cee::vis::ScalarMapperFilledContours.
|
pure virtual |
Maps scalar value to texture coordinate.
Implemented in cee::vis::ScalarMapperContinuous, cee::vis::ScalarMapperFilledContoursUniform, cee::vis::ScalarMapperContinuousPiecewise, and cee::vis::ScalarMapperFilledContours.
|
pure virtual |
Updates texture image based on the settings in the scalar mapper.
Implemented in cee::vis::ScalarMapperContinuous, cee::vis::ScalarMapperFilledContoursUniform, cee::vis::ScalarMapperContinuousPiecewise, and cee::vis::ScalarMapperFilledContours.