MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for all graphic primitives. More...
#include <mdsGraphics.h>
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. | |
tGraphics & | getImpl () |
Returns reference to the graphic primitive implementation. | |
const tGraphics & | getImpl () const |
void | setColor (CColor Color) |
Sets color of the graphic primitive. | |
~CGraphics () | |
Destructor. | |
Protected Attributes | |
CColor | m_Color |
Graphic primitive color. |
Base class for all graphic primitives.
typedef G mds::img::CGraphics< G >::tGraphics |
Graphic primitive type.
mds::img::CGraphics< G >::CGraphics | ( | ) |
Default constructor.
mds::img::CGraphics< G >::CGraphics | ( | CColor | Color | ) |
Constructor.
mds::img::CGraphics< G >::~CGraphics | ( | ) |
Destructor.
Draws the primitive to a given image.
Reimplemented in mds::img::CLine, and mds::img::CLine.
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.
CColor mds::img::CGraphics< G >::getColor | ( | ) |
Returns color of the graphic primitive.
tGraphics& mds::img::CGraphics< G >::getImpl | ( | ) |
Returns reference to the graphic primitive implementation.
const tGraphics& mds::img::CGraphics< G >::getImpl | ( | ) | const |
void mds::img::CGraphics< G >::setColor | ( | CColor | Color | ) |
Sets color of the graphic primitive.
CColor mds::img::CGraphics< G >::m_Color [protected] |
Graphic primitive color.