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

Method translate_all_paths

renderers/agg/include/agg_path_storage.h:1404–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1402 //------------------------------------------------------------------------
1403 template<class VC>
1404 void path_base<VC>::translate_all_paths(double dx, double dy)
1405 {
1406 unsigned idx;
1407 unsigned num_ver = m_vertices.total_vertices();
1408 for(idx = 0; idx < num_ver; idx++)
1409 {
1410 double x, y;
1411 if(is_vertex(m_vertices.vertex(idx, &x, &y)))
1412 {
1413 x += dx;
1414 y += dy;
1415 m_vertices.modify_vertex(idx, x, y);
1416 }
1417 }
1418 }
1419
1420 //-----------------------------------------------------vertex_stl_storage
1421 template<class Container> class vertex_stl_storage

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected