#include <Color.h>
Collaboration diagram for Color:
This class represents color in a way similar to color classes of GUI tool kits such as Java and Qt. It should, thus, be straight-forward to convert from one to the other.
The compiler-generated copy constructor, destructor, and assignment operator are all valid and, thus, not explicitly implemented.
Definition at line 31 of file Color.h.
Public Member Functions | |
Color (int red=0, int green=0, int blue=0) | |
The following constructor takes red, green, and blue components as arguments. | |
int | getBlue () const |
int | getGreen () const |
int | getRed () const |
void | setColor (int red=0, int green=0, int blue=0) |
Sets the color. | |
Static Public Attributes | |
static Color | black |
The black color. | |
static Color | blue |
The blue color. | |
static Color | cyan |
The cyan color. | |
static Color | darkgray |
The dark gray color. | |
static Color | green |
The Green color. | |
static Color | lightgray |
The light gray color. | |
static Color | magenta |
The magenta color. | |
static Color | orange |
The orange color. | |
static Color | red |
the red color. | |
static Color | white |
The white color. | |
static Color | yellow |
The yellow color. | |
Private Attributes | |
int | m_blue |
The blue component of the color. | |
int | m_green |
The green component of the color. | |
int | m_red |
The red component of the color. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const Color &) |
|
The following constructor takes red, green, and blue components as arguments. The range of the values is 0 to 255. If the default values are taken, then the color will be black. |
|
|
|
|
Sets the color.
Definition at line 38 of file Color.cxx. References m_blue, m_green, and m_red. Referenced by ColorXML::createObject(), BinToUsrDefinedScale::doubleToColor(), BinToMovingBrkPt::doubleToColor(), BinToKamaeScale::doubleToColor(), BinToGreyScale::doubleToColor(), BinToFullColorScale::doubleToColor(), BinToColorScaleMovingBrkPt::doubleToColor(), BinToColorScale::doubleToColor(), and BinTo3ColorScale::doubleToColor(). |
|
|
|
The black color.
|
|
The blue color.
Referenced by FunctionRep::FunctionRep(). |
|
The cyan color.
|
|
The dark gray color.
|
|
The Green color.
|
|
The light gray color.
|
|
The blue component of the color.
Definition at line 42 of file Color.h. Referenced by getBlue(), operator<<(), and setColor(). |
|
The green component of the color.
Definition at line 39 of file Color.h. Referenced by getGreen(), operator<<(), and setColor(). |
|
The red component of the color.
Definition at line 36 of file Color.h. Referenced by getRed(), operator<<(), and setColor(). |
|
The magenta color.
|
|
The orange color.
|
|
the red color.
Referenced by PickTable::addDataRepButton(), FunctionRep::FunctionRep(), and LineDataRep::LineDataRep(). |
|
The white color.
|
|
The yellow color.
Referenced by CutRangeRep::CutRangeRep(). |