cmlabs::Point Class Reference

#include <MathClasses.h>

Inheritance diagram for cmlabs::Point:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::Point:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Point ()
 Point (JString xml)
 Point (XMLNode *node)
 Point (int px, int py, int pz=0, Size psize=Size())
virtual ~Point ()
Objectclone () const
 operator PointFloat () const
int operator[] (int n) const
bool operator== (const Point &p) const
bool operator== (const PointFloat &p) const
Point operator- (const Point &p) const
PointFloat operator- (const PointFloat &p) const
Point operator+ (const Point &p) const
PointFloat operator+ (const PointFloat &p) const
Point operator* (const Point &p) const
PointFloat operator* (const PointFloat &p) const
Point operator- (double a) const
Point operator+ (double a) const
Point operator* (double a) const
int getX () const
int getY () const
int getZ () const
Size getSize () const
bool set (int x, int y, int z=0)
bool setX (int n)
bool setY (int n)
bool setZ (int n)
bool setSize (Size s)
double getDistanceTo (Point &p) const
double getDistanceTo (PointFloat &p) const
JString print ()
JString toXML ()
bool fromXML (XMLNode *node)

Public Attributes

int x
int y
int z
Size size


Detailed Description

Definition at line 87 of file MathClasses.h.


Constructor & Destructor Documentation

cmlabs::Point::Point (  ) 

Definition at line 113 of file MathClasses.cpp.

cmlabs::Point::Point ( JString  xml  ) 

Definition at line 115 of file MathClasses.cpp.

cmlabs::Point::Point ( XMLNode node  ) 

Definition at line 120 of file MathClasses.cpp.

cmlabs::Point::Point ( int  px,
int  py,
int  pz = 0,
Size  psize = Size() 
)

Definition at line 114 of file MathClasses.cpp.

cmlabs::Point::~Point (  )  [virtual]

Definition at line 125 of file MathClasses.cpp.


Member Function Documentation

Object * cmlabs::Point::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 127 of file MathClasses.cpp.

cmlabs::Point::operator PointFloat (  )  const

Definition at line 132 of file MathClasses.cpp.

int cmlabs::Point::operator[] ( int  n  )  const

Definition at line 141 of file MathClasses.cpp.

bool cmlabs::Point::operator== ( const Point p  )  const

Definition at line 153 of file MathClasses.cpp.

bool cmlabs::Point::operator== ( const PointFloat p  )  const

Definition at line 161 of file MathClasses.cpp.

Point cmlabs::Point::operator- ( const Point p  )  const

Definition at line 169 of file MathClasses.cpp.

PointFloat cmlabs::Point::operator- ( const PointFloat p  )  const

Definition at line 176 of file MathClasses.cpp.

Point cmlabs::Point::operator+ ( const Point p  )  const

Definition at line 183 of file MathClasses.cpp.

PointFloat cmlabs::Point::operator+ ( const PointFloat p  )  const

Definition at line 190 of file MathClasses.cpp.

Point cmlabs::Point::operator* ( const Point p  )  const

Definition at line 197 of file MathClasses.cpp.

PointFloat cmlabs::Point::operator* ( const PointFloat p  )  const

Definition at line 204 of file MathClasses.cpp.

Point cmlabs::Point::operator- ( double  a  )  const

Definition at line 211 of file MathClasses.cpp.

Point cmlabs::Point::operator+ ( double  a  )  const

Definition at line 218 of file MathClasses.cpp.

Point cmlabs::Point::operator* ( double  a  )  const

Definition at line 225 of file MathClasses.cpp.

int cmlabs::Point::getX (  )  const

Definition at line 234 of file MathClasses.cpp.

int cmlabs::Point::getY (  )  const

Definition at line 235 of file MathClasses.cpp.

int cmlabs::Point::getZ (  )  const

Definition at line 236 of file MathClasses.cpp.

Size cmlabs::Point::getSize (  )  const

Definition at line 237 of file MathClasses.cpp.

bool cmlabs::Point::set ( int  x,
int  y,
int  z = 0 
)

Definition at line 239 of file MathClasses.cpp.

bool cmlabs::Point::setX ( int  n  ) 

Definition at line 240 of file MathClasses.cpp.

bool cmlabs::Point::setY ( int  n  ) 

Definition at line 241 of file MathClasses.cpp.

bool cmlabs::Point::setZ ( int  n  ) 

Definition at line 242 of file MathClasses.cpp.

bool cmlabs::Point::setSize ( Size  s  ) 

Definition at line 243 of file MathClasses.cpp.

double cmlabs::Point::getDistanceTo ( Point p  )  const

Definition at line 245 of file MathClasses.cpp.

double cmlabs::Point::getDistanceTo ( PointFloat p  )  const

Definition at line 248 of file MathClasses.cpp.

JString cmlabs::Point::print (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 252 of file MathClasses.cpp.

JString cmlabs::Point::toXML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 259 of file MathClasses.cpp.

bool cmlabs::Point::fromXML ( XMLNode node  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 263 of file MathClasses.cpp.


Member Data Documentation

Definition at line 99 of file MathClasses.h.

Definition at line 100 of file MathClasses.h.

Definition at line 101 of file MathClasses.h.

Definition at line 102 of file MathClasses.h.


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

Generated on Tue Jul 7 16:22:59 2009 for CoreLibrary by  doxygen 1.5.6