00001 /* -*- mode: c++ -*- */ 00002 00013 #ifndef _ColumnPointRep_H_ 00014 #define _ColumnPointRep_H_ 00015 00016 #include "PointRepBase.h" 00017 00018 #include "graphics/LineStyle.h" 00019 00020 #include <vector> 00021 00031 class MDL_HIPPOPLOT_API ColumnPointRep : public PointRepBase 00032 { 00036 std::vector< double > m_x; 00037 00041 std::vector< double > m_y; 00042 00045 bool m_y_flag; 00046 00049 hippodraw::Line::Style m_line_style; 00050 00052 bool m_clear_flag; 00053 00054 public: 00055 00057 ColumnPointRep(); 00058 00060 ColumnPointRep( const ColumnPointRep & point_rep ); 00061 00063 ~ColumnPointRep(); 00064 00067 virtual RepBase * clone(); 00068 00071 virtual void setColor ( const Color & color ); 00072 00075 virtual void setStyle ( unsigned int style ); 00076 00079 virtual unsigned int getStyle ( ) const; 00080 00084 virtual void setErrorOn ( const std::string & axis, bool yes = true ); 00085 00086 virtual bool yError ( ) const; 00087 00088 virtual void drawProjectedValues ( const DataSource * ntuple, 00089 TransformBase * transform, 00090 ViewBase * view ); 00091 00092 }; 00093 00094 #endif // _ColumnPointRep_H_