VectorEntity  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions
vctl::MCCoordinate3D< T > Class Template Reference

Class encapsulating coordinates in 3D space. More...

#include <mccoordinate3d.h>

Inheritance diagram for vctl::MCCoordinate3D< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef
mds::img::CCoordinates3< T > 
tBase
 Base class.

Public Member Functions

T & GetX ()
 Returns current value of the x-coordinate.
const T & GetX () const
void GetXYZ (T &_x, T &_y, T &_z) const
 Returns all x, y and z-coordinates.
void GetXYZ (T _xyz[3]) const
 Saves current coordinates (X,Y,Z) into a given array.
T & GetY ()
 Returns current value of the y-coordinate.
const T & GetY () const
T & GetZ ()
 Returns current value of the z-coordinate.
const T & GetZ () const
 MCCoordinate3D ()
 Default constructor.
 MCCoordinate3D (const MCCoordinate3D &_c)
 Copy constructor.
 MCCoordinate3D (const T &_x, const T &_y, const T &_z)
 Constructor which initializes coordinates to given values.
MCCoordinate3Doperator= (const MCCoordinate3D &p)
 Assignment operator.
*void SetX (const T &_x)
 Sets value of the x-coordinate.
void SetXYZ (const T &_x, const T &_y, const T &_z)
 Sets all coordinates at once.
*void SetY (const T &_y)
 Sets value of the y-coordinate.
*void SetZ (const T &_z)
 Sets value of the z-coordinate.
 ~MCCoordinate3D ()
 Destructor.

Detailed Description

template<typename T>
class vctl::MCCoordinate3D< T >

Class encapsulating coordinates in 3D space.


Member Typedef Documentation

template<typename T>
typedef mds::img::CCoordinates3<T> vctl::MCCoordinate3D< T >::tBase

Base class.

Reimplemented in vctl::MCVertex.


Constructor & Destructor Documentation

template<typename T>
vctl::MCCoordinate3D< T >::MCCoordinate3D ( ) [inline]

Default constructor.

  • Initializes all coordinates to zero.
template<typename T>
vctl::MCCoordinate3D< T >::MCCoordinate3D ( const MCCoordinate3D< T > &  _c) [inline]

Copy constructor.

template<typename T>
vctl::MCCoordinate3D< T >::MCCoordinate3D ( const T &  _x,
const T &  _y,
const T &  _z 
) [inline]

Constructor which initializes coordinates to given values.

template<typename T>
vctl::MCCoordinate3D< T >::~MCCoordinate3D ( ) [inline]

Destructor.


Member Function Documentation

template<typename T>
T& vctl::MCCoordinate3D< T >::GetX ( ) [inline]

Returns current value of the x-coordinate.

template<typename T>
void vctl::MCCoordinate3D< T >::GetXYZ ( T &  _x,
T &  _y,
T &  _z 
) const [inline]

Returns all x, y and z-coordinates.

template<typename T>
void vctl::MCCoordinate3D< T >::GetXYZ ( _xyz[3]) const [inline]

Saves current coordinates (X,Y,Z) into a given array.

template<typename T>
T& vctl::MCCoordinate3D< T >::GetY ( ) [inline]

Returns current value of the y-coordinate.

template<typename T>
T& vctl::MCCoordinate3D< T >::GetZ ( ) [inline]

Returns current value of the z-coordinate.

template<typename T>
MCCoordinate3D& vctl::MCCoordinate3D< T >::operator= ( const MCCoordinate3D< T > &  p) [inline]

Assignment operator.

template<typename T>
* void vctl::MCCoordinate3D< T >::SetX ( const T &  _x) [inline]

Sets value of the x-coordinate.

Parameters:
_x- new value.
template<typename T>
void vctl::MCCoordinate3D< T >::SetXYZ ( const T &  _x,
const T &  _y,
const T &  _z 
) [inline]

Sets all coordinates at once.

template<typename T>
* void vctl::MCCoordinate3D< T >::SetY ( const T &  _y) [inline]

Sets value of the y-coordinate.

Parameters:
_x- new value.
template<typename T>
* void vctl::MCCoordinate3D< T >::SetZ ( const T &  _z) [inline]

Sets value of the z-coordinate.

Parameters:
_x- new value.

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