Interface class defining a color mapping function. More...
#include <MeshVizXLM/mapping/interfaces/MiColorMapping.h>
Public Member Functions | |
virtual | ~MiColorMapping () |
virtual _TColor | getColor (_TValue value) const =0 |
Returns the color associated with the given value. | |
virtual void | getRange (_TValue &min, _TValue &max) const |
Returns the range of values for the colormap. | |
virtual size_t | getTimeStamp () const =0 |
Returns for this colormap a unique time stamp across all colormaps in the application. | |
Interface class defining a color mapping function.
This abstract class specifies the interface used to map a value of a scalar data set to a color. It is used when displaying scalar data sets as colors.
In order to define a custom color mapping, create a class derived from this class.
Definition at line 43 of file MiColorMapping.h.
|
inlinevirtual |
Definition at line 46 of file MiColorMapping.h.
|
pure virtual |
Returns the color associated with the given value.
|
inlinevirtual |
Returns the range of values for the colormap.
Definition at line 57 of file MiColorMapping.h.
|
pure virtual |
Returns for this colormap a unique time stamp across all colormaps in the application.
When the content of the colormap changes, the time stamp must increase. The time stamp allows representations to identify this colormap and to be aware of any changes to it.