mpFXY Class Reference

#include <mathplot.h>

Inheritance diagram for mpFXY:
mpLayer mpFXYVector

List of all members.

Public Member Functions

 mpFXY (wxString name=wxEmptyString, int flags=mpALIGN_NE)
virtual void Rewind ()=0
virtual bool GetNextXY (double &x, double &y)=0
virtual void Plot (wxDC &dc, mpWindow &w)

Protected Member Functions

void UpdateViewBoundary (wxCoord xnew, wxCoord ynew)

Protected Attributes

int m_flags
 Holds label alignment.
wxCoord maxDrawX
wxCoord minDrawX
wxCoord maxDrawY
wxCoord minDrawY

Detailed Description

Abstract base class providing plot and labeling functionality for a locus plot F:N->X,Y. Locus argument N is assumed to be in range 0 .. MAX_N, and implicitly derived by enumerating all locus values. Override mpFXY::Rewind and mpFXY::GetNextXY to implement a locus. Optionally implement a constructor and pass a name (label) and a label alignment to the constructor mpFXY::mpFXY. If the layer name is empty, no label will be plotted.


Constructor & Destructor Documentation

mpFXY::mpFXY ( wxString  name = wxEmptyString,
int  flags = mpALIGN_NE 
)
Parameters:
name Label
flags Label alignment, pass one of mpALIGN_NE, mpALIGN_NW, mpALIGN_SW, mpALIGN_SE.

References mpLAYER_PLOT.


Member Function Documentation

virtual bool mpFXY::GetNextXY ( double &  x,
double &  y 
) [pure virtual]

Get locus value for next N. Override this function in your implementation.

Parameters:
x Returns X value
y Returns Y value

Implemented in mpFXYVector.

Referenced by Plot().

void mpFXY::Plot ( wxDC &  dc,
mpWindow w 
) [virtual]
virtual void mpFXY::Rewind (  )  [pure virtual]

Rewind value enumeration with mpFXY::GetNextXY. Override this function in your implementation.

Implemented in mpFXYVector.

Referenced by Plot().

void mpFXY::UpdateViewBoundary ( wxCoord  xnew,
wxCoord  ynew 
) [protected]

Update label positioning data

Parameters:
xnew New x coordinate
ynew New y coordinate

References maxDrawX, maxDrawY, minDrawX, and minDrawY.

Referenced by Plot().


Member Data Documentation

int mpFXY::m_flags [protected]

Holds label alignment.

Reimplemented in mpFXYVector.

Referenced by Plot().

wxCoord mpFXY::maxDrawX [protected]

Referenced by Plot(), and UpdateViewBoundary().

wxCoord mpFXY::maxDrawY [protected]

Referenced by Plot(), and UpdateViewBoundary().

wxCoord mpFXY::minDrawX [protected]

Referenced by Plot(), and UpdateViewBoundary().

wxCoord mpFXY::minDrawY [protected]

Referenced by Plot(), and UpdateViewBoundary().


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