MIRA
|
Base class for tabular color colormaps. More...
#include <image/Colormap.h>
Public Types | |
typedef iterator | const_iterator |
Public Member Functions | |
TabularColormap (const uint8 *pData, std::size_t pSize) | |
Creates a new TabularColormap using the specified color table that is specified as first parameter. More... | |
virtual std::size_t | size () const |
Returns the number of elements in the colormap. More... | |
virtual Color::RGB | get (std::size_t idx) const |
Returns the color in the colormap at the given index. More... | |
Color::RGB | operator() (std::size_t idx) |
Returns the color in the colormap at the given index. More... | |
Color::RGB | operator[] (std::size_t idx) |
Returns the color in the colormap at the given index. More... | |
iterator | begin () |
Gives an iterator to the beginning of the colormap. More... | |
const_iterator | begin () const |
Gives a const iterator to the beginning of the colormap. More... | |
iterator | end () |
Gives an iterator to the end of the colormap. More... | |
const_iterator | end () const |
Gives an const iterator to the end of the colormap. More... | |
Class const & | getClass () const |
call the virtual internalGetClass(). More... | |
Static Public Member Functions | |
static PseudoClass const & | CLASS () |
Protected Member Functions | |
virtual Class const & | internalGetClass () const =0 |
Base class for tabular color colormaps.
Tabular color colormaps are discrete color colormaps, where each color is read from a predefined table that must be specified in the constructor.
|
inherited |
|
inline |
Creates a new TabularColormap using the specified color table that is specified as first parameter.
The size of that color table is specified as second parameter.
|
inlinevirtual |
Returns the number of elements in the colormap.
Some colormaps like ContinuousColormap can be resized dynamically.
Implements Colormap.
|
inlinevirtual |
Returns the color in the colormap at the given index.
Implements Colormap.
|
inlineinherited |
Returns the color in the colormap at the given index.
|
inlineinherited |
Returns the color in the colormap at the given index.
|
inlineinherited |
Gives an iterator to the beginning of the colormap.
|
inlineinherited |
Gives a const iterator to the beginning of the colormap.
|
inlineinherited |
Gives an iterator to the end of the colormap.
|
inlineinherited |
Gives an const iterator to the end of the colormap.
|
inlineinherited |
call the virtual internalGetClass().
|
inlinestaticinherited |
|
protectedpure virtualinherited |