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

Method transform

renderers/agg/include/agg_path_storage.h:804–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802 //--------------------------------------------------------------------
803 template<class Trans>
804 void transform(const Trans& trans, unsigned path_id=0)
805 {
806 unsigned num_ver = m_vertices.total_vertices();
807 for(; path_id < num_ver; path_id++)
808 {
809 double x, y;
810 unsigned cmd = m_vertices.vertex(path_id, &x, &y);
811 if(is_stop(cmd)) break;
812 if(is_vertex(cmd))
813 {
814 trans.transform(&x, &y);
815 m_vertices.modify_vertex(path_id, x, y);
816 }
817 }
818 }
819
820 //--------------------------------------------------------------------
821 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