22 using namespace hippodraw;
49 string text =
function ->
name ();
51 const vector < string > & parm_names =
function->parmNames ();
52 const vector < double > & parm_values =
function->getParameters ();
54 for (
unsigned int i = 0;
i < parm_names.size ();
i++ ) {
55 text +=
"\n" + parm_names[
i];
A base class for representations that draws a value as text.
FuncParmRep()
The default constructor.
The namespace for conversion to string.
FuncParmRep class interface.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
string convert(int i)
Converts an integer to a string.
Color m_color
The color of the representation.
A Representation that draws the values of function parameters.
float m_size
The size of the representation.
The base class for the Projector hierarchy.
The abstract base class for views.
A function that can be added to a DataRep and used in a fitter.
virtual void drawProjectedValues(ProjectorBase &projector, ViewBase &view)
Draws the values from the projector to the view.
hippodraw::FunctionProjector class interface
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.
FunctionBase * function() const
Returns a pointer to the contained function.
const std::string & name() const
Returns the name of the representation.
hippodraw::FunctionBase class interface
hippodraw::ViewBase class interface
The base class for the point representation hierarchy.
A projector that plots one function.