MCPcopy Create free account
hub / github.com/MapServer/MapServer / add_vertex

Method add_vertex

renderers/agg/src/agg_vcgen_dash.cpp:107–125  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

105
106 //------------------------------------------------------------------------
107 void vcgen_dash::add_vertex(double x, double y, unsigned cmd)
108 {
109 m_status = initial;
110 if(is_move_to(cmd))
111 {
112 m_src_vertices.modify_last(vertex_dist(x, y));
113 }
114 else
115 {
116 if(is_vertex(cmd))
117 {
118 m_src_vertices.add(vertex_dist(x, y));
119 }
120 else
121 {
122 m_closed = get_close_flag(cmd);
123 }
124 }
125 }
126
127
128 //------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 6

is_move_toFunction · 0.85
vertex_distClass · 0.85
is_vertexFunction · 0.85
get_close_flagFunction · 0.85
modify_lastMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected