73 int red = static_cast <
int > ( r * 255. );
74 int green = static_cast <
int > ( g * 255. );
75 int blue = static_cast <
int > ( b * 255. );
77 assert ( red < 256 && green < 256 && blue < 256 );
The base class for the value to the color transformation.
void setColor(const std::string &)
Sets the color.
double m_vmin
The minimum value expected.
A Color class for creating the color object following the standard RGB color space.
The class derived from the BinToColor class.
virtual BinToColor * clone() const
Creates a copy of itself.
BinToFullColorScale(const char *name)
The constructor.
double m_dv
The distance of the expected values, i.e.
virtual void doubleToColor(double value, Color &color) const
This function does the actual calculation that transforms the given value into a color using the curr...
BinToColorScale class interface.