13 #ifndef _BinnerAxis_H_
14 #define _BinnerAxis_H_
48 virtual int getNob (
double width )
const= 0;
51 virtual int getNob (
const Range & range )
const = 0;
96 virtual double calcWidthParm (
int number )
const = 0;
108 const std::string & name ()
const;
116 virtual bool hasEqualWidths ()
const;
119 double axisGetLow()
const;
122 double axisGetHigh()
const;
125 const Range & getRange()
const;
128 int axisNumberOfBins ()
const;
131 virtual double getConstWid ( )
const = 0;
136 virtual double getBinWidth ( )
const = 0;
139 virtual void axisSetNumberOfBins(
int nb ) = 0;
143 virtual int axisBinNumber (
double x )
const = 0;
149 virtual double getCoordinate (
int i )
const = 0;
152 virtual double axisBinWidth (
int i )
const = 0;
156 virtual const std::vector< double > & binEdges ();
160 virtual const Range & setBinWidth (
double width ) = 0;
167 virtual double calcOffset (
int parm,
bool dragging )
const = 0;
170 virtual double getOffset ()
const = 0;
173 virtual const void setOffset (
double offset ) = 0;
178 virtual const Range & setRange (
const Range &,
179 bool hold_width =
true ) = 0;
182 virtual double scaleFactorWid ( ) = 0;
185 void setStartRange (
bool dragging )
const;
188 void setStartWidth (
bool dragging )
const;
197 double calcBinWidth (
int parm,
bool dragging )
const;
203 #endif // _BinnerAxis_H_
#define MDL_HIPPOPLOT_API
const std::string m_name
The name of the binner.
Range m_range_start
The Range at the start of dragging.
static int s_num_bins
The default number of bins.
static double s_bin_factor
The scale factor used to calculate new bin width from slider.
std::vector< double > m_bin_edges
The coordinates of the edges of bins.
Range m_range
The range of the bins.
double m_width
The width parameter for the binning.
numeric::array clone(numeric::array arr)
The base class for the BinnerAxis hierarchy.
hippodraw::Range class interface
double m_width_start
The width parameter at the start of dragging.
double m_offset
The offset.
Expresses a range of values.
int m_num_bins
The number of bins.
bool m_dragging
The status of dragging.