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

Method includeControlPointsRect

src/core/objects/object.cpp:740–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738
739
740void Object::includeControlPointsRect(QRectF& rect) const
741{
742 if (type == Object::Path)
743 {
744 const PathObject* path = asPath();
745 for (auto const& coord : path->coords)
746 rectInclude(rect, QPointF(coord));
747 }
748 else if (type == Object::Text)
749 {
750 const TextObject* text = asText();
751 std::vector<QPointF> text_handles(text->controlPoints());
752 for (auto& text_handle : text_handles)
753 rectInclude(rect, text_handle);
754 }
755}
756
757
758

Callers 3

updateDirtyRectImplMethod · 0.80
updateDirtyRectImplMethod · 0.80
updateDirtyRectImplMethod · 0.80

Calls 3

rectIncludeFunction · 0.85
controlPointsMethod · 0.80
QPointFClass · 0.50

Tested by

no test coverage detected