18 using namespace hippodraw;
56 string text (
"average " );
A TextRepBase class that draws the projected values as a calculated average.
A base class for representations that draws a value as text.
The namespace for conversion to string.
std::string m_name
The name of the representation.
virtual RepBase * clone()
Returns a copy of the object.
string convert(int i)
Converts an integer to a string.
Color m_color
The color of the representation.
float m_size
The size of the representation.
virtual double getAverage(Axes::Type axis) const
Get the Average of all projected values on the specified axis.
hippodraw::Axes::Type m_axis
The axis for which the average is calculated.
The base class for the Projector hierarchy.
The abstract base class for views.
virtual void drawText(const std::string &s, float x, float y, float fontsize, float angle=0.0, char xp= 'l', char yp= 't', bool resize=false, const FontBase *font=0, const Color *color=0)=0
Draws a text string at a point in the view's coordinate system.
virtual void drawProjectedValues(ProjectorBase &projector, ViewBase &view)
Draws the values from the projector to the view.
hippodraw::AverageTextRep class interface
hippodraw::ViewBase class interface
AverageTextRep()
The default constructor.
hippodraw::NTupleProjector class interface
The base class for the point representation hierarchy.