14 #include "msdevstudio/MSconfig.h" 73 unsigned int size = 50;
77 double tx = range.
low ();
78 double ty =
function -> operator () ( tx );
79 t -> transform ( tx, ty );
80 double txx = range.
high ();
81 double tyy =
function -> operator () ( txx );
82 t -> transform ( txx, tyy );
85 double delta = ( txx - tx ) / ( size - 1 );
87 for (
unsigned int i = 0; i <
size; i++ ) {
89 t -> inverseTransform ( tx, ty );
90 ty =
function -> operator () ( tx );
91 t -> transform ( tx, ty );
hippodraw::FunctionBase class interface
void drawProjectedValues(const Range &range, const FunctionBase *function, TransformBase *transform, ViewBase *view)
Draw the projected values.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
LineFunctionRep class interface.
A transform that transforms coordinates from one 2D coordinate system to another. ...
double high() const
Returns the maximum of the range object.
A LinePointRep class that draws a function by trying to make a smooth line after the transform to the...
std::vector< double > m_x
A cache of the points along the X axis to be drawn.
hippodraw::ViewBase class interface
LineFunctionRep()
The default constructor.
void smoothCurve(const Range &range, TransformBase *transform, const FunctionBase *function)
Smooths the curve.
The base class for the point representation hierarchy.
hippodraw::BinaryTransform class interface
virtual ~LineFunctionRep()
The destructor.
double low() const
Returns the minimum of the range object.
float size() const
Returns the size of the representation.
Expresses a range of values.
A function that can be added to a DataRep and used in a fitter.
A transform that transforms coordinates from one coordinate system to another.
void drawValues(ViewBase *view)
Draws the projected values from protected transformed copy to view.
The abstract base class for views.
A PointRep class that draws a column to represent the value.
std::vector< double > m_y
A cache of the points along the Y axis to be drawn.
hippodraw::Range class interface