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

Method rewind

renderers/agg/src/agg_vcgen_contour.cpp:78–99  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

76
77 //------------------------------------------------------------------------
78 void vcgen_contour::rewind(unsigned)
79 {
80 if(m_status == initial)
81 {
82 m_src_vertices.close(true);
83 if(m_auto_detect)
84 {
85 if(!is_oriented(m_orientation))
86 {
87 m_orientation = (calc_polygon_area(m_src_vertices) > 0.0) ?
88 path_flags_ccw :
89 path_flags_cw;
90 }
91 }
92 if(is_oriented(m_orientation))
93 {
94 m_stroker.width(is_ccw(m_orientation) ? m_width : -m_width);
95 }
96 }
97 m_status = ready;
98 m_src_vertex = 0;
99 }
100
101 //------------------------------------------------------------------------
102 unsigned vcgen_contour::vertex(double* x, double* y)

Callers

nothing calls this directly

Calls 5

is_orientedFunction · 0.85
calc_polygon_areaFunction · 0.85
is_ccwFunction · 0.85
closeMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected