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

Method add_vertex

renderers/agg/src/agg_vcgen_contour.cpp:50–75  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

48
49 //------------------------------------------------------------------------
50 void vcgen_contour::add_vertex(double x, double y, unsigned cmd)
51 {
52 m_status = initial;
53 if(is_move_to(cmd))
54 {
55 m_src_vertices.modify_last(vertex_dist(x, y));
56 }
57 else
58 {
59 if(is_vertex(cmd))
60 {
61 m_src_vertices.add(vertex_dist(x, y));
62 }
63 else
64 {
65 if(is_end_poly(cmd))
66 {
67 m_closed = get_close_flag(cmd);
68 if(m_orientation == path_flags_none)
69 {
70 m_orientation = get_orientation(cmd);
71 }
72 }
73 }
74 }
75 }
76
77 //------------------------------------------------------------------------
78 void vcgen_contour::rewind(unsigned)

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected