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