Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Protected Attributes

mpFY Class Reference


Detailed Description

Abstract base class providing plot and labeling functionality for functions F:Y->X.

Override mpFY::GetX to implement a function. Optionally implement a constructor and pass a name (label) and a label alignment to the constructor mpFY::mpFY. If the layer name is empty, no label will be plotted.

Definition at line 563 of file mathplot.h.

#include <mrpt/otherlibs/mathplot/mathplot.h>

Inheritance diagram for mpFY:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 mpFY (wxString name=wxEmptyString, int flags=mpALIGN_TOP)
virtual double GetX (double y)=0
 Get function value for argument.
virtual void Plot (wxDC &dc, mpWindow &w)
 Layer plot handler.

Protected Attributes

int m_flags
 Holds label alignment.

Constructor & Destructor Documentation

mpFY::mpFY ( wxString  name = wxEmptyString,
int  flags = mpALIGN_TOP 
)
Parameters:
nameLabel
flagsLabel alignment, pass one of mpALIGN_BOTTOM, mpALIGN_CENTER, mpALIGN_TOP.

Member Function Documentation

virtual double mpFY::GetX ( double  y) [pure virtual]

Get function value for argument.

Override this function in your implementation.

Parameters:
yArgument
Returns:
Function value
virtual void mpFY::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.


Member Data Documentation

int mpFY::m_flags [protected]

Holds label alignment.

Definition at line 585 of file mathplot.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011