BinToColor.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _BinToColor_H_
15 #define _BinToColor_H_
16 
17 #include "axes/Range.h"
18 #include "graphics/Color.h"
19 
20 namespace hippodraw {
21 
31 {
32 
33  protected:
34 
36  std::string m_name;
37 
46  std::vector < double > m_control_points;
47 
50  double m_dv;
51 
54  double m_vmin;
55 
58  BinToColor ( const char * name );
59 
62  BinToColor ( const std::string &);
63 
64  public:
65 
67  BinToColor ( const BinToColor & bin_to_color );
68 
70  virtual ~BinToColor();
71 
73  virtual BinToColor * clone () const = 0;
74 
77  const std::string & name () const;
78 
80  void setRange( const Range & r );
81 
84  Range getRange () const;
85 
89  virtual void doubleToColor ( double value, Color & color ) const = 0;
90 
95  virtual bool hasControlPoints () const;
96 
102  const std::vector < double > & getControlPoints () const;
103 
107  virtual void setControlPoints ( const std::vector < double > & points );
108 
114  virtual bool isUserDefined () const;
115 
121  virtual bool acceptChangeColor () const;
122 
123 };
124 
125 } // namespace hippodraw
126 
127 #endif // _BinToColor_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
The base class for the value to the color transformation.
Definition: BinToColor.h:30
double m_vmin
The minimum value expected.
Definition: BinToColor.h:54
std::vector< double > m_control_points
A set of control points that might be used for the value to color transform.
Definition: BinToColor.h:46
A Color class for creating the color object following the standard RGB color space.
Definition: Color.h:37
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
Color class interface.
std::string m_name
The name of this value transform.
Definition: BinToColor.h:36
hippodraw::Range class interface
double m_dv
The distance of the expected values, i.e.
Definition: BinToColor.h:50
Expresses a range of values.
Definition: Range.h:33

Generated for HippoDraw Class Library by doxygen