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

XYGrid Class Reference

#include <xygrid.h>

Inheritance diagram for XYGrid:

Inheritance graph
[legend]
Collaboration diagram for XYGrid:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYGrid (double mn, double mx, double p, long color, double rot, double step, xybool visible=xytrue)
 XYGrid (double mn, double mx, double p, long color, int style, double rot, double step, xybool visible=xytrue)
virtual ~XYGrid (void)
virtual void limit (double h)
virtual double limit (void) const
virtual void style (int s)
virtual int style (void) const
virtual xybool pointInGrid (int px, int py, int x0, int y0, int x1, int y1)
virtual xybool pick (int px, int py)
virtual int worldSize2PixelSize (double w) const
virtual void draw (void)
virtual void draw (int xmin, int ymin, int xmax, int ymax) const
virtual void boundingBox (int &xmin, int &ymin, int &xmax, int &ymax) const

Protected Attributes

double _limit
int _style

Constructor & Destructor Documentation

XYGrid::XYGrid (  double    mn,
double    mx,
double    p,
long    color,
double    rot,
double    step,
xybool    visible = xytrue
) 
 

Definition at line 21 of file xygrid.cpp.

References XYAxis::referenceTick(), and xyfalse.

XYGrid::XYGrid (  double    mn,
double    mx,
double    p,
long    color,
int    style,
double    rot,
double    step,
xybool    visible = xytrue
) 
 

Definition at line 35 of file xygrid.cpp.

References XYAxis::referenceTick(), and xyfalse.

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

Definition at line 43 of file xygrid.h.


Member Function Documentation

void XYGrid::boundingBox (  int &    xmin,
int &    ymin,
int &    xmax,
int &    ymax
)  const [virtual]
 

Implements XYObject.

Definition at line 351 of file xygrid.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, XYAxis::_size, XYAxis::_step, XYAxis::first(), limit(), MAX, MAX3, MIN, MIN3, mtRotate(), XYObject::position(), XYObject::visible(), XY_PI, and xyfalse.

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

Implements XYObject.

Reimplemented in XYGridLog.

Definition at line 175 of file xygrid.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, XYAxis::_size, XYAxis::_step, XYObject::_xmax, XYObject::_xmin, XYObject::_ymax, XYObject::_ymin, XYAxis::first(), limit(), mtEqual(), mtLessEqual(), mtRotate(), XYObject::position(), XYObject::visible(), XY_PI, and xyfalse.

void XYGrid::draw (  void    )  [virtual]
 

Implements XYObject.

Definition at line 170 of file xygrid.cpp.

double XYGrid::limit (  void    )  const [virtual]
 

Definition at line 55 of file xygrid.cpp.

References _limit.

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

void XYGrid::limit (  double    h )  [virtual]
 

Definition at line 50 of file xygrid.cpp.

References _limit.

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

Reimplemented from XYAxis.

Definition at line 83 of file xygrid.cpp.

References XYAxis::_mn, XYAxis::_mx, XYAxis::_rot, XYAxis::_size, XYAxis::_step, XYAxis::first(), limit(), mtEqual(), mtRotate(), pointInGrid(), XYObject::position(), XYObject::visible(), XY_PI, xybool, xyfalse, and xytrue.

xybool XYGrid::pointInGrid (  int    px,
int    py,
int    x0,
int    y0,
int    x1,
int    y1
)  [virtual]
 

Definition at line 70 of file xygrid.cpp.

References xybool, xyfalse, and xytrue.

Referenced by pick().

int XYGrid::style (  void    )  const [virtual]
 

Definition at line 65 of file xygrid.cpp.

References _style.

void XYGrid::style (  int    s )  [virtual]
 

Definition at line 60 of file xygrid.cpp.

References _style.

int XYGrid::worldSize2PixelSize (  double    w )  const [virtual]
 

Definition at line 150 of file xygrid.cpp.

References XYAxis::_rot, XYAxis::_size, mtDistance(), mtRotate(), XYAxis::transform(), and XY_PI.


Member Data Documentation

double XYGrid::_limit [protected]
 

Definition at line 79 of file xygrid.h.

Referenced by limit().

int XYGrid::_style [protected]
 

Definition at line 80 of file xygrid.h.

Referenced by style().


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