Abstract base class providing plot and labeling functionality for functions F:X->Y.
Override mpFX::GetY to implement a function. Optionally implement a constructor and pass a name (label) and a label alignment to the constructor mpFX::mpFX. If the layer name is empty, no label will be plotted.
Definition at line 531 of file mathplot.h.
#include <mrpt/otherlibs/mathplot/mathplot.h>
Public Member Functions | |
mpFX (wxString name=wxEmptyString, int flags=mpALIGN_RIGHT) | |
virtual double | GetY (double x)=0 |
Get function value for argument. | |
virtual void | Plot (wxDC &dc, mpWindow &w) |
Layer plot handler. | |
Protected Attributes | |
int | m_flags |
Holds label alignment. |
mpFX::mpFX | ( | wxString | name = wxEmptyString , |
int | flags = mpALIGN_RIGHT |
||
) |
name | Label |
flags | Label alignment, pass one of mpALIGN_RIGHT, mpALIGN_CENTER, mpALIGN_LEFT. |
virtual double mpFX::GetY | ( | double | x ) | [pure virtual] |
Get function value for argument.
Override this function in your implementation.
x | Argument |
virtual void mpFX::Plot | ( | wxDC & | dc, |
mpWindow & | w | ||
) | [virtual] |
Layer plot handler.
This implementation will plot the function in the visible area and put a label according to the aligment specified.
Implements mpLayer.
int mpFX::m_flags [protected] |
Holds label alignment.
Definition at line 553 of file mathplot.h.
Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011 |