mpFX Class Reference

#include <mathplot.h>

Inheritance diagram for mpFX:
mpLayer

List of all members.

Public Member Functions

 mpFX (wxString name=wxEmptyString, int flags=mpALIGN_RIGHT)
virtual double GetY (double x)=0
virtual void Plot (wxDC &dc, mpWindow &w)

Protected Attributes

int m_flags
 Holds label alignment.

Detailed Description

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.


Constructor & Destructor Documentation

mpFX::mpFX ( wxString  name = wxEmptyString,
int  flags = mpALIGN_RIGHT 
)
Parameters:
name Label
flags Label alignment, pass one of mpALIGN_RIGHT, mpALIGN_CENTER, mpALIGN_LEFT.

References mpLAYER_PLOT.


Member Function Documentation

virtual double mpFX::GetY ( double  x  )  [pure virtual]

Get function value for argument. Override this function in your implementation.

Parameters:
x Argument
Returns:
Function value

Referenced by Plot().

void mpFX::Plot ( wxDC &  dc,
mpWindow w 
) [virtual]

Member Data Documentation

int mpFX::m_flags [protected]

Holds label alignment.

Referenced by Plot().


The documentation for this class was generated from the following files:

© 2003 David Schalig, 2007-2008 Davide Rondini. Generated on Sun Dec 13 12:39:25 2009 for wxMathPlot with Doxygen. Hosted on SourceForge.net Logo