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