27 #ifndef MLN_DRAW_PLOT_HH
28 # define MLN_DRAW_PLOT_HH
35 # include <mln/core/concept/image.hh>
36 # include <mln/core/site_set/p_line2d.hh>
37 # include <mln/data/paste.hh>
38 # include <mln/pw/image.hh>
39 # include <mln/pw/cst.hh>
60 void plot(Image<I>& ima,
61 const mln_point(I)&
p,
62 const mln_value(I)& v);
65 # ifndef MLN_INCLUDE_ONLY
69 void plot(Image<I>& ima,
70 const mln_psite(I)& p,
71 const mln_value(I)& v)
73 mln_precondition(
exact(ima).is_valid());
76 for (
unsigned i = 0; i < I::point::dim; i++)
78 mln_point(I) beg = p, end = p;
81 data::
paste(pw::cst(v) | line2d(beg, end),
86 # endif // ! MLN_INCLUDE_ONLY
93 #endif // ! MLN_DRAW_PLOT_HH