14 using namespace hippodraw;
41 double red_tmp = 255. - tmp * ( 255. - static_cast <
double > ( red) );
42 double green_tmp = 255. - tmp * ( 255. - static_cast <
double > ( green ) );
43 double blue_tmp = 255. - tmp * ( 255. - static_cast <
double > ( blue ) );
45 int ired_tmp =
static_cast< int> ( red_tmp );
46 int igreen_tmp =
static_cast< int> ( green_tmp );
47 int iblue_tmp =
static_cast< int> ( blue_tmp );
49 color.
setColor ( ired_tmp, igreen_tmp, iblue_tmp );
BinToGreyScale class interface.
The base class for the value to the color transformation.
void setColor(const std::string &)
Sets the color.
The class derived from the BinToColor class.
double m_vmin
The minimum value expected.
A Color class for creating the color object following the standard RGB color space.
BinToColor * clone() const
Creates a copy of itself.
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...
virtual bool acceptChangeColor() const
Returns true if object can accept changing color,i.e.
double m_dv
The distance of the expected values, i.e.
BinToGreyScale(const char *)
The constructor.