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

Method copyFrom

src/core/objects/object.cpp:119–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117Object::~Object() = default;
118
119void Object::copyFrom(const Object& other)
120{
121 if (&other == this)
122 return;
123
124 if (type != other.type)
125 throw std::invalid_argument(Q_FUNC_INFO);
126
127 symbol = other.symbol;
128 coords = other.coords;
129 rotation = other.rotation;
130 // map unchanged!
131 object_tags = other.object_tags;
132 output_dirty = true;
133 extent = other.extent;
134}
135
136bool Object::equals(const Object* other, bool compare_symbol) const
137{

Callers 7

copyFromTestMethod · 0.45
changePathBoundsTestMethod · 0.45
calcIntersectionsTestMethod · 0.45
objectsMethod · 0.45
abortEditingMethod · 0.45
resetEditedObjectsMethod · 0.45

Calls 7

asPathMethod · 0.80
getPatternOriginMethod · 0.80
isRotatableMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45
asPointMethod · 0.45
getRotationMethod · 0.45

Tested by

no test coverage detected