mpProfile Class Reference

#include <mathplot.h>

Inheritance diagram for mpProfile:

List of all members.

Public Member Functions

 mpProfile (wxString name=wxEmptyString, int flags=mpALIGN_TOP)
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:Y->X. Override mpProfile::GetX to implement a function. This class is similar to mpFY, but the Plot method is different. The plot is in fact represented by lines instead of points, which gives best rendering of rapidly-varying functions, and in general, data which are not so close one to another. Optionally implement a constructor and pass a name (label) and a label alignment to the constructor mpProfile::mpProfile. If the layer name is empty, no label will be plotted.

Constructor & Destructor Documentation

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

References mpLAYER_PLOT.

Member Function Documentation

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

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

x Argument
Function value

Referenced by Plot().

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

Member Data Documentation

int mpProfile::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 Logo