ErrorBarRep.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _ErrorBarRep_H_
15 #define _ErrorBarRep_H_
16 
17 #include "RepBase.h"
18 
19 #include "axes/Range.h"
20 
21 namespace hippodraw {
22 
29 {
30 
31 private:
32 
34  std::vector< double > m_x_err;
35 
37  std::vector< double > m_y_err;
38 
41  bool m_x_flag;
42 
45  bool m_y_flag;
46 
49 
52 
53 
56  void drawXError ( double x, double y, double error,
57  const TransformBase & t );
58 
61  void drawYError ( double x, double y, double error,
62  const TransformBase & t );
63 
64  public:
65 
70  ErrorBarRep ( );
71 
72 // Take the default copy constructor
73 // ErrorBarRep ( const ErrorBarRep & point_rep );
74 
76  ~ErrorBarRep();
77 
80  RepBase * clone ();
81 
83  void setXError ( bool );
84 
86  void setYError ( bool );
87 
88  virtual void drawProjectedValues ( const DataSource * ntuple,
89  TransformBase * transform,
90  ViewBase * view );
91 
92 private:
93 
96  void getRanges ( const ViewBase * view );
97 
98 };
99 
100 } // namespace hippodraw
101 
102 #endif // _ErrorBarRep_H_

Generated for HippoDraw Class Library by doxygen