AxisRepColor.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _AxisRepColor_H_
15 #define _AxisRepColor_H_
16 
17 #include "AxisRepBase.h"
18 
19 namespace hippodraw {
20 
21 class AxisModelBase;
22 class AxisTick;
23 
39 {
40 
41  protected:
42 
45 
47  float m_axis_depth;
48 
49  public:
51  AxisRepColor();
52 
54  AxisRepColor( const AxisRepColor & axis_rep );
55 
58  AxisRepBase * clone();
59 
61  void drawZLabels ( const AxisModelBase & axis_model,
62  ViewBase & view,
63  const std::string & z_label );
64 
65 
70  void drawAllZTicks( const AxisModelBase & axis_model,
71  const TransformBase & transform,
72  ViewBase & view );
73 private:
74 
76  void drawZTickLines ( const AxisModelBase & axisModel,
77  const TransformBase & transform,
78  ViewBase & view );
79 
81  void drawZTickLabels ( const AxisModelBase & axisModel,
82  const TransformBase & transform,
83  ViewBase & view );
84 
87  virtual void drawColorScale ( const BinToColor &, ViewBase & );
88 
89 };
90 
91 } // namespace hippodraw
92 
93 #endif // _AxisRepColor_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
A transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
The base class for the value to the color transformation.
Definition: BinToColor.h:30
float m_axis_z_origin
The z coordinate of the origin of the coordinate system.
Definition: AxisRepColor.h:44
hippodraw::AxisRepBase class interface
The class for the 2D axes drawing with color.
Definition: AxisRepColor.h:38
float m_axis_depth
The depth of the rectangle in which the drawing is made.
Definition: AxisRepColor.h:47
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
The AxisModelBase class maintains the Range and scaling of an axis.
Definition: AxisModelBase.h:33
The base class for the axis representation hierarchy.
Definition: AxisRepBase.h:49
The abstract base class for views.
Definition: ViewBase.h:62

Generated for HippoDraw Class Library by doxygen