mpFY Class Reference

#include <mathplot.h>

Inheritance diagram for mpFY:
mpLayer

List of all members.

Public Member Functions

 mpFY (wxString name=wxEmptyString, int flags=mpALIGN_TOP)
virtual double GetX (double y)=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: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.


Constructor & Destructor Documentation

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

References mpLAYER_PLOT.


Member Function Documentation

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

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

Parameters:
y Argument
Returns:
Function value

Referenced by Plot().

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

Member Data Documentation

int mpFY::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