Hist2DProjImp.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _Hist2DProjImp_H_
15 #define _Hist2DProjImp_H_
16 
17 #include "BinningProjector.h"
18 
19 #include "axes/Range.h"
20 
21 namespace hippodraw {
22 
34 {
35 
36 private:
37 
39  std::string m_z_label_entries;
40 
42  std::string m_z_label_density;
43 
46 
47 protected:
48 
50  Hist2DProjImp ( const Hist2DProjImp & projector );
51 
55  virtual void checkScaling ();
56 
58  void setZLabel();
59 
61  virtual void addPointReps ();
62 
65  Range dataRangeOnValue () const;
66 
69  double getPosOnValue () const;
70 
71 public:
72 
74  Hist2DProjImp();
75 
77  virtual ~Hist2DProjImp();
78 
82  virtual Range valueRange() const;
83 
85  virtual void setRange( hippodraw::Axes::Type axis, bool );
86 
87  virtual Range preferredRange ( hippodraw::Axes::Type ) const;
88 
95  virtual const Range & setBinWidth ( hippodraw::Axes::Type axis, double v );
96  virtual void setOffset ( hippodraw::Axes::Type axis, double v );
97 
100  virtual bool isValueBinned () const;
101 
103  const std::string & getZLabel() const;
104 
106  virtual bool hasZAxis() const;
107 
110  virtual bool wantsScaleFactor ( const std::string & axis ) const;
111 
112 };
113 
114 } // namespace hippodraw
115 
116 #endif // _Hist2DProjImp_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
The BinningProjector is an abstract class provides most of the functionality for a projector that doe...
std::string m_z_label_entries
The label of the z axis when displaying number of entries per bin.
Definition: Hist2DProjImp.h:39
hippodraw::BinningProjector class interface
std::string m_z_label_density
The label of the z axis when displaying density.
Definition: Hist2DProjImp.h:42
Range m_value_range
The range of the accumulated values.
Definition: Hist2DProjImp.h:45
ViewBase * v
Definition: PlotTable.cxx:104
A derived class of BinningProjector projects to a two dimensional histogram.
Definition: Hist2DProjImp.h:33
hippodraw::Range class interface
Expresses a range of values.
Definition: Range.h:33
Type
Axes constants.
Definition: AxesType.h:31

Generated for HippoDraw Class Library by doxygen