This is a convenience class which uses a Palette to map a single value of a cell to a color range. More...
#include <simplecellplotter.h>
Public Member Functions | |
template<typename MEMBER , typename PALETTE > | |
SimpleCellPlotter (MEMBER CELL_TYPE::*memberPointer, const PALETTE &palette) | |
template<typename PAINTER > | |
void | operator() (const CELL_TYPE &cell, PAINTER &painter, const Coord< 2 > &cellDimensions) const |
Private Attributes | |
Selector< CELL_TYPE > | cellToColor |
This is a convenience class which uses a Palette to map a single value of a cell to a color range.
LibGeoDecomp::SimpleCellPlotter< CELL_TYPE >::SimpleCellPlotter | ( | MEMBER CELL_TYPE::* | memberPointer, | |
const PALETTE & | palette | |||
) | [inline, explicit] |
void LibGeoDecomp::SimpleCellPlotter< CELL_TYPE >::operator() | ( | const CELL_TYPE & | cell, | |
PAINTER & | painter, | |||
const Coord< 2 > & | cellDimensions | |||
) | const [inline] |
Selector<CELL_TYPE> LibGeoDecomp::SimpleCellPlotter< CELL_TYPE >::cellToColor [private] |
Referenced by LibGeoDecomp::SimpleCellPlotter< CELL_TYPE >::operator()().