MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / transform_all_paths

Method transform_all_paths

dep/agg/include/agg_path_storage.h:837–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835 //--------------------------------------------------------------------
836 template <class Trans>
837 void transform_all_paths(const Trans& trans)
838 {
839 unsigned idx;
840 unsigned num_ver = m_vertices.total_vertices();
841 for (idx = 0; idx < num_ver; idx++)
842 {
843 double x, y;
844 if (is_vertex(m_vertices.vertex(idx, &x, &y)))
845 {
846 trans.transform(&x, &y);
847 m_vertices.modify_vertex(idx, x, y);
848 }
849 }
850 }
851
852 //--------------------------------------------------------------------
853 // If the end points of a path are very, very close then make them

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