MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class representing a line in 2D space. More...
#include <mdsLine.h>
Public Types | |
typedef CGraphics< CLine > | tBase |
Base class. | |
typedef CLine | tGraphics |
Graphic primitive type. | |
Public Member Functions | |
CLine () | |
Default constructor. | |
CLine (tCoordinate x1, tCoordinate y1, tCoordinate x2, tCoordinate y2, CColor Color) | |
Constructor. | |
CLine (tCoordinate x1, tCoordinate y1, tCoordinate z1, tCoordinate x2, tCoordinate y2, tCoordinate z2, CColor Color) | |
Constructor. | |
CLine (const CPoint3D &p1, const CPoint3D &p2, CColor Color) | |
Constructor. | |
CLine (const CLine &l) | |
Copy 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. | |
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 |
CLine & | operator*= (tCoordinate Scale) |
CLine & | operator+= (const CVector3D &v) |
Miscellaneous combined assignment operators. | |
CLine & | operator-= (const CVector3D &v) |
CLine & | operator= (const CLine &l) |
Assignment operator. | |
void | setColor (CColor Color) |
Sets color of the graphic primitive. | |
~CLine () | |
Destructor. | |
Public Attributes | |
CPoint3D | m_Points [2] |
Line end-points. | |
Protected Attributes | |
CColor | m_Color |
Graphic primitive color. |
Class representing a line in 2D space.
typedef CGraphics<CLine> mds::img::CLine::tBase |
Base class.
typedef CLine mds::img::CGraphics< CLine >::tGraphics [inherited] |
Graphic primitive type.
Default constructor.
mds::img::CLine::CLine | ( | tCoordinate | x1, |
tCoordinate | y1, | ||
tCoordinate | x2, | ||
tCoordinate | y2, | ||
CColor | Color | ||
) |
Constructor.
mds::img::CLine::CLine | ( | tCoordinate | x1, |
tCoordinate | y1, | ||
tCoordinate | z1, | ||
tCoordinate | x2, | ||
tCoordinate | y2, | ||
tCoordinate | z2, | ||
CColor | Color | ||
) |
Constructor.
mds::img::CLine::CLine | ( | const CPoint3D & | p1, |
const CPoint3D & | p2, | ||
CColor | Color | ||
) |
Constructor.
mds::img::CLine::CLine | ( | const CLine & | l | ) |
Copy constructor.
Destructor.
void mds::img::CLine::draw | ( | CImageBase< I > & | Image | ) |
Draws the primitive to a given image.
Reimplemented from mds::img::CGraphics< CLine >.
void mds::img::CLine::draw | ( | CVolumeBase< V > & | Volume | ) |
Draws the primitive to a given volume.
Reimplemented from mds::img::CGraphics< CLine >.
void mds::img::CLine::draw | ( | CImageBase< I > & | Image | ) |
Draws the primitive to a given image.
Reimplemented from mds::img::CGraphics< CLine >.
void mds::img::CLine::draw | ( | CVolumeBase< V > & | Volume | ) |
Draws the primitive to a given volume.
Reimplemented from mds::img::CGraphics< CLine >.
CColor mds::img::CGraphics< CLine >::getColor | ( | ) | [inherited] |
Returns color of the graphic primitive.
tGraphics& mds::img::CGraphics< CLine >::getImpl | ( | ) | [inherited] |
Returns reference to the graphic primitive implementation.
const tGraphics& mds::img::CGraphics< CLine >::getImpl | ( | ) | const [inherited] |
CLine& mds::img::CLine::operator*= | ( | tCoordinate | Scale | ) |
Miscellaneous combined assignment operators.
void mds::img::CGraphics< CLine >::setColor | ( | CColor | Color | ) | [inherited] |
Sets color of the graphic primitive.
CColor mds::img::CGraphics< CLine >::m_Color [protected, inherited] |
Graphic primitive color.
Line end-points.