14 #include "msdevstudio/MSconfig.h"
22 using namespace hippodraw;
42 return new XYPlot( *
this );
55 if ( rep ->
name () ==
"Symbol" ) {
56 rep -> setSize ( 4.0 );
57 const vector < string > & bindings =
m_projector -> getAxisBindings ();
59 bool yes = bindings[2] !=
"nil";
62 yes = bindings[3] !=
"nil";
79 const vector < string > & bindings =
m_projector -> getAxisBindings ();
81 yes = bindings[2] !=
"nil" || bindings[3] !=
"nil";
96 unsigned int index = projector -> indexOfBindingOption ( axis );
98 bool yes = label !=
"nil";
115 bool yes = bindings[2] !=
"nil";
118 yes = bindings[3] !=
"nil";
std::string m_name
The name of the display as it might be displayed in a GUI.
virtual void setAxisBinding(const std::string &axis, const std::string &label)
Sets the axis binding.
hippodraw::SymbolPointRep class interface
A derived class of NTupleProjector that maps 2 ntuple columns to a two dimensional projection...
virtual void setAxisBindings(const std::vector< std::string > &bindings)
Sets the axis bindings.
const std::string & name() const
Returns the name of the display.
virtual void setPointRep(RepBase *pointrep)
Sets the representation of the data points.
void setErrorDisplay(Axes::Type axis, bool)
Sets the display of error bar, if applicable, on the specified axis.
An NTupleProjector is a projector that projects data from an DataSource object.
virtual bool hasAxis(hippodraw::Axes::Type) const
Returns true if the data representation has specified axis type axis.
XYPlot()
The default constructor.
virtual void setYErrorOption(bool enable)
Sets whether the Y error options are to be enabled or not.
virtual const std::vector< std::string > & getAxisBindings() const
Returns the axis bindings.
RepBase * m_rep
The representation used for drawing each data point in the view.
virtual void setAxisBindings(const std::vector< std::string > &bindings)
Sets the axis bindings.
A PointRep class draws a symbol to represent the value.
virtual void setRepresentation(RepBase *point_rep)
Sets the point representation.
The base class for data representations.
virtual bool hasErrorDisplay() const
Returns true.
virtual void setXErrorOption(bool enable)
Sets whether the X error options are to be enabled or not.
bool acceptFunction(int num)
Returns true if the DataRep accepts functions on number variables.
ProjectorBase * m_projector
A projector used to transform data to projected values that will be plotted.
XYPlot classes interface.
virtual void setAxisBinding(const std::string &axis, const std::string &label)
Sets the axis bindings.
virtual DataRep * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
The base class for the point representation hierarchy.
virtual bool hasZoomY() const
Returns true to allow zooming on Y asis.
hippodraw::Map2Projector class interface