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

Method close

renderers/agg/include/agg_vertex_sequence.h:106–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 //------------------------------------------------------------------------
105 template<class T, unsigned S>
106 void vertex_sequence<T, S>::close(bool closed)
107 {
108 while(base_type::size() > 1)
109 {
110 if((*this)[base_type::size() - 2]((*this)[base_type::size() - 1])) break;
111 T t = (*this)[base_type::size() - 1];
112 base_type::remove_last();
113 modify_last(t);
114 }
115
116 if(closed)
117 {
118 while(base_type::size() > 1)
119 {
120 if((*this)[base_type::size() - 1]((*this)[0])) break;
121 base_type::remove_last();
122 }
123 }
124 }
125
126
127 //-------------------------------------------------------------vertex_dist

Callers 15

msConnPoolCloseFunction · 0.45
rewindMethod · 0.45
finalize_pathMethod · 0.45
rewindMethod · 0.45
rewindMethod · 0.45
rewindMethod · 0.45
finalize_pathMethod · 0.45
shorten_pathFunction · 0.45
renderMethod · 0.45
rewindMethod · 0.45
read_mapscriptvarsFunction · 0.45
testDrawCloneMethod · 0.45

Calls

no outgoing calls

Tested by 15

testDrawCloneMethod · 0.36
testDrawCloneJPEGMethod · 0.36
testDrawClonePNG24Method · 0.36
testAppendNewStyleMethod · 0.36
test_getfeatureMethod · 0.36
test_getfeatureMethod · 0.36
test_getfeatureMethod · 0.36
test_getfeatureMethod · 0.36
setUpMethod · 0.36