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