MCPcopy Create free account
hub / github.com/comaps/comaps / SetLinear

Method SetLinear

generator/feature_builder.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void FeatureBuilder::SetLinear(bool reverseGeometry)
99{
100 m_params.SetGeomType(GeomType::Line);
101
102 if (reverseGeometry)
103 {
104 auto & cont = m_polygons.front();
105 ASSERT(!cont.empty(), ());
106 reverse(cont.begin(), cont.end());
107 }
108}
109
110void FeatureBuilder::AssignArea(PointSeq && outline, Geometry const & holes)
111{

Callers 12

ProcessRawEntriesMethod · 0.80
CreateFbFunction · 0.80
TransformToLineFunction · 0.80
GenerateIsolinesMethod · 0.80
BuildFromWayMethod · 0.80
UNIT_CLASS_TESTFunction · 0.80
MakeFbForTestFunction · 0.80
UNIT_TESTFunction · 0.80
AddWayMethod · 0.80
MakeLineFbMethod · 0.80
SerializeMethod · 0.80

Calls 6

ASSERTFunction · 0.85
SetGeomTypeMethod · 0.80
frontMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 7

UNIT_CLASS_TESTFunction · 0.64
MakeFbForTestFunction · 0.64
UNIT_TESTFunction · 0.64
AddWayMethod · 0.64
MakeLineFbMethod · 0.64
SerializeMethod · 0.64