14 #include "msdevstudio/MSconfig.h"
24 using namespace hippodraw;
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 );
void drawValues(ViewBase *view)
Draws the projected values from protected transformed copy to view.
A LinePointRep class that draws a function by trying to make a smooth line after the transform to the...
double high() const
Returns the maximum of the range object.
std::vector< double > m_y
A cache of the points along the Y axis to be drawn.
A transform that transforms coordinates from one coordinate system to another.
virtual ~LineFunctionRep()
The destructor.
std::vector< double > m_x
A cache of the points along the X axis to be drawn.
void smoothCurve(const Range &range, TransformBase *transform, const FunctionBase *function)
Smooths the curve.
hippodraw::BinaryTransform class interface
LineFunctionRep class interface.
intp size(numeric::array arr)
The abstract base class for views.
A function that can be added to a DataRep and used in a fitter.
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...
A transform that transforms coordinates from one 2D coordinate system to another. ...
hippodraw::Range class interface
double low() const
Returns the minimum of the range object.
LineFunctionRep()
The default constructor.
Expresses a range of values.
hippodraw::FunctionBase class interface
A PointRep class that draws a column to represent the value.
hippodraw::ViewBase class interface
float size() const
Returns the size of the representation.
The base class for the point representation hierarchy.