BinToHueSatLight1 Class Reference

#include <BinToHueSatLight1.h>

Inheritance diagram for BinToHueSatLight1:

Inheritance graph
BinToColorMapBinToColor
[legend]
Collaboration diagram for BinToHueSatLight1:

Collaboration graph
BinToColorMapBinToColor
[legend]

List of all members.


Detailed Description

This class implements a value to pastel colors.

Author:
Paul F. Kunz <paul_kunz@slac.stanford.edu>

Definition at line 26 of file BinToHueSatLight1.h.


Public Member Functions

virtual bool acceptChangeColor () const
 Returns true if object can accept changing color,i.e.
 BinToHueSatLight1 (const BinToHueSatLight1 &)
 The copy constructor.
 BinToHueSatLight1 (const char *)
 The constructor.
BinToColorclone () 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]

Constructor & Destructor Documentation

BinToHueSatLight1 ( const char *  name  ) 

The constructor.

Definition at line 75 of file BinToHueSatLight1.cxx.

References BinToHueSatLight1::blues, BinToHueSatLight1::greens, BinToColorMap::m_blues, BinToColorMap::m_greens, BinToColorMap::m_reds, and BinToHueSatLight1::reds.

Referenced by BinToHueSatLight1::clone().

BinToHueSatLight1 ( const BinToHueSatLight1 bin_to_color  ) 

The copy constructor.

Definition at line 89 of file BinToHueSatLight1.cxx.


Member Function Documentation

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 94 of file BinToHueSatLight1.cxx.

References BinToHueSatLight1::BinToHueSatLight1().

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]

Retruns true.

Reimplemented from BinToColor.

Definition at line 30 of file BinToColorMap.cxx.

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]

Returns the name of the value to color transform.

Reimplemented from BinToColor.

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().


Member Data Documentation

int blues [static, private]

Initial value:

{ 3, 3, 9, 15, 22, 28, 34, 41, 48, 55, 62, 66, 73, 81, 84,
94, 100, 106, 112, 118, 124, 130, 135, 141, 147, 152, 157, 162, 168,
173, 178, 183, 187, 192, 197, 201, 206, 210, 215, 219, 223, 227, 231,
235, 237, 237, 236, 236, 236, 235, 235, 235, 235, 234, 234, 234, 233,
233, 233, 232, 232, 232, 232, 231, 231, 231, 230, 230, 230, 230, 230,
229, 229, 229, 229, 228, 228, 228, 228, 228, 227, 227, 227, 227, 227,
226, 226, 226, 226, 226, 225, 225, 225, 225, 225, 225, 225, 224, 224,
224, 224, 224, 224, 224, 224, 224, 223, 223, 223, 223, 223, 223, 223,
223, 223, 223, 223, 223, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 222, 221, 220, 218, 217, 216, 214, 213, 212, 211, 210, 208,
207, 206, 206, 205, 204, 203, 202, 202, 201, 200, 200, 199, 198, 198,
197, 197, 197, 196, 197, 196, 196, 195, 195, 195, 195, 195, 195, 195,
195, 195, 195, 195, 196, 196, 197, 198, 199, 200, 201, 201, 202, 203,
204, 205, 205, 206, 207, 208, 209, 209, 210, 211, 212, 212, 213, 213,
214, 215, 216, 216, 217, 218, 218, 219, 220, 221, 221, 222, 223, 223,
224, 225, 226, 226, 227, 228, 228, 229, 230, 230, 231, 232, 232, 233,
233, 234, 235, 235, 236, 237, 237, 238, 238, 239, 240, 240, 241, 241,
242, 243, 243, 244, 244, 245, 246, 246, 247, 247, 248, 248, 249, 249,
  250, 250, 250}

Definition at line 32 of file BinToHueSatLight1.h.

Referenced by BinToHueSatLight1::BinToHueSatLight1().

int greens [static, private]

Initial value:

{ 0, 0, 0, 1, 1, 2, 2, 4, 5, 7, 8, 7, 9, 13, 8, 15, 17, 18,
20, 21, 23, 24, 26, 27, 28, 30, 31, 33, 34, 35, 37, 38, 40, 41, 42, 44,
45, 46, 48, 49, 50, 52, 53, 55, 56, 57, 59, 60, 61, 63, 64, 65, 66, 68,
69, 70, 72, 73, 74, 76, 77, 78, 79, 81, 82, 83, 84, 85, 86, 87, 88, 90,
91, 92, 93, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 107, 108, 110,
114, 118, 122, 125, 129, 132, 136, 139, 143, 146, 149, 152, 156, 158,
161, 164, 167, 170, 173, 175, 178, 181, 184, 186, 188, 191, 193, 195,
197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 216, 218, 220, 221,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
223, 224, 224, 224, 224, 224, 224, 224, 224, 225, 225, 225, 225, 225,
225, 225, 226, 226, 226, 226, 226, 226, 227, 227, 227, 227, 227, 228,
228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230,
231, 231, 232, 232, 232, 232, 232, 233, 233, 233, 234, 234, 234, 234,
235, 235, 235, 236, 236, 236, 236, 236, 237, 237, 237, 237, 238, 238,
238, 239, 239, 239, 240, 240, 241, 241, 242, 242, 242, 243, 243, 244,
  244, 245, 245, 246, 246, 247, 247, 248, 248, 249, 249, 250, 250, 250}

Definition at line 31 of file BinToHueSatLight1.h.

Referenced by BinToHueSatLight1::BinToHueSatLight1().

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.

Note:
This vector is declared in the base class so that the implementation of getControlPoints in this base class can return an empty vector, otherwise some compilers would flag an error for not returning anything.

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:

{ 251, 251, 251, 251, 252, 252, 253, 252, 252, 251, 251,
250, 250, 249, 249, 249, 248, 248, 247, 247, 246, 246, 246, 245, 245,
244, 244, 243, 243, 243, 242, 242, 241, 241, 241, 240, 240, 240, 239,
239, 239, 238, 238, 237, 235, 230, 226, 222, 217, 213, 209, 205, 201,
197, 194, 190, 186, 183, 179, 176, 173, 169, 166, 163, 160, 157, 154,
151, 148, 145, 143, 140, 137, 135, 133, 130, 128, 126, 124, 122, 120,
118, 116, 114, 112, 111, 109, 109, 110, 111, 113, 114, 115, 116, 117,
118, 119, 121, 122, 123, 125, 125, 126, 127, 128, 129, 131, 132, 133,
135, 136, 137, 138, 139, 140, 140, 141, 142, 144, 145, 146, 147, 148,
149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
163, 164, 165, 166, 167, 168, 169, 170, 171, 171, 172, 174, 174, 175,
176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 185, 186, 187, 188,
189, 190, 190, 191, 192, 193, 194, 195, 196, 197, 199, 200, 202, 203,
204, 206, 207, 208, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219,
220, 220, 221, 222, 223, 224, 225, 226, 226, 227, 228, 228, 229, 230,
230, 231, 232, 232, 233, 233, 234, 235, 235, 235, 236, 236, 236, 237,
237, 237, 238, 238, 239, 239, 239, 240, 240, 240, 241, 242, 242, 242,
242, 243, 243, 244, 244, 244, 245, 245, 246, 246, 246, 247, 247, 248,
  248, 249, 249, 250, 250, 251, 251}

Definition at line 30 of file BinToHueSatLight1.h.

Referenced by BinToHueSatLight1::BinToHueSatLight1().


The documentation for this class was generated from the following files:
Generated for HippoDraw Class Library by doxygen