MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / importPath

Function importPath

src/templates/template_track.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117PathObject* importPath(Map& map, const Symbol& symbol, MapCoordVector coords)
118{
119 if (coords.empty())
120 return nullptr;
121
122 if (coords.size() == 1)
123 coords.push_back(coords.front());
124
125 auto* path = new PathObject(&symbol, std::move(coords));
126 map.addObject(path);
127 map.addObjectToSelection(path, false);
128 return path;
129}
130
131PointObject* importPoint(Map& map, const Symbol& symbol, const MapCoordF& position, const QString& name)
132{

Callers 1

importMethod · 0.85

Calls 4

addObjectToSelectionMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected