Relacs  0.9.8
Public Member Functions | Protected Attributes | Friends | List of all members
Plot::SurfaceElement Class Referenceabstract

#include <plot.h>

Public Member Functions

 SurfaceElement (void)
 
virtual ~SurfaceElement (void)
 
void setAxis (Plot::Axis axis)
 
void setAxis (int xaxis, int yaxis)
 
int gradient (void) const
 
void setGradient (int gradient)
 
virtual long firstX (double x1, double x2) const =0
 
virtual long lastX (double x1, double x2) const =0
 
virtual long firstY (double y1, double y2) const =0
 
virtual long lastY (double y1, double y2) const =0
 
virtual void point (long rindex, long cindex, double &x1, double &y1, double &x2, double &y2, double &z) const =0
 
virtual bool init (void)
 
virtual void xminmax (double &xmin, double &xmax, double ymin, double ymax) const
 
virtual void yminmax (double xmin, double xmax, double &ymin, double &ymax) const
 
virtual void setRange (double xmin[MaxAxis], double xmax[MaxAxis], double ymin[MaxAxis], double ymax[MaxAxis], int xpmin, int xpmax, int ypmin, int ypmax)
 

Protected Attributes

bool Own
 
int XAxis
 
int YAxis
 
int GradientIndex
 

Friends

class Plot
 

Detailed Description

Manages a single 3-D data item for plotting surfaces.

Author
Jan Benda

Constructor & Destructor Documentation

SurfaceElement ( void  )
~SurfaceElement ( void  )
virtual

Member Function Documentation

void setAxis ( Plot::Axis  axis)
void setAxis ( int  xaxis,
int  yaxis 
)
int gradient ( void  ) const
void setGradient ( int  gradient)
virtual long firstX ( double  x1,
double  x2 
) const
pure virtual

The index of the first column in the x-range x1, x2.

virtual long lastX ( double  x1,
double  x2 
) const
pure virtual

The index of the last column in the x-range x1, x2.

virtual long firstY ( double  y1,
double  y2 
) const
pure virtual

The index of the first row in the y-range y1, y2.

virtual long lastY ( double  y1,
double  y2 
) const
pure virtual

The index of the last column in the y-range y1, y2.

virtual void point ( long  rindex,
long  cindex,
double &  x1,
double &  y1,
double &  x2,
double &  y2,
double &  z 
) const
pure virtual

Returns in x1, y1, x2, and y2 the rectangle that gets the value z of the data point at row index rindex and column index\ a cindex.

virtual bool init ( void  )
inlinevirtual

Can be reimplemented for some initialization before initializing and drawing the plot.

Returns
true if the data changed
virtual void xminmax ( double &  xmin,
double &  xmax,
double  ymin,
double  ymax 
) const
inlinevirtual

Returns a sensible x-range xmin and xmax for a given y-range ymin, ymax.

virtual void yminmax ( double  xmin,
double  xmax,
double &  ymin,
double &  ymax 
) const
inlinevirtual

Returns a sensible y-range ymin and ymax for a given x-range xmin, xmax.

virtual void setRange ( double  xmin[MaxAxis],
double  xmax[MaxAxis],
double  ymin[MaxAxis],
double  ymax[MaxAxis],
int  xpmin,
int  xpmax,
int  ypmin,
int  ypmax 
)
inlinevirtual

Passes the current ranges and pixel positions to the data element after initializing but before drawing the plot.

Friends And Related Function Documentation

friend class Plot
friend

Member Data Documentation

bool Own
protected
int XAxis
protected
int YAxis
protected
int GradientIndex
protected

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