Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::Line Class Reference

#include <DrawLine.hpp>

Inheritance diagram for Bial::Line:
Inheritance graph
Collaboration diagram for Bial::Line:
Collaboration graph

Public Member Functions

 Line (const Vector< float > &first_coord, const Vector< float > &last_coord, const Color color=Color(1))
 Basic Constructor. More...
 
template<class D >
void Draw (Image< D > &img) const
 Draws 2D or 3D line in input image. More...
 
template<class D >
void Draw (Image< D > &img, const Vector< float > &displacement) const
 Draws 2D or 3D line 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 line information to stream. More...
 
- Public Member Functions inherited from Bial::Figure< Line >
 Figure (const Color &color)
 Basic Constructor. More...
 
void Draw (Image< D > &img)
 Draws figure in input image. More...
 
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...
 
void Print (O &os) const
 Prints figure information to stream. More...
 

Static Public Member Functions

static Line BisectionLine (const Vector< float > &pnt_0, const Vector< float > &pnt_1, float length)
 Static Constructor. Returns a bisection line between the given points, centralized between the points. More...
 

Public Attributes

Vector< float > first_coord
 First coordinate of the Line. More...
 
Vector< float > last_coord
 Last coordinate of the Line. More...
 
- Public Attributes inherited from Bial::Figure< Line >
Color color
 The color of the figure. More...
 

Detailed Description

Definition at line 24 of file DrawLine.hpp.

Constructor & Destructor Documentation

Bial::Line::Line ( const Vector< float > &  first_coord,
const Vector< float > &  last_coord,
const Color  color = Color(1) 
)

Basic Constructor.

Date
2014/Dec/08
Version
1.0.00
Parameters
first_coordFirst coordinate of the Line.
first_coordLast coordinate of the Line.
colorThe color of the line.
Returns
none.

Member Function Documentation

static Line Bial::Line::BisectionLine ( const Vector< float > &  pnt_0,
const Vector< float > &  pnt_1,
float  length 
)
static

Static Constructor. Returns a bisection line between the given points, centralized between the points.

Date
2015/Jul/08
Parameters
pnt_0,pnt_1points between which besection line should to be computed.
lengthResulting line length.
Returns
A bisection line between the given points.
Warning
none.
template<class D >
void Bial::Line::Draw ( Image< D > &  img) const

Draws 2D or 3D line in input image.

Date
2014/Mar/18
Version
1.0.00
Parameters
imgAn image.
Returns
none.
Warning
none.
template<class D >
void Bial::Line::Draw ( Image< D > &  img,
const Vector< float > &  displacement 
) const

Draws 2D or 3D line in input image.

Date
2014/Mar/17
Version
1.0.00
Parameters
imgAn image.
displacementDisplacement from line's coordinates to start drawing.
Returns
none.
Warning
none.
Vector< Vector< int > > Bial::Line::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.
Vector< Vector< int > > Bial::Line::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.
template<class O >
void Bial::Line::Print ( O &  os) const

Prints line information to stream.

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

Member Data Documentation

Vector< float > Bial::Line::first_coord

First coordinate of the Line.

Definition at line 29 of file DrawLine.hpp.

Vector< float > Bial::Line::last_coord

Last coordinate of the Line.

Definition at line 31 of file DrawLine.hpp.


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