MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Attributes
mds::img::CGraphics< G > Class Template Reference

Base class for all graphic primitives. More...

#include <mdsGraphics.h>

Inheritance diagram for mds::img::CGraphics< G >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef G tGraphics
 Graphic primitive type.

Public Member Functions

 CGraphics ()
 Default constructor.
 CGraphics (CColor Color)
 Constructor.
template<class I >
void draw (CImageBase< I > &Image)
 Draws the primitive to a given image.
template<class V >
void draw (CVolumeBase< V > &Volume)
 Draws the primitive to a given volume.
CColor getColor ()
 Returns color of the graphic primitive.
tGraphicsgetImpl ()
 Returns reference to the graphic primitive implementation.
const tGraphicsgetImpl () const
void setColor (CColor Color)
 Sets color of the graphic primitive.
 ~CGraphics ()
 Destructor.

Protected Attributes

CColor m_Color
 Graphic primitive color.

Detailed Description

template<class G>
class mds::img::CGraphics< G >

Base class for all graphic primitives.


Member Typedef Documentation

template<class G>
typedef G mds::img::CGraphics< G >::tGraphics

Graphic primitive type.


Constructor & Destructor Documentation

template<class G>
mds::img::CGraphics< G >::CGraphics ( )

Default constructor.

template<class G>
mds::img::CGraphics< G >::CGraphics ( CColor  Color)

Constructor.

  • Initializes the graphic primitive color.
template<class G>
mds::img::CGraphics< G >::~CGraphics ( )

Destructor.


Member Function Documentation

template<class G>
template<class I >
void mds::img::CGraphics< G >::draw ( CImageBase< I > &  Image)

Draws the primitive to a given image.

Reimplemented in mds::img::CLine, and mds::img::CLine.

template<class G>
template<class V >
void mds::img::CGraphics< G >::draw ( CVolumeBase< V > &  Volume)

Draws the primitive to a given volume.

Reimplemented in mds::img::CLine, and mds::img::CLine.

template<class G>
CColor mds::img::CGraphics< G >::getColor ( )

Returns color of the graphic primitive.

template<class G>
tGraphics& mds::img::CGraphics< G >::getImpl ( )

Returns reference to the graphic primitive implementation.

template<class G>
const tGraphics& mds::img::CGraphics< G >::getImpl ( ) const
template<class G>
void mds::img::CGraphics< G >::setColor ( CColor  Color)

Sets color of the graphic primitive.


Member Data Documentation

template<class G>
CColor mds::img::CGraphics< G >::m_Color [protected]

Graphic primitive color.


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