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

XYLinearAxis Class Reference

#include <xyaxln.h>

Inheritance diagram for XYLinearAxis:

Inheritance graph
[legend]
Collaboration diagram for XYLinearAxis:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYLinearAxis (double mn, double mx, XYCoordinate x, XYCoordinate y, long color, double size, double rot, double step, XYScaleDecorator *decor, XYText *title, xybool arrow=xytrue, xybool visible=xytrue)
 XYLinearAxis (double mn, double mx, XYCoordinate x, XYCoordinate y, long color, double size, double rot, xybool arrow=xytrue, xybool visible=xytrue)
virtual ~XYLinearAxis (void)
virtual double defineMinPoint (double value, int x0, int y0) const
virtual double defineMaxPoint (double value, int x0, int y0) const
virtual double valueInPoint (int x0, int y0) const
virtual double valueInPoint (double x0, double y0) const
virtual void pointInValue (double value, int &x0, int &y0) const
virtual void pointInValue (double value, double &x0, double &y0) const
virtual void draw (void)
virtual void draw (int xmin, int ymin, int xmax, int ymax) const
virtual void boundingBox (int &bxmin, int &bymin, int &bxmax, int &bymax) const

Constructor & Destructor Documentation

XYLinearAxis::XYLinearAxis (  double    mn,
double    mx,
XYCoordinate    x,
XYCoordinate    y,
long    color,
double    size,
double    rot,
double    step,
XYScaleDecorator *    decor,
XYText *    title,
xybool    arrow = xytrue,
xybool    visible = xytrue
) 
 

Definition at line 19 of file xyaxln.cpp.

XYLinearAxis::XYLinearAxis (  double    mn,
double    mx,
XYCoordinate    x,
XYCoordinate    y,
long    color,
double    size,
double    rot,
xybool    arrow = xytrue,
xybool    visible = xytrue
) 
 

Definition at line 36 of file xyaxln.cpp.

virtual XYLinearAxis::~XYLinearAxis (  void    )  [inline, virtual]
 

Definition at line 47 of file xyaxln.h.


Member Function Documentation

void XYLinearAxis::boundingBox (  int &    bxmin,
int &    bymin,
int &    bxmax,
int &    bymax
)  const [virtual]
 

Implements XYObject.

Definition at line 362 of file xyaxln.cpp.

References MAX, MAX3, MIN, MIN3, mtEqual(), XY_PI, and xytrue.

double XYLinearAxis::defineMaxPoint (  double    value,
int    x0,
int    y0
)  const [virtual]
 

Reimplemented from XYAxis.

Definition at line 75 of file xyaxln.cpp.

References XYAxis::_mn, XYAxis::_rot, mtEqual(), XYObject::position(), XYObject::setViewport(), XYObject::setWindow(), XYAxis::size(), and XY_PI.

double XYLinearAxis::defineMinPoint (  double    value,
int    x0,
int    y0
)  const [virtual]
 

Reimplemented from XYAxis.

Definition at line 50 of file xyaxln.cpp.

References XYAxis::_mx, XYAxis::_rot, XYAxis::_size, mtEqual(), XYObject::position(), XYObject::setViewport(), XYObject::setWindow(), and XY_PI.

void XYLinearAxis::draw (  int    xmin,
int    ymin,
int    xmax,
int    ymax
)  const [virtual]
 

Implements XYObject.

Definition at line 211 of file xyaxln.cpp.

References XYAxis::_arrow, XYAxis::_decor, XYAxis::_rot, XYAxis::_size, XYAxis::_step, XYAxis::_title, XYObject::_xmax, XYObject::_xmin, XYObject::_ymax, XYObject::_ymin, draw(), XYAxis::drawArrow(), XYAxis::first(), XYAxis::firstTick(), XYObject::getViewport(), mtEqual(), mtPointInRect(), mtRotate(), XYObject::position(), XYObject::setViewport(), XYObject::visible(), XY_PI, xyfalse, and xytrue.

void XYLinearAxis::draw (  void    )  [virtual]
 

Implements XYObject.

Definition at line 206 of file xyaxln.cpp.

Referenced by draw().

void XYLinearAxis::pointInValue (  double    value,
double &    x0,
double &    y0
)  const [virtual]
 

Reimplemented from XYAxis.

Definition at line 183 of file xyaxln.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, XYAxis::_size, XYObject::position(), and XY_PI.

void XYLinearAxis::pointInValue (  double    value,
int &    x0,
int &    y0
)  const [virtual]
 

Reimplemented from XYAxis.

Definition at line 155 of file xyaxln.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, XYAxis::_size, XYObject::position(), XYObject::setViewport(), XYObject::setWindow(), and XY_PI.

double XYLinearAxis::valueInPoint (  double    x0,
double    y0
)  const [virtual]
 

Reimplemented from XYAxis.

Definition at line 128 of file xyaxln.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, mtEqual(), XYObject::position(), XYAxis::size(), and XY_PI.

double XYLinearAxis::valueInPoint (  int    x0,
int    y0
)  const [virtual]
 

Reimplemented from XYAxis.

Definition at line 96 of file xyaxln.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, mtEqual(), XYObject::position(), XYObject::setViewport(), XYObject::setWindow(), XYAxis::size(), and XY_PI.


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