DyHist2DProjector.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _DyHist2DProjector_H_
15 #define _DyHist2DProjector_H_
16 
17 #include "Hist2DProjImp.h"
18 #include "NTupleProjector.h"
19 
20 namespace hippodraw {
21 
34  public NTupleProjector
35 {
36 
37 private:
38 
40  std::string m_z_label_entries;
41 
43  std::string m_z_label_density;
44 
47 
48 protected:
49 
51  DyHist2DProjector ( const DyHist2DProjector & projector );
52 
57  virtual void changedNTuple();
58 
59 public:
60 
63 
66  ProjectorBase * clone();
67 
70  void execute();
71 
74  virtual Range dataRangeOn ( hippodraw::Axes::Type ) const;
75 
78  virtual double getPosOn ( hippodraw::Axes::Type axis ) const;
79 
80  virtual const Range & setBinWidth ( hippodraw::Axes::Type axis,
81  int parm,
82  bool dragging );
83 
84  virtual void setOffset ( const std::string & axis,
85  int parm,
86  bool dragging );
87 
90  virtual bool isAxisBinned ( const std::string & axis ) const;
91 
97  virtual void setBinnerRange ( hippodraw::Axes::Type axis,
98  const Range & range,
99  bool const_width );
100 
106  virtual void update ( const Observable * object );
107 
113  virtual void willDelete ( const Observable * object );
114 
115 };
116 
117 } // namespace hippodraw
118 
119 #endif // _DyHist2DProjector_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
Definition: Observable.h:39
A derived class of Hist2DProjImp and NTupleProjector that reads two columns of data and projects them...
hippodraw::Hist2DProjImp class interface
An NTupleProjector is a projector that projects data from an DataSource object.
std::string m_z_label_density
The label of the z axis when displaying density.
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
The base class for the Projector hierarchy.
Definition: ProjectorBase.h:56
A derived class of BinningProjector projects to a two dimensional histogram.
Definition: Hist2DProjImp.h:33
Expresses a range of values.
Definition: Range.h:33
std::string m_z_label_entries
The label of the z axis when displaying number of entries per bin.
hippodraw::NTupleProjector class interface
Range m_value_range
The range of the accumulated values.
Type
Axes constants.
Definition: AxesType.h:31

Generated for HippoDraw Class Library by doxygen