Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XYNumericalScaleDecorator Class Reference

#include <xysdnm.h>

Inheritance diagram for XYNumericalScaleDecorator:

Inheritance graph
[legend]
Collaboration diagram for XYNumericalScaleDecorator:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYNumericalScaleDecorator (char *format, XYRasterText *scale)
 XYNumericalScaleDecorator (char *format, double exp, XYRasterText *scale)
virtual ~XYNumericalScaleDecorator (void)
virtual void format (char *f)
virtual char * format (void) const
virtual void scale (XYRasterText *s)
virtual XYRasterTextscale (void) const
void XYNumericalScaleDecorator::exp (double e)
double XYNumericalScaleDecorator::exp (void) const
virtual void draw (const XYAxis *axis, int first_tick, int last_tick) const
virtual void boundingBox (const XYAxis *axis, int &xmin, int &ymin, int &xmax, int &ymax) const

Protected Attributes

char * _format
XYRasterText_scale
double _exp

Constructor & Destructor Documentation

XYNumericalScaleDecorator::XYNumericalScaleDecorator char *    format,
XYRasterText   scale
 

Definition at line 18 of file xysdnm.cpp.

XYNumericalScaleDecorator::XYNumericalScaleDecorator char *    format,
double    exp,
XYRasterText   scale
 

Definition at line 26 of file xysdnm.cpp.

XYNumericalScaleDecorator::~XYNumericalScaleDecorator void    [virtual]
 

Definition at line 35 of file xysdnm.cpp.


Member Function Documentation

void XYNumericalScaleDecorator::boundingBox const XYAxis   axis,
int &    xmin,
int &    ymin,
int &    xmax,
int &    ymax
const [virtual]
 

Implements XYScaleDecorator.

Definition at line 187 of file xysdnm.cpp.

References _scale, MAX3, MIN3, mtIntercept(), mtRotate(), and XY_PI.

Referenced by draw().

void XYNumericalScaleDecorator::draw const XYAxis   axis,
int    first_tick,
int    last_tick
const [virtual]
 

Implements XYScaleDecorator.

Definition at line 69 of file xysdnm.cpp.

References _scale, boundingBox(), mtIntercept(), mtLessEqual(), mtRotate(), and XY_PI.

char * XYNumericalScaleDecorator::format void    const [virtual]
 

Definition at line 54 of file xysdnm.cpp.

References _format.

void XYNumericalScaleDecorator::format char *    f [virtual]
 

Definition at line 49 of file xysdnm.cpp.

References _format.

XYRasterText * XYNumericalScaleDecorator::scale void    const [virtual]
 

Definition at line 64 of file xysdnm.cpp.

References _scale.

void XYNumericalScaleDecorator::scale XYRasterText   s [virtual]
 

Definition at line 59 of file xysdnm.cpp.

References _scale.

double XYNumericalScaleDecorator::XYNumericalScaleDecorator::exp void    const
 

void XYNumericalScaleDecorator::XYNumericalScaleDecorator::exp double    e
 


Member Data Documentation

double XYNumericalScaleDecorator::_exp [protected]
 

Definition at line 61 of file xysdnm.h.

char* XYNumericalScaleDecorator::_format [protected]
 

Definition at line 59 of file xysdnm.h.

Referenced by format().

XYRasterText* XYNumericalScaleDecorator::_scale [protected]
 

Definition at line 60 of file xysdnm.h.

Referenced by boundingBox(), draw(), and scale().


The documentation for this class was generated from the following files:
XY
Tecgraf / PUC-Rio - Computer Graphics Technology Group