Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::Figure< DERIVED > Class Template Reference

#include <DrawFigure.hpp>

Collaboration diagram for Bial::Figure< DERIVED >:
Collaboration graph

Public Member Functions

 Figure (const Color &color)
 Basic Constructor. More...
 
template<class D >
void Draw (Image< D > &img)
 Draws figure in input image. More...
 
template<class D >
void Draw (Image< D > &img, const Vector< float > &displacement) const
 Draws n-dimensional figure in input image. More...
 
Vector< Vector< int > > Pixels () const
 Returns a vector with coordinates of the pixels from this Figure. More...
 
Vector< Vector< int > > Pixels (const Vector< float > &displacement) const
 Returns a vector with coordinates of the pixels from this figure. More...
 
template<class O >
void Print (O &os) const
 Prints figure information to stream. More...
 

Public Attributes

Color color
 The color of the figure. More...
 

Detailed Description

template<class DERIVED>
class Bial::Figure< DERIVED >

Definition at line 21 of file DrawFigure.hpp.

Constructor & Destructor Documentation

template<class DERIVED >
Bial::Figure< DERIVED >::Figure ( const Color color)

Basic Constructor.

Date
2014/Mar/17
Parameters
colorcolor of figure.
Returns
none.
Warning
none.

Definition at line 93 of file DrawFigure.hpp.

Member Function Documentation

template<class DERIVED >
template<class D >
void Bial::Figure< DERIVED >::Draw ( Image< D > &  img)

Draws figure in input image.

Date
2014/Mar/17
Parameters
imgAn image.
Returns
none.
Warning
none.

Definition at line 113 of file DrawFigure.hpp.

template<class DERIVED >
template<class D >
void Bial::Figure< DERIVED >::Draw ( Image< D > &  img,
const Vector< float > &  displacement 
) const

Draws n-dimensional figure in input image.

Date
2014/Mar/18
Parameters
imgAn image.
displacementDisplacement from low coordinate to start drawing.
Returns
none.
Warning
none.

Definition at line 118 of file DrawFigure.hpp.

template<class DERIVED >
Vector< Vector< int > > Bial::Figure< DERIVED >::Pixels ( ) const

Returns a vector with coordinates of the pixels from this Figure.

Date
2015/Jul/07
Parameters
none.
Returns
Vector with pixels.
Warning
none.

Definition at line 123 of file DrawFigure.hpp.

template<class DERIVED >
Vector< Vector< int > > Bial::Figure< DERIVED >::Pixels ( const Vector< float > &  displacement) const

Returns a vector with coordinates of the pixels from this figure.

Date
2015/Jul/07
Parameters
displacementDisplacement from low coordinate of the figure.
Returns
Vector with pixels.
Warning
none.

Definition at line 128 of file DrawFigure.hpp.

template<class DERIVED >
template<class O >
void Bial::Figure< DERIVED >::Print ( O &  os) const

Prints figure information to stream.

Date
2014/Mar/18
Parameters
osan output stream.
Returns
none.
Warning
none.

Definition at line 133 of file DrawFigure.hpp.

Member Data Documentation

template<class DERIVED>
Color Bial::Figure< DERIVED >::color

The color of the figure.

Definition at line 26 of file DrawFigure.hpp.


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