14 #include "msdevstudio/MSconfig.h"
31 using namespace hippodraw;
33 #ifdef ITERATOR_MEMBER_DEFECT
46 BinnerAxis * binner = binner_factory -> create (
"BinnerLinear" );
66 m_y_label_entries ( projector.m_y_label_entries ),
67 m_y_label_density ( projector.m_y_label_density )
133 namespace dp = hippodraw::DataPoint2DTuple;
142 return Range ( 0.0, 1.0, 0.5 );
146 return Range ( values );
161 if( range.
low() < 0.0 )
return;
189 return axis ==
"Y" || axis ==
"y";
virtual bool isValueBinned() const
Returns true as the projected value is the result of accumulation into bins.
The BinningProjector is an abstract class provides most of the functionality for a projector that doe...
Type * create(const std::string &name)
Creates a new object from a prototype named name.
AxisModelBase * m_x_axis
The AxisModel along the X axis.
double high() const
Returns the maximum of the range object.
virtual bool hasEqualWidths() const =0
Returns true if all bins have the same width.
Hist1DProjImp()
The default constructor.
A derived class of BinningProjector that implements the member function common to classes implementin...
A Factory singleton class for creating objects whose class derives from BinnerAxis.
virtual Range preferredRange(hippodraw::Axes::Type) const
Returns the preferred Range.
A Factory singleton class for creating objects whose class derives from BinsBase. ...
virtual ~Hist1DProjImp()
The Destructor.
virtual void reset()
Resets the bins.
void setLow(double x)
Sets the minimum of the range object.
virtual void setRange(hippodraw::Axes::Type, bool)
virtual bool wantsScaleFactor(const std::string &axis) const
Returns true if axis is the Y axis.
void setRange(double low, double high, double pos)
Sets the Range to the low and high values.
virtual void addPointReps()
Function to add the acceptable point reps.
Range dataRangeOnValue() const
Returns the data range on the Y axis.
hippodraw::NTuple class interface.
hippodraw::BinsBase class interface
BinsBase * m_binner
The binner object.
The base class for the BinnerAxis hierarchy.
static BinsFactory * instance()
Returns a pointer to the singleton instance.
virtual Range dataRangeOn(Axes::Type) const =0
Returns the range of the raw data.
std::string m_y_label_density
The label of the y axis when axis is not scaled.
virtual bool isLog() const =0
Returns a boolean describing the type of the scale of the axis.
virtual void setBinnerOn(BinnerAxis *, hippodraw::Axes::Type axis)=0
Sets the bin calculator on specified axis.
void setScaleFactor(double)
Sets the value of the scale factor.
hippodraw::AxisModelBase class interface
DataSource * m_proj_values
The NTuple representing the result of the projection.
virtual void prepareValues()
Prepares the projector for plotting by executing, if needed, the binning procedure.
static BinnerAxisFactory * instance()
Returns a pointer to the singleton instance.
virtual double scaleFactor() const
Returns the scale factor.
const Range & getRange(bool scaled) const
Returns the range represented by this AxisModel.
virtual Range valueRange() const
Finds the range of the projected values.
void setScaling(bool on=true)
Sets axis scaling on if on is true.
double low() const
Returns the minimum of the range object.
Expresses a range of values.
std::vector< std::string > m_pointreps
Vector of acceptable PointReps.
double getPosOnValue() const
Returns the smallest positive value on the Y axis.
hippodraw::DataPointTuple namespace interface
AxisModelBase * m_y_axis
The AxisModel along the Y axis.
virtual void checkScaling()
Checks the axis scaling.
hippodraw::BinnerAxis class interface
virtual double getPosOn(Axes::Type) const =0
Returns the minimum positive value.
double pos() const
Returns the first positive element in range.
Hist1DProjImp class interface.
std::string m_y_label_entries
The label of the y axis when axis is scaled.
virtual void setBinnerRange(hippodraw::Axes::Type axis, const Range &range, bool const_width)=0
Sets the Range of the binner.