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

Method add_vertex

renderers/agg/src/agg_vcgen_bspline.cpp:45–63  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

43
44 //------------------------------------------------------------------------
45 void vcgen_bspline::add_vertex(double x, double y, unsigned cmd)
46 {
47 m_status = initial;
48 if(is_move_to(cmd))
49 {
50 m_src_vertices.modify_last(point_d(x, y));
51 }
52 else
53 {
54 if(is_vertex(cmd))
55 {
56 m_src_vertices.add(point_d(x, y));
57 }
58 else
59 {
60 m_closed = get_close_flag(cmd);
61 }
62 }
63 }
64
65
66 //------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected