26 #ifndef SCRIBO_IO_IMG_INTERNAL_NON_TEXT_IMG_VISITOR_HH
27 # define SCRIBO_IO_IMG_INTERNAL_NON_TEXT_IMG_VISITOR_HH
36 # include <mln/core/image/image2d.hh>
37 # include <mln/value/rgb8.hh>
38 # include <mln/draw/box.hh>
40 # include <scribo/core/internal/doc_serializer.hh>
41 # include <scribo/io/img/internal/draw_edges.hh>
81 # ifndef MLN_INCLUDE_ONLY
97 non_text_img_visitor::visit(
const document<L>& doc)
const
100 if (doc.has_elements())
105 doc.elements().accept(*
this);
109 if (doc.has_hline_seps())
110 doc.hline_seps_comps().accept(*
this);
111 if (doc.has_vline_seps())
112 doc.vline_seps_comps().accept(*
this);
118 template <
typename L>
122 for_all_comps(c, comp_set)
123 if (comp_set(c).is_valid())
124 comp_set(c).accept(*this);
130 template <typename L>
147 draw_edges(info, output, literal::orange, elt_edge);
154 #endif // MLN_INCLUDE_ONLY
164 #endif // SCRIBO_IO_IMG_INTERNAL_NON_TEXT_IMG_VISITOR_HH