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

Method transform

dep/agg/include/agg_path_storage.h:818–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

transform_all_pathsMethod · 0.45

Calls 5

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

Tested by

no test coverage detected