Namespace of drawing routines. More...
Functions | |
template<typename I , typename B > | |
void | box (Image< I > &ima, const Box< B > &b, const typename I::value &v) |
template<typename I > | |
void | line (Image< I > &ima, const typename I::psite &beg, const typename I::psite &end, const typename I::value &v) |
template<typename I > | |
void | plot (Image< I > &ima, const typename I::point &p, const typename I::value &v) |
template<typename I > | |
void | plot (Image< I > &ima, const typename I::psite &p, const typename I::value &v) |
Namespace of drawing routines.
void mln::draw::box | ( | Image< I > & | ima, | |
const Box< B > & | b, | |||
const typename I::value & | v | |||
) | [inline] |
Draw a box at value v
in image ima
[in,out] | ima | The image to be drawn. |
[in] | b | the boxto draw. |
[in] | v | The value to assign to all drawn pixels. |
ima
has to be initialized. ima
has beg
. ima
has end
. References mln::exact(), and line().
void mln::draw::line | ( | Image< I > & | ima, | |
const typename I::psite & | beg, | |||
const typename I::psite & | end, | |||
const typename I::value & | v | |||
) | [inline] |
Draw a line at level v
in image ima
between the points beg
and end
.
[in,out] | ima | The image to be drawn. |
[in] | beg | The start point to drawn line. |
[in] | end | The end point to drawn line. |
[in] | v | The value to assign to all drawn pixels. |
ima
has to be initialized. ima
has beg
. ima
has end
. References mln::pw::cst(), mln::exact(), mln::data::paste(), mln::safe(), and mln::trace::warning().
Referenced by box(), and mln::debug::draw_graph().
void mln::draw::plot | ( | Image< I > & | ima, | |
const typename I::point & | p, | |||
const typename I::value & | v | |||
) |
Plot a point at level v
in image ima
[in,out] | ima | The image to be drawn. |
[in] | p | The point to be plotted. |
[in] | v | The value to assign to all drawn pixels. |
ima
has to be initialized. ima
has p
. void mln::draw::plot | ( | Image< I > & | ima, | |
const typename I::psite & | p, | |||
const typename I::value & | v | |||
) | [inline] |
References mln::pw::cst(), mln::exact(), and mln::data::paste().