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

Method transform_all_paths

renderers/agg/include/agg_path_storage.h:822–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820 //--------------------------------------------------------------------
821 template<class Trans>
822 void transform_all_paths(const Trans& trans)
823 {
824 unsigned idx;
825 unsigned num_ver = m_vertices.total_vertices();
826 for(idx = 0; idx < num_ver; idx++)
827 {
828 double x, y;
829 if(is_vertex(m_vertices.vertex(idx, &x, &y)))
830 {
831 trans.transform(&x, &y);
832 m_vertices.modify_vertex(idx, x, y);
833 }
834 }
835 }
836
837
838

Callers

nothing calls this directly

Calls 5

is_vertexFunction · 0.85
total_verticesMethod · 0.45
vertexMethod · 0.45
transformMethod · 0.45
modify_vertexMethod · 0.45

Tested by

no test coverage detected