ColumnPointRep.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _ColumnPointRep_H_
15 #define _ColumnPointRep_H_
16 
17 #include "PointRepBase.h"
18 
19 namespace hippodraw {
20 
33 {
34 protected:
35 
39  std::vector< double > m_x;
40 
44  std::vector< double > m_y;
45 
48  virtual void drawValues ( ViewBase * view ) const;
49 
50 private:
51 
55 
58  bool m_y_flag;
59 
62 
63 public:
64 
67 
69  ColumnPointRep( const ColumnPointRep & point_rep );
70 
72  ~ColumnPointRep();
73 
76  virtual RepBase * clone();
77 
80  virtual void setColor ( const Color & color );
81 
84  virtual void setSize ( float value );
85 
88  virtual void setStyle ( unsigned int style );
89 
92  virtual unsigned int getStyle ( ) const;
93 
97  virtual void setErrorOn ( hippodraw::Axes::Type axis, bool yes = true );
98 
99  virtual bool yError ( ) const;
100 
101  virtual void drawProjectedValues ( const DataSource * ntuple,
102  TransformBase * transform,
103  ViewBase * view );
104 
107  virtual bool uses ( hippodraw::Line::Style ) const;
108 
109 
110 };
111 
112 } // namespace hippodraw
113 
114 #endif // _ColumnPointRep_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
hippodraw::Line::Style m_line_style
The style currently used.
A transform that transforms coordinates from one coordinate system to another.
Definition: TransformBase.h:35
bool m_y_flag
The Y error flag.
bool m_clear_flag
A flag that the cache has been cleared.
return yes
Definition: CanvasView.cxx:883
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
Style
Line style constants.
Definition: LineStyle.h:25
std::vector< double > m_y
A cache of the points to be drawn along the Y axis.
The abstract base class for views.
Definition: ViewBase.h:62
hippodraw::PointRepBase class interface
A PointRep class that draws a column to represent the value.
Type
Axes constants.
Definition: AxesType.h:31
The base class for the point representation hierarchy.
Definition: RepBase.h:45
std::vector< double > m_x
A cache of the points to be drawn along the X axis.
The base class for the point representation hierarchy.
Definition: PointRepBase.h:37
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen