14 #include "msdevstudio/MSconfig.h"
42 BinnerAxis * x = binner_factory -> create (
"BinnerLinear" );
43 BinnerAxis * y = binner_factory -> create (
"BinnerLinear" );
65 m_z_label_entries ( projector.m_z_label_entries ),
66 m_z_label_density ( projector.m_z_label_density ),
67 m_value_range( projector.m_value_range )
115 return Range ( 0.0, 1.0, 0.5 );
119 return Range ( values );
137 }
else if ( axis ==
Axes::Y ) {
142 if( model->
isLog() ) {
143 if( range.
low() < 0.0 )
return;
229 return axis ==
"Z" || axis ==
"z";
virtual void addPointReps()
Function to add the acceptable point reps.
std::vector< std::string > m_pointreps
Vector of acceptable PointReps.
Range dataRangeOnValue() const
Returns the data range on the Z axis.
AxisModelBase * m_x_axis
The AxisModel along the X axis.
AxisModelBase * m_z_axis
The AxisModel along the Z axis.
virtual void setOffset(hippodraw::Axes::Type axis, double value)=0
Sets the offset parameter on the specified axis.
The base class for the BinnerAxis hierarchy.
BinsBase * m_binner
The binner object.
virtual const Range & setBinWidth(hippodraw::Axes::Type axis, double v)
This function sets the binWidth.
The BinningProjector is an abstract class provides most of the functionality for a projector that doe...
std::string m_z_label_density
The label of the z axis when displaying density.
double getPosOnValue() const
Returns the smallest positive value on the Y axis.
hippodraw::AxisModelBase class interface
AxisModelBase * m_y_axis
The AxisModel along the Y axis.
void setScaleFactor(double)
Sets the value of the scale factor.
virtual bool hasEqualWidths() const =0
Returns true if all bins have the same width.
const std::string & getZLabel() const
Returns the label (title) of the z axis.
virtual void setRange(hippodraw::Axes::Type axis, bool)
Sets the range of the selected axis.
void setZLabel()
Sets the variable so that it can be modified.
virtual void setBinnerRange(hippodraw::Axes::Type axis, const Range &range, bool const_width)=0
Sets the Range of the binner.
A derived class of BinningProjector projects to a two dimensional histogram.
virtual ~Hist2DProjImp()
The destructor.
hippodraw::DataPointTuple namespace interface
virtual bool hasZAxis() const
A test function.
virtual Range valueRange() const
Finds the range of the projected values.
virtual void prepareValues()
Prepares the projector for plotting by executing, if needed, the binning procedure.
Hist2DProjImp()
The default constructor.
void setRange(double low, double high, double pos)
Sets the Range to the low and high values.
virtual void setDirty(bool value=true)
Sets the dirty flag to value.
double low() const
Returns the minimum of the range object.
virtual Range preferredRange(hippodraw::Axes::Type) const
Returns the preferred Range.
virtual double getPosOn(Axes::Type) const =0
Returns the minimum positive value.
hippodraw::Hist2DProjImp class interface
hippodraw::NTuple class interface.
A Factory singleton class for creating objects whose class derives from BinsBase. ...
hippodraw::BinsBase class interface
virtual Range dataRangeOn(Axes::Type) const =0
Returns the range of the raw data.
double pos() const
Returns the first positive element in range.
hippodraw::BinnerAxis class interface
DataSource * m_proj_values
The NTuple representing the result of the projection.
std::string m_z_label_entries
The label of the z axis when displaying number of entries per bin.
virtual void checkScaling()
Checks the axis scaling.
static BinnerAxisFactory * instance()
Returns a pointer to the singleton instance.
virtual const Range & getRange(hippodraw::Axes::Type axis)=0
const Range & getRange(bool scaled) const
Returns the range represented by this AxisModel.
bool isScaling() const
Returns true if the axis is being scaled.
void setLow(double x)
Sets the minimum of the range object.
double high() const
Returns the maximum of the range object.
virtual void setOffset(hippodraw::Axes::Type axis, double v)
Sets the bin offset.
A namespace to set the standard for indexing into 3 dimension data point tuple.
virtual bool isValueBinned() const
Returns true as the projected value is the result of accumulation into bins.
A Factory singleton class for creating objects whose class derives from BinnerAxis.
virtual bool isLog() const =0
Returns a boolean describing the type of the scale of the axis.
static BinsFactory * instance()
Returns a pointer to the singleton instance.
virtual const Range & setBinWidth(hippodraw::Axes::Type axis, double value)=0
Sets the bin width parameter on the specified axis.
virtual double scaleFactor() const
Returns the scale factor.
void setScaling(bool on=true)
Sets axis scaling on if on is true.
The AxisModelBase class maintains the Range and scaling of an axis.
Type * create(const std::string &name)
Creates a new object from a prototype named name.
virtual void setBinnerOn(BinnerAxis *, hippodraw::Axes::Type axis)=0
Sets the bin calculator on specified axis.
Expresses a range of values.
A namespace to set the standard for indexing into 2 dimension data point tuple.
The base class for the Projector hierarchy.
virtual bool wantsScaleFactor(const std::string &axis) const
Returns true if axis is the Z axis.