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

Method end_path

renderers/agg/src/agg_svg_path_renderer.cpp:60–71  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

58
59 //------------------------------------------------------------------------
60 void path_renderer::end_path()
61 {
62 if(m_attr_storage.size() == 0)
63 {
64 throw exception("end_path : The path was not begun");
65 }
66 path_attributes attr = cur_attr();
67 unsigned idx = m_attr_storage[m_attr_storage.size() - 1].index;
68 attr.index = idx;
69 m_attr_storage[m_attr_storage.size() - 1] = attr;
70 pop_attr();
71 }
72
73 //------------------------------------------------------------------------
74 void path_renderer::move_to(double x, double y, bool rel) // M, m

Callers 4

start_elementMethod · 0.80
parse_rectMethod · 0.80
parse_lineMethod · 0.80
parse_polyMethod · 0.80

Calls 2

exceptionClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected