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_

Generated for HippoDraw Class Library by doxygen