19 #ifndef AGG_CONV_MARKER_INCLUDED 20 #define AGG_CONV_MARKER_INCLUDED 23 #include "agg_basics.h" 24 #include "agg_trans_affine.h" 29 template<
class MarkerLocator,
class MarkerShapes>
36 const trans_affine& transform()
const {
return m_transform; }
38 void rewind(
unsigned path_id);
39 unsigned vertex(
double* x,
double* y);
54 MarkerLocator* m_marker_locator;
55 MarkerShapes* m_marker_shapes;
60 unsigned m_num_markers;
65 template<
class MarkerLocator,
class MarkerShapes>
67 m_marker_locator(&ml),
77 template<
class MarkerLocator,
class MarkerShapes>
87 template<
class MarkerLocator,
class MarkerShapes>
90 unsigned cmd = path_cmd_move_to;
91 double x1, y1, x2, y2;
98 if(m_num_markers == 0)
103 m_marker_locator->rewind(m_marker);
109 if(is_stop(m_marker_locator->vertex(&x1, &y1)))
114 if(is_stop(m_marker_locator->vertex(&x2, &y2)))
123 m_marker_shapes->rewind(m_marker - 1);
127 cmd = m_marker_shapes->vertex(x, y);
130 cmd = path_cmd_move_to;
134 m_mtx.transform(x, y);