00001
00002
00014 #ifndef _AxisRepColor_H_
00015 #define _AxisRepColor_H_
00016
00017 #include "AxisRepBase.h"
00018
00019 namespace hippodraw {
00020
00021 class AxisModelBase;
00022 class AxisTick;
00023
00038 class MDL_HIPPOPLOT_API AxisRepColor : public AxisRepBase
00039 {
00040
00041 protected:
00042
00044 float m_axis_z_origin;
00045
00047 float m_axis_depth;
00048
00049 public:
00051 AxisRepColor();
00052
00054 AxisRepColor( const AxisRepColor & axis_rep );
00055
00058 AxisRepBase * clone();
00059
00061 void drawZLabels ( const AxisModelBase & axis_model,
00062 ViewBase & view,
00063 const std::string & z_label );
00064
00065
00070 void drawAllZTicks( const AxisModelBase & axis_model,
00071 const TransformBase & transform,
00072 ViewBase & view );
00073 private:
00074
00076 void drawZTickLines ( const AxisModelBase & axisModel,
00077 const TransformBase & transform,
00078 ViewBase & view );
00079
00081 void drawZTickLabels ( const AxisModelBase & axisModel,
00082 const TransformBase & transform,
00083 ViewBase & view );
00084
00087 virtual void drawColorScale ( const BinToColor &, ViewBase & );
00088
00089 };
00090
00091 }
00092
00093 #endif // _AxisRepColor_H_