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