MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / add_path

Method add_path

dep/agg/include/agg_trans_single_path.h:70–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 //--------------------------------------------------------------------
69 template <class VertexSource>
70 void add_path(VertexSource& vs, unsigned path_id = 0)
71 {
72 double x;
73 double y;
74
75 unsigned cmd;
76 vs.rewind(path_id);
77 while (!is_stop(cmd = vs.vertex(&x, &y)))
78 {
79 if (is_move_to(cmd))
80 {
81 move_to(x, y);
82 }
83 else
84 {
85 if (is_vertex(cmd))
86 {
87 line_to(x, y);
88 }
89 }
90 }
91 finalize_path();
92 }
93
94 //--------------------------------------------------------------------
95 double total_length() const;

Callers 4

drawPathMethod · 0.45
renderImageMethod · 0.45
contour_createMethod · 0.45
render_all_pathsFunction · 0.45

Calls 5

is_stopFunction · 0.85
is_move_toFunction · 0.85
is_vertexFunction · 0.85
rewindMethod · 0.45
vertexMethod · 0.45

Tested by

no test coverage detected