BinnerAxisLog.h
Go to the documentation of this file.
1 /* -*- mode: c++; -*- */
2 
14 #ifndef _BinnerAxisLog_H_
15 #define _BinnerAxisLog_H_
16 
17 #include "BinnerAxis.h"
18 
19 #include <vector>
20 
21 namespace hippodraw {
22 
33 {
34 private: // data members
35 
37  BinnerAxisLog ( const BinnerAxisLog & binner );
38 
41  std::vector<double> bins;
42 
43  double calcWidthParm ( int number ) const;
44 
45 public: // member functions
46 
48  BinnerAxisLog ();
49 
51  virtual ~BinnerAxisLog();
52 
55  BinnerAxis * clone();
56 
59  virtual int axisBinNumber ( double x ) const;
60 
67  virtual double getCoordinate ( int i ) const;
68 
71  virtual double axisBinWidth ( int bins_number) const;
72 
74  virtual void axisSetNumberOfBins( int nb );
75 
77  virtual double getConstWid ( ) const;
78 
79  virtual double getBinWidth ( ) const;
80 
81 
84  virtual double scaleFactorWid ( );
85 
88  virtual const Range & setBinWidth ( double width );
89 
90  virtual double calcOffset ( int parm, bool dragging ) const;
91 
93  virtual double getOffset () const;
94 
96  virtual const void setOffset ( double offset );
97 
98 
99  virtual const Range & setRange ( const Range &,
100  bool hold_width = true );
101 
102 private: // member functions
103 
104  virtual int getNob ( double wid ) const;
105  virtual int getNob ( const Range & range ) const;
106 
109  void setBins();
110 
114  virtual void setConstWid ( );
115 
116 
117 };
118 
119 } // namespace hippodraw
120 
121 #endif // _BinnerAxisLog_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
std::vector< double > bins
Has the lower edge of each bin, starting with [0] = the first one.
Definition: BinnerAxisLog.h:41
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
The base class for the BinnerAxis hierarchy.
Definition: BinnerAxis.h:35
The class for bins of logarithmically increasing widths.
Definition: BinnerAxisLog.h:32
Expresses a range of values.
Definition: Range.h:33
hippodraw::BinnerAxis class interface

Generated for HippoDraw Class Library by doxygen