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

Method addLine

src/core/objects/object_mover.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73void ObjectMover::addLine(PathObject* object, MapCoordVector::size_type start_point_index)
74{
75 Q_ASSERT(start_point_index < object->getCoordinateCount());
76
77 auto index_set = insertPointObject(object);
78 index_set->insert(start_point_index);
79 index_set->insert(start_point_index + 1);
80 if (object->getCoordinate(start_point_index).isCurveStart())
81 {
82 index_set->insert(start_point_index + 2);
83 index_set->insert(start_point_index + 3);
84 }
85
86 constraints_calculated = false;
87}
88
89
90void ObjectMover::addTextHandle(TextObject* text, MapCoordVector::size_type handle)

Callers 1

dragStartMethod · 0.80

Calls 4

getCoordinateCountMethod · 0.80
isCurveStartMethod · 0.80
getCoordinateMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected