Public Member Functions | Private Attributes
Point Class Reference

Class representing a two or three dimension point. More...

#include <Point.h>

Collaboration diagram for Point:
Collaboration graph
[legend]

List of all members.

Public Member Functions

double getX () const
 The following function returns the X coordinate.
double getY () const
 The following function returns the Y coordinate.
double getZ () const
 The following function returns the Z coordinate.
void moveBy (double x, double y)
 Moves the point by specified amount.
 Point (double x=0.0, double y=0.0, double z=0.0)
void setPoint (double x, double y)
void setPoint (double x, double y, double z)
void setZ (double)
 Sets the Z component of the Rectangle.

Private Attributes

double m_x
double m_y
double m_z

Detailed Description

Class representing a two or three dimension point.

Attention:
The in line functions were measured to have high profile when plotting large images.

Definition at line 25 of file Point.h.


Constructor & Destructor Documentation

Point ( double  x = 0.0,
double  y = 0.0,
double  z = 0.0 
)

Definition at line 14 of file Point.cxx.


Member Function Documentation

double getX ( ) const [inline]

The following function returns the X coordinate.

Definition at line 59 of file Point.h.

References Point::m_x.

Referenced by LinePointRep::addEndPoints(), LinePointRep::cornerCase(), Rect::getX(), Rect::makeInBounds(), and LinePointRep::separation().

double getY ( ) const [inline]

The following function returns the Y coordinate.

Definition at line 67 of file Point.h.

References Point::m_y.

Referenced by LinePointRep::addEndPoints(), LinePointRep::cornerCase(), Rect::getY(), Rect::makeInBounds(), and LinePointRep::separation().

double getZ ( ) const [inline]

The following function returns the Z coordinate.

Definition at line 74 of file Point.h.

References Point::m_z.

Referenced by Rect::getZ(), Rect::isInDepth(), and Rect::makeInBounds().

void moveBy ( double  x,
double  y 
)

Moves the point by specified amount.

Definition at line 30 of file Point.cxx.

References Point::m_x, and Point::m_y.

Referenced by Rect::moveBy().

void setPoint ( double  x,
double  y,
double  z 
)

Definition at line 24 of file Point.cxx.

References Point::m_x, Point::m_y, and Point::m_z.

void setPoint ( double  x,
double  y 
)
void setZ ( double  z)

Sets the Z component of the Rectangle.

Definition at line 36 of file Point.cxx.

References Point::m_z.

Referenced by Rect::setZ().


Member Data Documentation

double m_x [private]

Definition at line 28 of file Point.h.

Referenced by Point::getX(), Point::moveBy(), and Point::setPoint().

double m_y [private]

Definition at line 29 of file Point.h.

Referenced by Point::getY(), Point::moveBy(), and Point::setPoint().

double m_z [private]

Definition at line 30 of file Point.h.

Referenced by Point::getZ(), Point::setPoint(), and Point::setZ().


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

Generated for HippoDraw Class Library by doxygen