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

XYAxis Class Reference

#include <xyax.h>

Inheritance diagram for XYAxis:

Inheritance graph
[legend]
Collaboration diagram for XYAxis:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYAxis (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)
 XYAxis (double mn, double mx, XYCoordinate x, XYCoordinate y, long color, double size, double rot, xybool arrow=xytrue, xybool visible=xytrue)
 XYAxis (double mn, double mx, XYCoordinate x, XYCoordinate y, long color, double size, double rot, double step, xybool arrow=xytrue, xybool visible=xytrue)
virtual ~XYAxis (void)
virtual void calcMinMax (double *min, double *max, double *step) const
virtual void min (double m)
virtual double min (void) const
virtual void max (double m)
virtual double max (void) const
virtual double defineMinPoint (double value, int x0, int y0) const
virtual double defineMaxPoint (double value, int x0, int y0) const
virtual void color (long c)
virtual long color (void) const
virtual void leftTick (xybool left)
virtual xybool leftTick (void) const
virtual void size (double sz)
virtual double size (void) const
virtual void rotation (double rot)
virtual double rotation (void) const
virtual void step (double s)
virtual double step (void) const
virtual void referenceTick (double f)
virtual double referenceTick (void) const
virtual double first (void) const
virtual void scaleDecorator (XYScaleDecorator *decor)
virtual XYScaleDecorator * scaleDecorator (void) const
virtual void arrow (xybool a)
virtual xybool arrow (void) const
virtual void title (XYText *t)
virtual XYText * title (void) const
virtual void adjustSize (void)
virtual void firstTick (double &tx1, double &ty1, double &tx2, double &ty2) const
virtual void insertAction (XYGraph *)
virtual void removeAction (XYGraph *)
virtual xybool pick (int px, int py)
virtual xybool fence (int x0, int y0, int x1, int y1)
virtual void drawArrow (double x0, double y0, double x1, double y1) const
virtual void boxArrow (double x0, double y0, double x1, double y1, double &xmin, double &ymin, double &xmax, double &ymax) const
virtual double transform (double e) const
virtual double valueInPoint (int x0, int y0) const
virtual double valueInPoint (double x0, double y0) const
virtual void pointInValue (double, int &, int &) const
virtual void pointInValue (double, double &, double &) const

Protected Attributes

double _mn
double _mx
long _color
double _size
double _rot
double _step
double _referenceTick
XYScaleDecorator * _decor
XYText * _title
xybool _arrow
xybool _leftTick

Static Protected Attributes

const double _arrow_size = 0.03

Constructor & Destructor Documentation

XYAxis::XYAxis (  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 22 of file xyax.cpp.

References xytrue.

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

Definition at line 41 of file xyax.cpp.

References xytrue.

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

Definition at line 57 of file xyax.cpp.

References xytrue.

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

Definition at line 67 of file xyax.h.


Member Function Documentation

void XYAxis::adjustSize (  void    )  [virtual]
 

Definition at line 350 of file xyax.cpp.

References _mn, _mx, _rot, _size, _step, XYObject::_xmax, XYObject::_xmin, XYObject::_ymax, XYObject::_ymin, mtDistance(), mtRotate(), and XY_PI.

xybool XYAxis::arrow (  void    )  const [virtual]
 

Definition at line 185 of file xyax.cpp.

References _arrow, and xybool.

void XYAxis::arrow (  xybool    a )  [virtual]
 

Definition at line 180 of file xyax.cpp.

References _arrow.

void XYAxis::boxArrow (  double    x0,
double    y0,
double    x1,
double    y1,
double &    xmin,
double &    ymin,
double &    xmax,
double &    ymax
)  const [virtual]
 

Definition at line 314 of file xyax.cpp.

References _arrow_size, and mtDistance().

void XYAxis::calcMinMax (  double *    min,
double *    max,
double *    step
)  const [virtual]
 

Definition at line 383 of file xyax.cpp.

long XYAxis::color (  void    )  const [virtual]
 

Definition at line 99 of file xyax.cpp.

References _color.

void XYAxis::color (  long    c )  [virtual]
 

Definition at line 94 of file xyax.cpp.

References _color.

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

Reimplemented in XYLogAxis, and XYLinearAxis.

Definition at line 210 of file xyax.cpp.

References _mx.

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

Reimplemented in XYLogAxis, and XYLinearAxis.

Definition at line 205 of file xyax.cpp.

References _mn.

void XYAxis::drawArrow (  double    x0,
double    y0,
double    x1,
double    y1
)  const [virtual]
 

Definition at line 297 of file xyax.cpp.

References _arrow_size, and mtDistance().

Referenced by XYPolarAxis::draw(), XYLinearAxis::draw(), and XYLogAxis::draw().

xybool XYAxis::fence (  int    x0,
int    y0,
int    x1,
int    y1
)  [virtual]
 

Definition at line 237 of file xyax.cpp.

References XYObject::boundingBox(), mtInclude(), XYObject::visible(), xybool, and xyfalse.

double XYAxis::first (  void    )  const [virtual]
 

Reimplemented in XYAngGrid, and XYRadialGrid.

Definition at line 155 of file xyax.cpp.

References _mn, _referenceTick, _step, first(), and mtLessEqual().

Referenced by XYGrid::boundingBox(), XYGrid::draw(), XYLinearAxis::draw(), first(), and XYGrid::pick().

void XYAxis::firstTick (  double &    tx1,
double &    ty1,
double &    tx2,
double &    ty2
)  const [virtual]
 

Reimplemented in XYPolarAxis.

Definition at line 249 of file xyax.cpp.

References mtEqual(), mtRotate(), and XY_PI.

Referenced by XYLinearAxis::draw().

virtual void XYAxis::insertAction (  XYGraph *    )  [inline, virtual]
 

Definition at line 151 of file xyax.h.

xybool XYAxis::leftTick (  void    )  const [virtual]
 

Definition at line 150 of file xyax.cpp.

References _leftTick, and xybool.

void XYAxis::leftTick (  xybool    left )  [virtual]
 

Definition at line 145 of file xyax.cpp.

References _leftTick.

double XYAxis::max (  void    )  const [virtual]
 

Definition at line 89 of file xyax.cpp.

References _mx.

void XYAxis::max (  double    m )  [virtual]
 

Definition at line 84 of file xyax.cpp.

References _mx.

Referenced by XYCartesianArea::boundingBox(), XYLogAxis::defineMaxPoint(), XYLogScaleDecorator::draw(), and XYCartesianArea::getClip().

double XYAxis::min (  void    )  const [virtual]
 

Definition at line 79 of file xyax.cpp.

References _mn.

Referenced by XYGridLog::draw().

void XYAxis::min (  double    m )  [virtual]
 

Definition at line 74 of file xyax.cpp.

References _mn.

Referenced by XYCartesianAreaMask::boundingBox(), XYCartesianArea::boundingBox(), XYLogAxis::defineMinPoint(), XYLogScaleDecorator::draw(), and XYCartesianArea::getClip().

xybool XYAxis::pick (  int    px,
int    py
)  [virtual]
 

Reimplemented in XYAngGrid, XYGrid, and XYRadialGrid.

Definition at line 225 of file xyax.cpp.

References XYObject::boundingBox(), mtPointInRect(), XYObject::visible(), xybool, and xyfalse.

virtual void XYAxis::pointInValue (  double   ,
double &   ,
double &   
)  const [inline, virtual]
 

Reimplemented in XYLogAxis, and XYLinearAxis.

Definition at line 182 of file xyax.h.

virtual void XYAxis::pointInValue (  double   ,
int &   ,
int &   
)  const [inline, virtual]
 

Reimplemented in XYLogAxis, and XYLinearAxis.

Definition at line 180 of file xyax.h.

Referenced by XYCartesianArea::pixelAt().

double XYAxis::referenceTick (  void    )  const [virtual]
 

Definition at line 140 of file xyax.cpp.

References _referenceTick.

Referenced by XYGrid::XYGrid().

void XYAxis::referenceTick (  double    f )  [virtual]
 

Definition at line 135 of file xyax.cpp.

References _referenceTick.

virtual void XYAxis::removeAction (  XYGraph *    )  [inline, virtual]
 

Definition at line 154 of file xyax.h.

double XYAxis::rotation (  void    )  const [virtual]
 

Definition at line 120 of file xyax.cpp.

References _rot.

void XYAxis::rotation (  double    rot )  [virtual]
 

Definition at line 115 of file xyax.cpp.

References _rot.

Referenced by XYCartesianMask::setMacWindow().

XYScaleDecorator * XYAxis::scaleDecorator (  void    )  const [virtual]
 

Definition at line 175 of file xyax.cpp.

References _decor.

void XYAxis::scaleDecorator (  XYScaleDecorator *    decor )  [virtual]
 

Definition at line 170 of file xyax.cpp.

References _decor.

double XYAxis::size (  void    )  const [virtual]
 

Definition at line 110 of file xyax.cpp.

References _size.

Referenced by XYLinearAxis::defineMaxPoint(), XYLogAxis::defineMaxPoint(), XYLinearAxis::valueInPoint(), and XYLogAxis::valueInPoint().

void XYAxis::size (  double    sz )  [virtual]
 

Definition at line 104 of file xyax.cpp.

References _size.

Referenced by XYLogScaleDecorator::draw().

double XYAxis::step (  void    )  const [virtual]
 

Definition at line 130 of file xyax.cpp.

References _step.

void XYAxis::step (  double    s )  [virtual]
 

Definition at line 125 of file xyax.cpp.

References _step.

Referenced by XYLogScaleDecorator::draw().

XYText * XYAxis::title (  void    )  const [virtual]
 

Definition at line 195 of file xyax.cpp.

References _title.

void XYAxis::title (  XYText *    t )  [virtual]
 

Definition at line 190 of file xyax.cpp.

References _title.

double XYAxis::transform (  double    e )  const [virtual]
 

Reimplemented in XYLogAxis.

Definition at line 200 of file xyax.cpp.

Referenced by XYGrid::worldSize2PixelSize().

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

Reimplemented in XYLogAxis, and XYLinearAxis.

Definition at line 220 of file xyax.cpp.

References _mn, and _mx.

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

Reimplemented in XYLogAxis, and XYLinearAxis.

Definition at line 215 of file xyax.cpp.

References _mn, and _mx.


Member Data Documentation

xybool XYAxis::_arrow [protected]
 

Definition at line 195 of file xyax.h.

Referenced by arrow(), XYPolarAxis::draw(), XYLinearAxis::draw(), and XYLogAxis::draw().

const double XYAxis::_arrow_size = 0.03 [static, protected]
 

Definition at line 20 of file xyax.cpp.

Referenced by boxArrow(), and drawArrow().

long XYAxis::_color [protected]
 

Definition at line 188 of file xyax.h.

Referenced by color().

XYScaleDecorator* XYAxis::_decor [protected]
 

Definition at line 193 of file xyax.h.

Referenced by XYPolarAxis::draw(), XYLinearAxis::draw(), XYLogAxis::draw(), and scaleDecorator().

xybool XYAxis::_leftTick [protected]
 

Definition at line 196 of file xyax.h.

Referenced by leftTick().

double XYAxis::_mn [protected]
 

Definition at line 187 of file xyax.h.

Referenced by adjustSize(), XYGrid::boundingBox(), XYAngGrid::boundingBox(), XYLinearAxis::defineMaxPoint(), XYLogAxis::defineMaxPoint(), defineMinPoint(), XYRadialGrid::draw(), XYGridLog::draw(), XYGrid::draw(), XYLogAxis::draw(), XYAngGrid::draw(), first(), min(), XYRadialGrid::pick(), XYGrid::pick(), XYAngGrid::pick(), XYLinearAxis::pointInValue(), XYLinearAxis::valueInPoint(), and valueInPoint().

double XYAxis::_mx [protected]
 

Definition at line 187 of file xyax.h.

Referenced by adjustSize(), XYGrid::boundingBox(), XYAngGrid::boundingBox(), defineMaxPoint(), XYLinearAxis::defineMinPoint(), XYLogAxis::defineMinPoint(), XYRadialGrid::draw(), XYGridLog::draw(), XYGrid::draw(), XYLogAxis::draw(), XYAngGrid::draw(), max(), XYRadialGrid::pick(), XYGrid::pick(), XYAngGrid::pick(), XYLinearAxis::pointInValue(), XYLinearAxis::valueInPoint(), and valueInPoint().

double XYAxis::_referenceTick [protected]
 

Definition at line 192 of file xyax.h.

Referenced by first(), and referenceTick().

double XYAxis::_rot [protected]
 

Definition at line 190 of file xyax.h.

Referenced by adjustSize(), XYGrid::boundingBox(), XYLinearAxis::defineMaxPoint(), XYLogAxis::defineMaxPoint(), XYLinearAxis::defineMinPoint(), XYLogAxis::defineMinPoint(), XYGridLog::draw(), XYGrid::draw(), XYPolarAxis::draw(), XYLinearAxis::draw(), XYLogAxis::draw(), XYPolarAxis::firstTick(), XYGrid::pick(), XYLinearAxis::pointInValue(), XYLogAxis::pointInValue(), rotation(), XYLinearAxis::valueInPoint(), XYLogAxis::valueInPoint(), and XYGrid::worldSize2PixelSize().

double XYAxis::_size [protected]
 

Definition at line 189 of file xyax.h.

Referenced by adjustSize(), XYGrid::boundingBox(), XYAngGrid::boundingBox(), XYLinearAxis::defineMinPoint(), XYLogAxis::defineMinPoint(), XYRadialGrid::draw(), XYGridLog::draw(), XYGrid::draw(), XYPolarAxis::draw(), XYLinearAxis::draw(), XYLogAxis::draw(), XYAngGrid::draw(), XYPolarAxis::firstTick(), XYRadialGrid::pick(), XYGrid::pick(), XYAngGrid::pick(), XYLinearAxis::pointInValue(), XYLogAxis::pointInValue(), size(), and XYGrid::worldSize2PixelSize().

double XYAxis::_step [protected]
 

Definition at line 191 of file xyax.h.

Referenced by adjustSize(), XYGrid::boundingBox(), XYAngGrid::boundingBox(), XYRadialGrid::draw(), XYGridLog::draw(), XYGrid::draw(), XYPolarAxis::draw(), XYLinearAxis::draw(), XYLogAxis::draw(), XYAngGrid::draw(), first(), XYRadialGrid::pick(), XYGrid::pick(), XYAngGrid::pick(), and step().

XYText* XYAxis::_title [protected]
 

Definition at line 194 of file xyax.h.

Referenced by XYPolarAxis::draw(), XYLinearAxis::draw(), XYLogAxis::draw(), and title().


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