27 #ifndef MLN_DRAW_DASHED_LINE_HH
28 # define MLN_DRAW_DASHED_LINE_HH
36 # include <mln/core/concept/function.hh>
37 # include <mln/core/concept/image.hh>
38 # include <mln/core/site_set/p_line2d.hh>
39 # include <mln/core/image/imorph/safe.hh>
40 # include <mln/core/image/dmorph/image_if.hh>
41 # include <mln/data/paste.hh>
42 # include <mln/pw/image.hh>
43 # include <mln/pw/cst.hh>
68 const mln_psite(I)& beg,
const mln_psite(I)& end,
69 const mln_value(I)& v);
72 # ifndef MLN_INCLUDE_ONLY
77 template <
typename I,
unsigned dim>
78 struct dashed_line_f : Function_v2b<dashed_line_f<I, dim> >
82 bool operator()(
const mln_site(I)&
p)
const
96 const mln_psite(I)& beg,
const mln_psite(I)& end,
97 const mln_value(I)& v)
100 mln_precondition(ima.is_valid());
103 mln_trace_warning(
"Begin site is not part of the given image.");
105 mln_trace_warning(
"End site is not part of the given image.");
109 | internal::dashed_line_f<I, 1>(),
113 # endif // ! MLN_INCLUDE_ONLY
120 #endif // ! MLN_DRAW_DASHED_LINE_HH