cee::vis::ScalarMapper Class Referenceabstract

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...
 
- Public Member Functions inherited from cee::RefCountedObject
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...
 
Inheritance diagram for cee::vis::ScalarMapper:
cee::RefCountedObject cee::vis::ScalarMapperContinuousDomain cee::vis::ScalarMapperContinuous cee::vis::ScalarMapperContinuousPiecewise cee::vis::ScalarMapperFilledContours cee::vis::ScalarMapperFilledContoursUniform

Detailed Description

Abstract base class for scalar mappers.

The scalar mapper offers two services:

  • Map from a scalar value (domain value) to a texture coordinate or a color
  • Create a texture from the scalar mapper that can be used for rendering and corresponds with the texture coordinates produced.

Member Function Documentation

virtual Color3f cee::vis::ScalarMapper::mapToColor ( double  scalarValue) const
pure virtual
virtual Vec2f cee::vis::ScalarMapper::mapToTextureCoordinate ( double  scalarValue) const
pure virtual
virtual bool cee::vis::ScalarMapper::updateTexture ( Image image) const
pure virtual