#include <BinToBGRY.h>
Definition at line 26 of file BinToBGRY.h.
Public Member Functions | |
virtual bool | acceptChangeColor () const |
Returns true if object can accept changing color,i.e. | |
BinToBGRY (const BinToBGRY &) | |
The copy constructor. | |
BinToBGRY (const char *) | |
The constructor. | |
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 current Range. | |
const std::vector < double > & | getControlPoints () const |
Returns a list of control points. | |
Range | getRange () const |
Get the Range of expected values. | |
bool | hasControlPoints () const |
Retruns true . | |
virtual bool | isUserDefined () const |
Returns true if object can be user defined. | |
const std::string & | name () const |
Returns the name of the value to color transform. | |
virtual void | setControlPoints (const std::vector< double > &points) |
Set the value of the control points. | |
void | setRange (const Range &r) |
Sets the range of the values passed. | |
Protected Attributes | |
std::vector< int > | m_blues |
vector of blues for color map. | |
std::vector< double > | m_control_points |
A set of control points that might be used for the value to color transform. | |
double | m_dv |
The distance of the expected values, i.e. | |
std::vector< int > | m_greens |
vector of greens for color map. | |
std::string | m_name |
The name of this value transform. | |
std::vector< int > | m_reds |
vector of reds for color map. | |
double | m_vmin |
The minimum value expected. | |
Static Private Attributes | |
static int | blues [256] |
static int | greens [256] |
static int | reds [256] |
BinToBGRY | ( | const char * | name | ) |
The constructor.
Definition at line 64 of file BinToBGRY.cxx.
References BinToBGRY::blues, BinToBGRY::greens, BinToColorMap::m_blues, BinToColorMap::m_greens, BinToColorMap::m_reds, and BinToBGRY::reds.
Referenced by BinToBGRY::clone().
bool acceptChangeColor | ( | ) | const [virtual, inherited] |
Returns true
if object can accept changing color,i.e.
enable the "Change color" button in plot inspector tabbed panel within inspector. Reimplemented in BinToBlack and BinToGreyScale. The base class implementation returns false
.
Reimplemented in BinToBlack, BinToGamma, BinToGreyScale, and BinToLineStyle.
Definition at line 94 of file BinToColor.cxx.
BinToColor * clone | ( | ) | const [virtual] |
Creates a copy of itself.
Implements BinToColorMap.
Definition at line 83 of file BinToBGRY.cxx.
References BinToBGRY::BinToBGRY().
void doubleToColor | ( | double | value, | |
Color & | color | |||
) | const [virtual, inherited] |
This function does the actual calculation that transforms the given value into a color using the current Range.
Implements BinToColor.
Definition at line 70 of file BinToColorMap.cxx.
References BinToColorMap::m_blues, BinToColor::m_dv, BinToColorMap::m_gamma, BinToColorMap::m_greens, BinToColorMap::m_reds, BinToColor::m_vmin, and Color::setColor().
const std::vector< double > & getControlPoints | ( | ) | const [inherited] |
Returns a list of control points.
If a derived class has control points to vary the transform of value to color returns the list of control points. Otherwise, the returned list is empty.
Definition at line 71 of file BinToColor.cxx.
References BinToColor::m_control_points.
Referenced by BinToColorXML::createElement().
Range getRange | ( | ) | const [inherited] |
Get the Range of expected values.
Definition at line 55 of file BinToColor.cxx.
References BinToColor::m_dv, and BinToColor::m_vmin.
Referenced by ContourPointRep::createContours(), and AxisRepColor::drawColorScale().
bool hasControlPoints | ( | ) | const [virtual, inherited] |
bool isUserDefined | ( | ) | const [virtual, inherited] |
Returns true
if object can be user defined.
Returns true
if value to color transform can be user defined. That is, the control points for the transform are editable. This base class implementation returns false
.
Reimplemented in BinToGamma, and BinToUsrDefinedScale.
Definition at line 85 of file BinToColor.cxx.
const std::string& name | ( | ) | const [inherited] |
void setControlPoints | ( | const std::vector< double > & | points | ) | [virtual, inherited] |
Set the value of the control points.
Interpretation of control points is left to derived classes.
Reimplemented from BinToColor.
Definition at line 37 of file BinToColorMap.cxx.
References BinToColorMap::calcGamma(), and BinToColor::m_control_points.
void setRange | ( | const Range & | r | ) | [inherited] |
Sets the range of the values passed.
Definition at line 47 of file BinToColor.cxx.
References Range::length(), Range::low(), BinToColor::m_dv, and BinToColor::m_vmin.
Referenced by ContourPointRep::drawProjectedValues(), ColorSymbolPointRep::drawProjectedValues(), and ColorBoxPointRep::drawProjectedValues().
int blues [static, private] |
Initial value:
{ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 96, 93, 90, 87, 84, 81, 78, 75, 71, 68, 65, 62, 59, 56, 53, 50, 46, 43, 40, 37, 34, 31, 28, 25, 21, 18, 15, 12, 9, 6, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Definition at line 32 of file BinToBGRY.h.
Referenced by BinToBGRY::BinToBGRY().
int greens [static, private] |
Initial value:
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 6, 9, 12, 15, 18, 21, 25, 28, 31, 34, 37, 40, 43, 46, 50, 53, 56, 59, 62, 65, 68, 71, 75, 78, 81, 84, 87, 90, 93, 96, 100, 103, 106, 109, 112, 115, 118, 121, 125, 128, 131, 134, 137, 140, 143, 146, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 149, 148, 148, 147, 146, 146, 145, 145, 144, 143, 143, 142, 141, 141, 140, 140, 137, 135, 132, 130, 127, 125, 122, 120, 117, 115, 112, 110, 107, 105, 102, 100, 93, 87, 81, 75, 68, 62, 56, 50, 43, 37, 31, 25, 18, 12, 6, 0, 2, 4, 6, 9, 11, 13, 16, 18, 20, 23, 25, 27, 29, 32, 34, 36, 39, 41, 43, 46, 48, 50, 53, 55, 57, 59, 62, 64, 66, 69, 71, 73, 76, 78, 80, 83, 85, 87, 89, 92, 94, 96, 99, 101, 103, 106, 108, 110, 113, 115, 117, 119, 122, 124, 126, 129, 131, 133, 136, 138, 140, 142, 145, 147, 149, 152, 154, 156, 159, 161, 163, 166, 168, 170, 172, 175, 177, 179, 182, 184, 186, 189, 191, 193, 196, 198, 200, 202, 205, 207, 209, 212, 214, 216, 219, 221, 223, 226, 228, 230, 232, 235, 237, 239, 242, 244, 246, 249, 251, 253, 255}
Definition at line 31 of file BinToBGRY.h.
Referenced by BinToBGRY::BinToBGRY().
std::vector< int > m_blues [protected, inherited] |
vector of blues for color map.
Definition at line 50 of file BinToColorMap.h.
Referenced by BinToBeach::BinToBeach(), BinToBGRY::BinToBGRY(), BinToBluePastel::BinToBluePastel(), BinToBlueRed::BinToBlueRed(), BinToBlueWhite::BinToBlueWhite(), BinToBWLinear::BinToBWLinear(), BinToColorMap::BinToColorMap(), BinToEosA::BinToEosA(), BinToEosB::BinToEosB(), BinToGPink::BinToGPink(), BinToGRBW::BinToGRBW(), BinToGWExpon::BinToGWExpon(), BinToGWLinear::BinToGWLinear(), BinToHardCandy::BinToHardCandy(), BinToHaze::BinToHaze(), BinToHueSatLight1::BinToHueSatLight1(), BinToHueSatLight2::BinToHueSatLight2(), BinToHueSatValue1::BinToHueSatValue1(), BinToHueSatValue2::BinToHueSatValue2(), BinToMacStyle::BinToMacStyle(), BinToNature::BinToNature(), BinToOcean::BinToOcean(), BinToPastels::BinToPastels(), BinToPeppermint::BinToPeppermint(), BinToPrism::BinToPrism(), BinToPurpleRed::BinToPurpleRed(), BinToRainbow::BinToRainbow(), BinToRainbowIDL::BinToRainbowIDL(), BinToRedPurple::BinToRedPurple(), BinToRedTemp::BinToRedTemp(), BinToStdGamma2::BinToStdGamma2(), BinToStern::BinToStern(), and BinToColorMap::doubleToColor().
std::vector< double > m_control_points [protected, inherited] |
A set of control points that might be used for the value to color transform.
Definition at line 46 of file BinToColor.h.
Referenced by BinToColor::BinToColor(), BinToColorMap::BinToColorMap(), BinToColorScaleMovingBrkPt::BinToColorScaleMovingBrkPt(), BinToGamma::BinToGamma(), BinToMovingBrkPt::BinToMovingBrkPt(), BinToUsrDefinedScale::BinToUsrDefinedScale(), BinToColorMap::calcGamma(), BinToUsrDefinedScale::doubleToColor(), BinToMovingBrkPt::doubleToColor(), BinToGamma::doubleToColor(), BinToColorScaleMovingBrkPt::doubleToColor(), BinToColor::getControlPoints(), BinToColorMap::setControlPoints(), and BinToColor::setControlPoints().
double m_dv [protected, inherited] |
The distance of the expected values, i.e.
maximum - minimum.
Definition at line 50 of file BinToColor.h.
Referenced by BinToUsrDefinedScale::doubleToColor(), BinToMovingBrkPt::doubleToColor(), BinToKamaeScale::doubleToColor(), BinToGreyScale::doubleToColor(), BinToGamma::doubleToColor(), BinToFullColorScale::doubleToColor(), BinToColorScaleMovingBrkPt::doubleToColor(), BinToColorMap::doubleToColor(), BinTo3ColorScale::doubleToColor(), BinToColor::getRange(), and BinToColor::setRange().
std::vector< int > m_greens [protected, inherited] |
vector of greens for color map.
Definition at line 47 of file BinToColorMap.h.
Referenced by BinToBeach::BinToBeach(), BinToBGRY::BinToBGRY(), BinToBluePastel::BinToBluePastel(), BinToBlueRed::BinToBlueRed(), BinToBlueWhite::BinToBlueWhite(), BinToBWLinear::BinToBWLinear(), BinToColorMap::BinToColorMap(), BinToEosA::BinToEosA(), BinToEosB::BinToEosB(), BinToGPink::BinToGPink(), BinToGRBW::BinToGRBW(), BinToGWExpon::BinToGWExpon(), BinToGWLinear::BinToGWLinear(), BinToHardCandy::BinToHardCandy(), BinToHaze::BinToHaze(), BinToHueSatLight1::BinToHueSatLight1(), BinToHueSatLight2::BinToHueSatLight2(), BinToHueSatValue1::BinToHueSatValue1(), BinToHueSatValue2::BinToHueSatValue2(), BinToMacStyle::BinToMacStyle(), BinToNature::BinToNature(), BinToOcean::BinToOcean(), BinToPastels::BinToPastels(), BinToPeppermint::BinToPeppermint(), BinToPrism::BinToPrism(), BinToPurpleRed::BinToPurpleRed(), BinToRainbow::BinToRainbow(), BinToRainbowIDL::BinToRainbowIDL(), BinToRedPurple::BinToRedPurple(), BinToRedTemp::BinToRedTemp(), BinToStdGamma2::BinToStdGamma2(), BinToStern::BinToStern(), and BinToColorMap::doubleToColor().
std::string m_name [protected, inherited] |
The name of this value transform.
Definition at line 36 of file BinToColor.h.
Referenced by BinToColor::name().
std::vector< int > m_reds [protected, inherited] |
vector of reds for color map.
Definition at line 44 of file BinToColorMap.h.
Referenced by BinToBeach::BinToBeach(), BinToBGRY::BinToBGRY(), BinToBluePastel::BinToBluePastel(), BinToBlueRed::BinToBlueRed(), BinToBlueWhite::BinToBlueWhite(), BinToBWLinear::BinToBWLinear(), BinToColorMap::BinToColorMap(), BinToEosA::BinToEosA(), BinToEosB::BinToEosB(), BinToGPink::BinToGPink(), BinToGRBW::BinToGRBW(), BinToGWExpon::BinToGWExpon(), BinToGWLinear::BinToGWLinear(), BinToHardCandy::BinToHardCandy(), BinToHaze::BinToHaze(), BinToHueSatLight1::BinToHueSatLight1(), BinToHueSatLight2::BinToHueSatLight2(), BinToHueSatValue1::BinToHueSatValue1(), BinToHueSatValue2::BinToHueSatValue2(), BinToMacStyle::BinToMacStyle(), BinToNature::BinToNature(), BinToOcean::BinToOcean(), BinToPastels::BinToPastels(), BinToPeppermint::BinToPeppermint(), BinToPrism::BinToPrism(), BinToPurpleRed::BinToPurpleRed(), BinToRainbow::BinToRainbow(), BinToRainbowIDL::BinToRainbowIDL(), BinToRedPurple::BinToRedPurple(), BinToRedTemp::BinToRedTemp(), BinToStdGamma2::BinToStdGamma2(), BinToStern::BinToStern(), and BinToColorMap::doubleToColor().
double m_vmin [protected, inherited] |
The minimum value expected.
Definition at line 54 of file BinToColor.h.
Referenced by BinToUsrDefinedScale::doubleToColor(), BinToMovingBrkPt::doubleToColor(), BinToKamaeScale::doubleToColor(), BinToGreyScale::doubleToColor(), BinToGamma::doubleToColor(), BinToFullColorScale::doubleToColor(), BinToColorScaleMovingBrkPt::doubleToColor(), BinToColorMap::doubleToColor(), BinTo3ColorScale::doubleToColor(), BinToColor::getRange(), and BinToColor::setRange().
int reds [static, private] |
Initial value:
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 15, 22, 30, 37, 45, 52, 60, 67, 75, 82, 90, 97, 105, 112, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 200, 201, 201, 202, 202, 203, 203, 204, 204, 205, 205, 206, 206, 207, 207, 208, 208, 209, 209, 210, 210, 211, 211, 212, 212, 213, 213, 214, 214, 215, 215, 216, 216, 217, 217, 218, 218, 219, 219, 220, 220, 221, 221, 222, 222, 223, 223, 224, 224, 225, 225, 226, 226, 227, 227, 228, 228, 229, 229, 230, 230, 231, 231, 232, 232, 233, 233, 234, 234, 235, 235, 236, 236, 237, 237, 238, 238, 239, 239, 240, 240, 241, 241, 242, 242, 243, 243, 244, 244, 245, 245, 246, 246, 247, 247, 248, 248, 249, 249, 250, 250, 251, 251, 252, 252, 253, 253, 254, 254, 255, 255}
Definition at line 30 of file BinToBGRY.h.
Referenced by BinToBGRY::BinToBGRY().