MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Public Attributes | Protected Attributes
mds::img::CLine Class Reference

Class representing a line in 2D space. More...

#include <mdsLine.h>

Inheritance diagram for mds::img::CLine:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CGraphics< CLinetBase
 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.
tGraphicsgetImpl ()
 Returns reference to the graphic primitive implementation.
const tGraphicsgetImpl () const
CLineoperator*= (tCoordinate Scale)
CLineoperator+= (const CVector3D &v)
 Miscellaneous combined assignment operators.
CLineoperator-= (const CVector3D &v)
CLineoperator= (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.

Detailed Description

Class representing a line in 2D space.


Member Typedef Documentation

Base class.

typedef CLine mds::img::CGraphics< CLine >::tGraphics [inherited]

Graphic primitive type.


Constructor & Destructor Documentation

Default constructor.

Constructor.

Constructor.

mds::img::CLine::CLine ( const CPoint3D p1,
const CPoint3D p2,
CColor  Color 
)

Constructor.

mds::img::CLine::CLine ( const CLine l)

Copy constructor.

Destructor.


Member Function Documentation

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

Draws the primitive to a given image.

Reimplemented from mds::img::CGraphics< CLine >.

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

Draws the primitive to a given volume.

Reimplemented from mds::img::CGraphics< CLine >.

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

Draws the primitive to a given image.

Reimplemented from mds::img::CGraphics< CLine >.

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

Draws the primitive to a given volume.

Reimplemented from mds::img::CGraphics< CLine >.

Returns color of the graphic primitive.

Returns reference to the graphic primitive implementation.

const tGraphics& mds::img::CGraphics< CLine >::getImpl ( ) const [inherited]
CLine& mds::img::CLine::operator*= ( tCoordinate  Scale)
CLine& mds::img::CLine::operator+= ( const CVector3D v)

Miscellaneous combined assignment operators.

CLine& mds::img::CLine::operator-= ( const CVector3D v)
CLine& mds::img::CLine::operator= ( const CLine l)

Assignment operator.

void mds::img::CGraphics< CLine >::setColor ( CColor  Color) [inherited]

Sets color of the graphic primitive.


Member Data Documentation

CColor mds::img::CGraphics< CLine >::m_Color [protected, inherited]

Graphic primitive color.

Line end-points.


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