LineProjector.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _LineProjector_H_
15 #define _LineProjector_H_
16 
17 #include "ProjectorBase.h"
18 
20 
21 namespace hippodraw {
22 
28 {
29 
30 private:
31 
34  double m_value;
35 
39 
42  std::string m_title;
43 
45  LineProjector( const LineProjector & );
46 
47 public:
48 
51  LineProjector ( hippodraw::Axes::Type, double value );
52 
55  virtual ~LineProjector();
56 
57  virtual ProjectorBase * clone();
58 
59  /* The required virtual functions. */
60  virtual void addPointReps ();
61  virtual bool isEmpty () const;
62  virtual Range dataRangeOn ( hippodraw::Axes::Type ) const;
63  virtual const std::string & getTitle() const;
64  virtual Range valueRange () const;
65  virtual double getPosOn ( hippodraw::Axes::Type ) const;
66  virtual const std::string & getXLabel() const;
67  virtual const std::string & getYLabel ( bool flag = false ) const;
68  virtual int getNumberOfEntries () const;
69 
71  int getUnderflow () const;
72 
74  int getOverflow () const;
75 
76  virtual DataSource * createNTuple () const;
77 
78  virtual void prepareValues ();
79 
82  void setValue ( double value );
83 
84 protected:
85 
86  virtual void fillProjectedValues ( DataSource * ntuple,
87  bool in_range = false ) const;
88 
89 };
90 
91 } // namespace hippodraw
92 
93 #endif // _LineProjector_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
double m_value
The value represented.
Definition: LineProjector.h:34
A projector that plots a value as a horizontal or vertical line.
Definition: LineProjector.h:27
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
hippodraw::ProjectorBase class interface.
The base class for the Projector hierarchy.
Definition: ProjectorBase.h:56
hippodraw::Axes::Type m_axis
The axis for the value.
Definition: LineProjector.h:38
std::string m_title
A label for the line.
Definition: LineProjector.h:42
Expresses a range of values.
Definition: Range.h:33
hippodraw::DataPointTuple namespace interface
Type
Axes constants.
Definition: AxesType.h:31
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen