basegfx::B3DTuple Class Reference

Base class for all Points/Vectors with three double values. More...

#include <b3dtuple.hxx>

Inheritance diagram for basegfx::B3DTuple:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 B3DTuple ()
 Create a 3D Tuple.
 B3DTuple (double fX, double fY, double fZ)
 Create a 3D Tuple.
 B3DTuple (const B3DTuple &rTup)
 Create a copy of a 3D Tuple.
 B3DTuple (const B3ITuple &rTup)
 Create a copy of a 3D integer Tuple.
 ~B3DTuple ()
double getX () const
 get X-Coordinate of 3D Tuple
double getY () const
 get Y-Coordinate of 3D Tuple
double getZ () const
 get Z-Coordinate of 3D Tuple
void setX (double fX)
 set X-Coordinate of 3D Tuple
void setY (double fY)
 set Y-Coordinate of 3D Tuple
void setZ (double fZ)
 set Z-Coordinate of 3D Tuple
const double & operator[] (int nPos) const
 Array-access to 3D Tuple.
double & operator[] (int nPos)
 Array-access to 3D Tuple.
bool equalZero () const
bool equalZero (const double &rfSmallValue) const
bool equal (const B3DTuple &rTup) const
bool equal (const B3DTuple &rTup, const double &rfSmallValue) const
B3DTupleoperator+= (const B3DTuple &rTup)
B3DTupleoperator-= (const B3DTuple &rTup)
B3DTupleoperator/= (const B3DTuple &rTup)
B3DTupleoperator*= (const B3DTuple &rTup)
B3DTupleoperator*= (double t)
B3DTupleoperator/= (double t)
B3DTuple operator- (void) const
bool operator== (const B3DTuple &rTup) const
bool operator!= (const B3DTuple &rTup) const
B3DTupleoperator= (const B3DTuple &rTup)
void correctValues (const double fCompareValue=0.0)

Static Public Member Functions

static const B3DTuplegetEmptyTuple ()

Protected Attributes

double mfX
double mfY
double mfZ


Detailed Description

Base class for all Points/Vectors with three double values.

This class provides all methods common to Point avd Vector classes which are derived from here.

Derive:
Use this class to implement Points or Vectors which are based on three double values

Definition at line 47 of file b3dtuple.hxx.


Constructor & Destructor Documentation

basegfx::B3DTuple::B3DTuple (  )  [inline]

Create a 3D Tuple.

The tuple is initialized to (0.0, 0.0, 0.0)

Definition at line 59 of file b3dtuple.hxx.

Referenced by operator-().

basegfx::B3DTuple::B3DTuple ( double  fX,
double  fY,
double  fZ 
) [inline]

Create a 3D Tuple.

Parameters:
fX This parameter is used to initialize the X-coordinate of the 3D Tuple.
fY This parameter is used to initialize the Y-coordinate of the 3D Tuple.
fZ This parameter is used to initialize the Z-coordinate of the 3D Tuple.

Definition at line 79 of file b3dtuple.hxx.

basegfx::B3DTuple::B3DTuple ( const B3DTuple rTup  )  [inline]

Create a copy of a 3D Tuple.

Parameters:
rTup The 3D Tuple which will be copied.

Definition at line 90 of file b3dtuple.hxx.

basegfx::B3DTuple::B3DTuple ( const B3ITuple rTup  )  [explicit]

Create a copy of a 3D integer Tuple.

Parameters:
rTup The 3D Tuple which will be copied.

Definition at line 43 of file b3dtuple.cxx.

basegfx::B3DTuple::~B3DTuple (  )  [inline]

Definition at line 103 of file b3dtuple.hxx.


Member Function Documentation

double basegfx::B3DTuple::getX (  )  const [inline]

double basegfx::B3DTuple::getY (  )  const [inline]

double basegfx::B3DTuple::getZ (  )  const [inline]

void basegfx::B3DTuple::setX ( double  fX  )  [inline]

void basegfx::B3DTuple::setY ( double  fY  )  [inline]

void basegfx::B3DTuple::setZ ( double  fZ  )  [inline]

const double& basegfx::B3DTuple::operator[] ( int  nPos  )  const [inline]

Array-access to 3D Tuple.

Definition at line 143 of file b3dtuple.hxx.

References mfX.

double& basegfx::B3DTuple::operator[] ( int  nPos  )  [inline]

Array-access to 3D Tuple.

Definition at line 152 of file b3dtuple.hxx.

References mfX.

bool basegfx::B3DTuple::equalZero (  )  const [inline]

bool basegfx::B3DTuple::equalZero ( const double &  rfSmallValue  )  const [inline]

Definition at line 171 of file b3dtuple.hxx.

References basegfx::fTools::equalZero(), getEmptyTuple(), mfX, mfY, and mfZ.

bool basegfx::B3DTuple::equal ( const B3DTuple rTup  )  const [inline]

bool basegfx::B3DTuple::equal ( const B3DTuple rTup,
const double &  rfSmallValue 
) const [inline]

Definition at line 187 of file b3dtuple.hxx.

References basegfx::fTools::equal(), mfX, mfY, and mfZ.

B3DTuple& basegfx::B3DTuple::operator+= ( const B3DTuple rTup  )  [inline]

Definition at line 198 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

B3DTuple& basegfx::B3DTuple::operator-= ( const B3DTuple rTup  )  [inline]

Definition at line 206 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

B3DTuple& basegfx::B3DTuple::operator/= ( const B3DTuple rTup  )  [inline]

Definition at line 214 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

B3DTuple& basegfx::B3DTuple::operator*= ( const B3DTuple rTup  )  [inline]

Definition at line 222 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

B3DTuple& basegfx::B3DTuple::operator*= ( double  t  )  [inline]

Reimplemented in basegfx::BColor, basegfx::B3DPoint, and basegfx::B3DVector.

Definition at line 230 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

B3DTuple& basegfx::B3DTuple::operator/= ( double  t  )  [inline]

Definition at line 238 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

B3DTuple basegfx::B3DTuple::operator- ( void   )  const [inline]

Definition at line 247 of file b3dtuple.hxx.

References B3DTuple(), mfX, mfY, and mfZ.

bool basegfx::B3DTuple::operator== ( const B3DTuple rTup  )  const [inline]

Definition at line 252 of file b3dtuple.hxx.

References equal().

bool basegfx::B3DTuple::operator!= ( const B3DTuple rTup  )  const [inline]

Definition at line 257 of file b3dtuple.hxx.

References equal().

B3DTuple& basegfx::B3DTuple::operator= ( const B3DTuple rTup  )  [inline]

Definition at line 262 of file b3dtuple.hxx.

References mfX, mfY, and mfZ.

void basegfx::B3DTuple::correctValues ( const double  fCompareValue = 0.0  )  [inline]

const B3DTuple & basegfx::B3DTuple::getEmptyTuple (  )  [static]


Member Data Documentation

double basegfx::B3DTuple::mfX [protected]

double basegfx::B3DTuple::mfY [protected]

double basegfx::B3DTuple::mfZ [protected]


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

Generated on Thu Apr 29 13:57:21 2010 for ooo-build Module basegfx (ooo/OOO320_m15) by  doxygen 1.5.6