13 #include "msdevstudio/MSconfig.h"
27 using namespace hippodraw;
99 assert ( axis ==
Axes::X && nb > 0 );
157 bool dragging )
const
159 assert ( axis ==
"X" );
208 namespace dp = DataPoint2DTuple;
214 unsigned int columns = 4;
216 ntuple -> reserve ( rows );
218 vector < string > labels;
219 labels.push_back (
"X" );
220 labels.push_back (
"Value" );
virtual double calcOffset(const std::string &, int parm, bool dragging) const
Calculates and returns a new range from dragging slider.
virtual bool hasEqualWidths() const
Returns true if all the bins have the same width.
double getHigh() const
Returns the lower edge of the last + 1 bin through binner_axis.
Bins1DBase(const char *name)
A constructor taking a bins container name.
virtual void setOffset(hippodraw::Axes::Type axis, double value)
Sets the offset parameter on the specified axis.
std::string ERROR
YERR column label.
virtual int numberOfBins(hippodraw::Axes::Type axis) const
Returns the number of bins on specified axis.
The base class for the one-dimensional binner hierarchy.
virtual double getLow(hippodraw::Axes::Type axis) const
Returns the low value of the bins on the specified axis.
const Range & getRange() const
Returns the range.
virtual const Range & setBinWidth(hippodraw::Axes::Type axis, double value)
Sets the bin width parameter on the specified axis.
virtual const Range & setRange(hippodraw::Axes::Type axis, const Range &, bool hold_width=true)
Sets the Range on the specified axis.
virtual bool hasEqualWidths() const
Returns true if all bins have the same width.
BinnerAxis * binner_axis
The binner axis object.
virtual double getOffset() const =0
Returns the offset.
virtual double scaleFactor() const
Returns the scale factor.
virtual double axisBinWidth(int i) const =0
Returns the width of each bin.
void setLabels(const std::vector< std::string > &v)
Assigns the label to each column from the vector of strings.
virtual double getOffset(hippodraw::Axes::Type axis) const
Returns the offset parameter on specific axis.
virtual NTuple * prepareNTuple(unsigned int rows) const
Prepares the NTuple.
void resize()
Resizes the internal arrays.
virtual const Range & setBinWidth(double width)=0
Sets the bin width and adjusts the range and number of bins accordingly.
virtual BinnerAxis * clone()=0
The clone function returns an object of its own kind which is a copy of this object at this moment...
virtual int getNumberOfAxes() const
Returns the number of axes handled by the BinsBase derived class.
int axisNumberOfBins() const
Returns the number of bins.
virtual const Range & setRange(const Range &, bool hold_width=true)=0
Sets the range.
double axisGetLow() const
Returns the lower edge of the first bin.
hippodraw::NTuple class interface.
virtual double scaleFactorWid()=0
Returns the bin width associated with the scale factor.
virtual const BinnerAxis * getBinnerOn(hippodraw::Axes::Type axis) const
Returns the BinnerAxis object used by this object.
double binWidth(int i) const
Returns the width of each bin.
hippodraw::Bins1DBase class interface
bool m_values_dirty
A flag to indicate that the objects in m_values are not correct.
The base class for the BinnerAxis hierarchy.
virtual void setBinnerOn(BinnerAxis *, hippodraw::Axes::Type axis)
Sets a new BinnerAxis for the binner to use.
virtual void axisSetNumberOfBins(int nb)=0
Sets m_num_bins.
A DataSource class implemented with std::vector<double> to store the column data. ...
virtual void setNumberOfBins(hippodraw::Axes::Type axis, int num_bins)
Sets the number of bins on the the specified axis.
virtual ~Bins1DBase()
The destructor.
virtual const void setOffset(double offset)=0
Sets the offset and adjusts the range accordingly.
Expresses a range of values.
hippodraw::DataPointTuple namespace interface
double calcBinWidth(hippodraw::Axes::Type axis, int parm, bool dragging) const
Calculates the bin width from dragging slider.
virtual double calcOffset(int parm, bool dragging) const =0
Calculates and returns a double corresponding to a bin offset when dragging a slider control...
double axisGetHigh() const
Returns the lower edge of the last + 1 bin.
virtual double getConstWid() const =0
Returns the constant width parameter.
std::string WIDTH
XERR column label.
virtual const Range & getRange(hippodraw::Axes::Type axis)
Returns range from binner axis.
The base class for the binner hierarchy.
double calcBinWidth(int parm, bool dragging) const
Calculates the bin width parameter when dragging a slider control.