MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
mds::img::CSize2< T > Class Template Reference

Class representing size of a rectangle in 2D space. More...

#include <mdsSize.h>

Inheritance diagram for mds::img::CSize2< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CCoordinates2< T > tBase
 tBase class.
typedef tBase::tComponent tComponent
 Coordinates type.
typedef CLibraryLockableClass
< CSmallObjectBase< C, M, A >
>::CLock 
tLock
 Lock type.

Public Member Functions

 CSize2 ()
 Default constructor.
 CSize2 (const tComponent &size)
 Constructor initializes the size.
 CSize2 (const tComponent &px, const tComponent &py)
 Constructor initializes the size.
 CSize2 (const tBase &p)
 Copy constructor.
tComponent getMult () const
 Returns multiplication of all coordinates.
tComponent getSum () const
 Returns sum of all coordinates.
tComponentgetX ()
 Returns reference to the x-coordinate.
const tComponentgetX () const
const tSizegetXSize () const
 Returns the volume size in x-axis (i.e. width).
tSizegetXSize ()
CCoordinates2getXY (tComponent &px, tComponent &py) const
 Returns XY coordinates.
tComponentgetY ()
 Returns reference to the y-coordinate.
const tComponentgetY () const
const tSizegetYSize () const
 Returns the volume size in y-axis (i.e. height).
tSizegetYSize ()
const tSizeheight () const
tSizeheight ()
CSize2operator&= (const CSize2 &a)
CCoordinates2operator*= (const CCoordinates2 &p)
CCoordinates2operator*= (const tComponent &c)
CCoordinates2operator+= (const CCoordinates2 &p)
CCoordinates2operator+= (const tComponent &c)
CCoordinates2operator-= (const CCoordinates2 &p)
CCoordinates2operator-= (const tComponent &c)
CCoordinates2operator/= (const CCoordinates2 &p)
CCoordinates2operator/= (const tComponent &c)
CSize2operator= (const tBase &p)
 Assignment operator.
CCoordinates2setX (const tComponent &px)
 Changes coordinates.
CCoordinates2setXY (const tComponent &px, const tComponent &py)
 Sets XY point coordinates.
CCoordinates2setY (const tComponent &py)
const tSizewidth () const
 Returns the volume size.
tSizewidth ()
tComponentx ()
 Returns reference to the x-coordinate.
const tComponentx () const
tComponenty ()
 Returns reference to the y-coordinate.
const tComponenty () const
 ~CSize2 ()
 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 2D space.
tComponent m_y

Friends

bool operator!= (const CSize2 &a, const CSize2 &b)
bool operator!= (const CCoordinates2 &l, const CCoordinates2 &r)
CSize2 operator& (const CSize2 &a, const CSize2 &b)
 Operator calculates intersection of two given sizes.
CCoordinates2 operator* (const CCoordinates2 &l, const CCoordinates2 &r)
CCoordinates2 operator+ (const CCoordinates2 &l, const CCoordinates2 &r)
CCoordinates2 operator- (const CCoordinates2 &l, const CCoordinates2 &r)
CCoordinates2 operator/ (const CCoordinates2 &l, const CCoordinates2 &r)
bool operator== (const CSize2 &a, const CSize2 &b)
 Comparison operators.
bool operator== (const CCoordinates2 &l, const CCoordinates2 &r)

Detailed Description

template<typename T>
class mds::img::CSize2< T >

Class representing size of a rectangle in 2D space.


Member Typedef Documentation

template<typename T>
typedef CCoordinates2<T> mds::img::CSize2< T >::tBase

tBase class.

Reimplemented from mds::img::CCoordinates2< T >.

template<typename T>
typedef tBase::tComponent mds::img::CSize2< T >::tComponent

Coordinates type.

Reimplemented from mds::img::CCoordinates2< T >.

template<tSize C, tSize M, tSize A>
typedef CLibraryLockableClass<CSmallObjectBase<C,M,A> >::CLock mds::base::CSmallObjectBase< C, M, A >::tLock [inherited]

Lock type.


Constructor & Destructor Documentation

template<typename T>
mds::img::CSize2< T >::CSize2 ( )

Default constructor.

template<typename T>
mds::img::CSize2< T >::CSize2 ( const tComponent size)

Constructor initializes the size.

template<typename T>
mds::img::CSize2< T >::CSize2 ( const tComponent px,
const tComponent py 
)

Constructor initializes the size.

template<typename T>
mds::img::CSize2< T >::CSize2 ( const tBase p)

Copy constructor.

template<typename T>
mds::img::CSize2< T >::~CSize2 ( )

Destructor.


Member Function Documentation

template<typename T>
tComponent mds::img::CCoordinates2< T >::getMult ( ) const [inherited]

Returns multiplication of all coordinates.

template<typename T>
tComponent mds::img::CCoordinates2< T >::getSum ( ) const [inherited]

Returns sum of all coordinates.

template<typename T>
tComponent& mds::img::CCoordinates2< T >::getX ( ) [inherited]

Returns reference to the x-coordinate.

template<typename T>
const tComponent& mds::img::CCoordinates2< T >::getX ( ) const [inherited]
template<typename T>
const tSize& mds::img::CSize2< T >::getXSize ( ) const

Returns the volume size in x-axis (i.e. width).

template<typename T>
tSize& mds::img::CSize2< T >::getXSize ( )
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::getXY ( tComponent px,
tComponent py 
) const [inherited]

Returns XY coordinates.

template<typename T>
tComponent& mds::img::CCoordinates2< T >::getY ( ) [inherited]

Returns reference to the y-coordinate.

template<typename T>
const tComponent& mds::img::CCoordinates2< T >::getY ( ) const [inherited]
template<typename T>
const tSize& mds::img::CSize2< T >::getYSize ( ) const

Returns the volume size in y-axis (i.e. height).

template<typename T>
tSize& mds::img::CSize2< T >::getYSize ( )
template<typename T>
const tSize& mds::img::CSize2< T >::height ( ) const
template<typename T>
tSize& mds::img::CSize2< T >::height ( )
static void mds::base::CLockableClass< CSmallObjectBase< C, M, A > >::lock ( ) [static, inherited]

Locks the object.

template<tSize C, tSize M, tSize A>
static void mds::base::CSmallObjectBase< C, M, A >::operator delete ( void *  p,
std::size_t  Size 
) [static, inherited]

Deallocates small object.

template<tSize C, tSize M, tSize A>
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.

template<tSize C, tSize M, tSize A>
static void mds::base::CSmallObjectBase< C, M, A >::operator delete[] ( void *  p,
std::size_t  Size 
) [static, inherited]

Deallocates array-object.

template<tSize C, tSize M, tSize A>
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.

template<tSize C, tSize M, tSize A>
static void* mds::base::CSmallObjectBase< C, M, A >::operator new ( std::size_t  Size) [static, inherited]

Allocates a small object.

template<tSize C, tSize M, tSize A>
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.

template<tSize C, tSize M, tSize A>
static void* mds::base::CSmallObjectBase< C, M, A >::operator new[] ( std::size_t  Size) [static, inherited]

Allocates array-object.

template<tSize C, tSize M, tSize A>
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.

template<typename T>
CSize2& mds::img::CSize2< T >::operator&= ( const CSize2< T > &  a)
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator*= ( const CCoordinates2< T > &  p) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator*= ( const tComponent c) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator+= ( const CCoordinates2< T > &  p) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator+= ( const tComponent c) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator-= ( const CCoordinates2< T > &  p) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator-= ( const tComponent c) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator/= ( const CCoordinates2< T > &  p) [inherited]
template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::operator/= ( const tComponent c) [inherited]
template<typename T>
CSize2& mds::img::CSize2< T >::operator= ( const tBase p)

Assignment operator.

template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::setX ( const tComponent px) [inherited]

Changes coordinates.

template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::setXY ( const tComponent px,
const tComponent py 
) [inherited]

Sets XY point coordinates.

template<typename T>
CCoordinates2& mds::img::CCoordinates2< T >::setY ( const tComponent py) [inherited]
static void mds::base::CLockableClass< CSmallObjectBase< C, M, A > >::unlock ( ) [static, inherited]

Locks the object.

template<typename T>
const tSize& mds::img::CSize2< T >::width ( ) const

Returns the volume size.

template<typename T>
tSize& mds::img::CSize2< T >::width ( )
template<typename T>
tComponent& mds::img::CCoordinates2< T >::x ( ) [inherited]

Returns reference to the x-coordinate.

template<typename T>
const tComponent& mds::img::CCoordinates2< T >::x ( ) const [inherited]
template<typename T>
tComponent& mds::img::CCoordinates2< T >::y ( ) [inherited]

Returns reference to the y-coordinate.

template<typename T>
const tComponent& mds::img::CCoordinates2< T >::y ( ) const [inherited]

Friends And Related Function Documentation

template<typename T>
bool operator!= ( const CSize2< T > &  a,
const CSize2< T > &  b 
) [friend]
template<typename T>
bool operator!= ( const CCoordinates2< T > &  l,
const CCoordinates2< T > &  r 
) [friend, inherited]
template<typename T>
CSize2 operator& ( const CSize2< T > &  a,
const CSize2< T > &  b 
) [friend]

Operator calculates intersection of two given sizes.

template<typename T>
CCoordinates2 operator* ( const CCoordinates2< T > &  l,
const CCoordinates2< T > &  r 
) [friend, inherited]
template<typename T>
CCoordinates2 operator+ ( const CCoordinates2< T > &  l,
const CCoordinates2< T > &  r 
) [friend, inherited]
template<typename T>
CCoordinates2 operator- ( const CCoordinates2< T > &  l,
const CCoordinates2< T > &  r 
) [friend, inherited]
template<typename T>
CCoordinates2 operator/ ( const CCoordinates2< T > &  l,
const CCoordinates2< T > &  r 
) [friend, inherited]
template<typename T>
bool operator== ( const CSize2< T > &  a,
const CSize2< T > &  b 
) [friend]

Comparison operators.

template<typename T>
bool operator== ( const CCoordinates2< T > &  l,
const CCoordinates2< T > &  r 
) [friend, inherited]

Member Data Documentation

template<typename T>
tComponent mds::img::CCoordinates2< T >::m_x [protected, inherited]

Coordinates in 2D space.

template<typename T>
tComponent mds::img::CCoordinates2< T >::m_y [protected, inherited]

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