MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class representing coordinates in 3D space. More...
#include <mdsCoordinates.h>
Public Types | |
typedef mds::base::CSmallValueObject | tBase |
Base class. | |
typedef T | tComponent |
Coordinate type. | |
typedef CLibraryLockableClass < CSmallObjectBase< C, M, A > >::CLock | tLock |
Lock type. | |
Public Member Functions | |
CCoordinates3 () | |
Default constructor. | |
CCoordinates3 (const tComponent &px, const tComponent &py, const tComponent &pz=tComponent()) | |
Constructor initializes 3D coordinates. | |
CCoordinates3 (const CCoordinates3 &p) | |
Copy constructor. | |
tComponent | getMult () const |
Returns multiplication of all coordinates. | |
tComponent | getSum () const |
Returns sum of all coordinates. | |
tComponent & | getX () |
Returns reference to the x-coordinate. | |
const tComponent & | getX () const |
CCoordinates3 & | getXY (tComponent &px, tComponent &py) const |
Returns XY point coordinates. | |
CCoordinates3 & | getXYZ (tComponent &px, tComponent &py, tComponent &pz) const |
Returns all point coordinates. | |
tComponent & | getY () |
Returns reference to the y-coordinate. | |
const tComponent & | getY () const |
tComponent & | getZ () |
Returns reference to the z-coordinate. | |
const tComponent & | getZ () const |
CCoordinates3 & | operator*= (const CCoordinates3 &p) |
CCoordinates3 & | operator*= (const tComponent &c) |
CCoordinates3 & | operator+= (const CCoordinates3 &p) |
CCoordinates3 & | operator+= (const tComponent &c) |
CCoordinates3 & | operator-= (const CCoordinates3 &p) |
CCoordinates3 & | operator-= (const tComponent &c) |
CCoordinates3 & | operator/= (const CCoordinates3 &p) |
CCoordinates3 & | operator/= (const tComponent &c) |
CCoordinates3 & | operator= (const CCoordinates3 &p) |
Assignment operator. | |
CCoordinates3 & | setX (const tComponent &px) |
Returns point coordinate. | |
CCoordinates3 & | setXY (const tComponent &px, const tComponent &py) |
Sets XY point coordinates. | |
CCoordinates3 & | setXYZ (const tComponent &px, const tComponent &py, const tComponent &pz) |
Sets all point coordinates. | |
CCoordinates3 & | setY (const tComponent &py) |
CCoordinates3 & | setZ (const tComponent &pz) |
tComponent & | x () |
Returns reference to the x-coordinate. | |
const tComponent & | x () const |
tComponent & | y () |
Returns reference to the y-coordinate. | |
const tComponent & | y () const |
tComponent & | z () |
Returns reference to the z-coordinate. | |
const tComponent & | z () const |
~CCoordinates3 () | |
Destructor. | |
Static Public Member Functions | |
static void | lock () |
Locks the object. | |
static void | operator delete (void *p, std::size_t Size) |
Deallocates small object. | |
static void | operator delete (void *p, void *pPlace) |
Placement single-object delete merely calls global placement delete. | |
static void | operator delete[] (void *p, std::size_t Size) |
Deallocates array-object. | |
static void | operator delete[] (void *p, void *pPlace) |
Placement array-object delete merely calls global placement delete. | |
static void * | operator new (std::size_t Size) |
Allocates a small object. | |
static void * | operator new (std::size_t Size, void *pPlace) |
Placement single-object new merely calls global placement new. | |
static void * | operator new[] (std::size_t Size) |
Allocates array-object. | |
static void * | operator new[] (std::size_t Size, void *pPlace) |
Placement array-object new merely calls global placement new. | |
static void | unlock () |
Locks the object. | |
Protected Attributes | |
tComponent | m_x |
Coordinates in the 3D space. | |
tComponent | m_y |
tComponent | m_z |
Friends | |
bool | operator!= (const CCoordinates3 &l, const CCoordinates3 &r) |
CCoordinates3 | operator* (const CCoordinates3 &l, const CCoordinates3 &r) |
CCoordinates3 | operator+ (const CCoordinates3 &l, const CCoordinates3 &r) |
CCoordinates3 | operator- (const CCoordinates3 &l, const CCoordinates3 &r) |
CCoordinates3 | operator/ (const CCoordinates3 &l, const CCoordinates3 &r) |
bool | operator== (const CCoordinates3 &l, const CCoordinates3 &r) |
Class representing coordinates in 3D space.
typedef mds::base::CSmallValueObject mds::img::CCoordinates3< T >::tBase |
Base class.
Reimplemented in mds::img::CVector3< T >, mds::img::CVector3< tCoordinate >, mds::img::CPoint3< T >, mds::img::CPoint3< int >, mds::img::CPoint3< tCoordinate >, mds::img::CSize3< T >, and mds::img::CSize3< int >.
typedef T mds::img::CCoordinates3< T >::tComponent |
Coordinate type.
Reimplemented in mds::img::CVector3< T >, mds::img::CVector3< tCoordinate >, mds::img::CPoint3< T >, mds::img::CPoint3< int >, mds::img::CPoint3< tCoordinate >, mds::img::CSize3< T >, and mds::img::CSize3< int >.
typedef CLibraryLockableClass<CSmallObjectBase<C,M,A> >::CLock mds::base::CSmallObjectBase< C, M, A >::tLock [inherited] |
Lock type.
mds::img::CCoordinates3< T >::CCoordinates3 | ( | ) |
Default constructor.
mds::img::CCoordinates3< T >::CCoordinates3 | ( | const tComponent & | px, |
const tComponent & | py, | ||
const tComponent & | pz = tComponent() |
||
) |
Constructor initializes 3D coordinates.
mds::img::CCoordinates3< T >::CCoordinates3 | ( | const CCoordinates3< T > & | p | ) |
Copy constructor.
mds::img::CCoordinates3< T >::~CCoordinates3 | ( | ) |
Destructor.
tComponent mds::img::CCoordinates3< T >::getMult | ( | ) | const |
Returns multiplication of all coordinates.
tComponent mds::img::CCoordinates3< T >::getSum | ( | ) | const |
Returns sum of all coordinates.
tComponent& mds::img::CCoordinates3< T >::getX | ( | ) |
Returns reference to the x-coordinate.
const tComponent& mds::img::CCoordinates3< T >::getX | ( | ) | const |
CCoordinates3& mds::img::CCoordinates3< T >::getXY | ( | tComponent & | px, |
tComponent & | py | ||
) | const |
Returns XY point coordinates.
CCoordinates3& mds::img::CCoordinates3< T >::getXYZ | ( | tComponent & | px, |
tComponent & | py, | ||
tComponent & | pz | ||
) | const |
Returns all point coordinates.
tComponent& mds::img::CCoordinates3< T >::getY | ( | ) |
Returns reference to the y-coordinate.
const tComponent& mds::img::CCoordinates3< T >::getY | ( | ) | const |
tComponent& mds::img::CCoordinates3< T >::getZ | ( | ) |
Returns reference to the z-coordinate.
const tComponent& mds::img::CCoordinates3< T >::getZ | ( | ) | const |
static void mds::base::CLockableClass< CSmallObjectBase< C, M, A > >::lock | ( | ) | [static, inherited] |
Locks the object.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete | ( | void * | p, |
std::size_t | Size | ||
) | [static, inherited] |
Deallocates small object.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete | ( | void * | p, |
void * | pPlace | ||
) | [static, inherited] |
Placement single-object delete merely calls global placement delete.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete[] | ( | void * | p, |
std::size_t | Size | ||
) | [static, inherited] |
Deallocates array-object.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete[] | ( | void * | p, |
void * | pPlace | ||
) | [static, inherited] |
Placement array-object delete merely calls global placement delete.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new | ( | std::size_t | Size | ) | [static, inherited] |
Allocates a small object.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new | ( | std::size_t | Size, |
void * | pPlace | ||
) | [static, inherited] |
Placement single-object new merely calls global placement new.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new[] | ( | std::size_t | Size | ) | [static, inherited] |
Allocates array-object.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new[] | ( | std::size_t | Size, |
void * | pPlace | ||
) | [static, inherited] |
Placement array-object new merely calls global placement new.
CCoordinates3& mds::img::CCoordinates3< T >::operator*= | ( | const CCoordinates3< T > & | p | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator*= | ( | const tComponent & | c | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator+= | ( | const CCoordinates3< T > & | p | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator+= | ( | const tComponent & | c | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator-= | ( | const CCoordinates3< T > & | p | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator-= | ( | const tComponent & | c | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator/= | ( | const CCoordinates3< T > & | p | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator/= | ( | const tComponent & | c | ) |
CCoordinates3& mds::img::CCoordinates3< T >::operator= | ( | const CCoordinates3< T > & | p | ) |
Assignment operator.
CCoordinates3& mds::img::CCoordinates3< T >::setX | ( | const tComponent & | px | ) |
Returns point coordinate.
CCoordinates3& mds::img::CCoordinates3< T >::setXY | ( | const tComponent & | px, |
const tComponent & | py | ||
) |
Sets XY point coordinates.
CCoordinates3& mds::img::CCoordinates3< T >::setXYZ | ( | const tComponent & | px, |
const tComponent & | py, | ||
const tComponent & | pz | ||
) |
Sets all point coordinates.
CCoordinates3& mds::img::CCoordinates3< T >::setY | ( | const tComponent & | py | ) |
CCoordinates3& mds::img::CCoordinates3< T >::setZ | ( | const tComponent & | pz | ) |
static void mds::base::CLockableClass< CSmallObjectBase< C, M, A > >::unlock | ( | ) | [static, inherited] |
Locks the object.
tComponent& mds::img::CCoordinates3< T >::x | ( | ) |
Returns reference to the x-coordinate.
const tComponent& mds::img::CCoordinates3< T >::x | ( | ) | const |
tComponent& mds::img::CCoordinates3< T >::y | ( | ) |
Returns reference to the y-coordinate.
const tComponent& mds::img::CCoordinates3< T >::y | ( | ) | const |
tComponent& mds::img::CCoordinates3< T >::z | ( | ) |
Returns reference to the z-coordinate.
const tComponent& mds::img::CCoordinates3< T >::z | ( | ) | const |
bool operator!= | ( | const CCoordinates3< T > & | l, |
const CCoordinates3< T > & | r | ||
) | [friend] |
CCoordinates3 operator* | ( | const CCoordinates3< T > & | l, |
const CCoordinates3< T > & | r | ||
) | [friend] |
CCoordinates3 operator+ | ( | const CCoordinates3< T > & | l, |
const CCoordinates3< T > & | r | ||
) | [friend] |
CCoordinates3 operator- | ( | const CCoordinates3< T > & | l, |
const CCoordinates3< T > & | r | ||
) | [friend] |
CCoordinates3 operator/ | ( | const CCoordinates3< T > & | l, |
const CCoordinates3< T > & | r | ||
) | [friend] |
bool operator== | ( | const CCoordinates3< T > & | l, |
const CCoordinates3< T > & | r | ||
) | [friend] |
tComponent mds::img::CCoordinates3< T >::m_x [protected] |
Coordinates in the 3D space.
tComponent mds::img::CCoordinates3< T >::m_y [protected] |
tComponent mds::img::CCoordinates3< T >::m_z [protected] |