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 |
virtual void | getRange (_TValue &min, _TValue &max) const |
virtual size_t | getTimeStamp () const =0 |
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.
virtual MiColorMapping< _TValue, _TColor >::~MiColorMapping | ( | ) | [inline, virtual] |
virtual _TColor MiColorMapping< _TValue, _TColor >::getColor | ( | _TValue | value | ) | const [pure virtual] |
Returns the color associated with the given value.
virtual void MiColorMapping< _TValue, _TColor >::getRange | ( | _TValue & | min, | |
_TValue & | max | |||
) | const [inline, virtual] |
Returns the range of values for the colormap.
virtual size_t MiColorMapping< _TValue, _TColor >::getTimeStamp | ( | ) | const [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.