52 black, darkgray, lightgray, white };
79 static void initColorByNameMap ();
86 explicit Color (
int red = 0,
int green = 0,
int blue = 0 );
97 explicit Color (
const std::string & name );
101 static bool isValid (
const std::string & name );
105 static void addColor (
const char * name,
const Color & color );
109 static const std::vector < std::string > & colorNames ();
115 void setColor (
const std::string & );
118 void setColor (
int red = 0,
int green = 0,
int blue = 0 );
126 int getGreen ()
const;
128 int getBlue ()
const;
#define MDL_HIPPOPLOT_API
static std::vector< std::string > s_color_names
The list of available color names.
int m_blue
The blue component of the color.
static int colorIndex
Color index for composite plotter.
static ColorMapByName_t s_color_by_name
The color by name map.
Value
A few common colors.
A Color class for creating the color object following the standard RGB color space.
int m_green
The green component of the color.
int m_red
The red component of the color.
std::map< std::string, Color > ColorMapByName_t
The type of container mapping string to Color object.
bool operator==(const double &x, const dequal< double > &d)