20 #ifndef LIBREPCB_CORE_POLYGON_H 21 #define LIBREPCB_CORE_POLYGON_H 26 #include "../serialization/serializableobjectlist.h" 27 #include "../types/layer.h" 28 #include "../types/length.h" 114 static constexpr
const char* tagname =
"polygon";
Definition: polygon.h:113
UnsignedLength mLineWidth
Definition: polygon.h:103
Polygon & operator=(const Polygon &rhs) noexcept
Definition: polygon.cpp:174
bool setLineWidth(const UnsignedLength &width) noexcept
Definition: polygon.cpp:104
bool isGrabArea() const noexcept
Definition: polygon.h:75
bool operator!=(const Polygon &rhs) const noexcept
Definition: polygon.h:97
Definition: occmodel.cpp:76
The Layer class provides all supported geometry layers.
Definition: layer.h:40
bool setIsFilled(bool isFilled) noexcept
Definition: polygon.cpp:114
bool mIsFilled
Definition: polygon.h:104
Event
Definition: polygon.h:50
bool setIsGrabArea(bool isGrabArea) noexcept
Definition: polygon.cpp:124
Slot< Polygon, Event > OnEditedSlot
Definition: polygon.h:59
Uuid mUuid
Definition: polygon.h:101
const Layer & getLayer() const noexcept
Definition: polygon.h:72
bool operator==(const Polygon &rhs) const noexcept
Definition: polygon.cpp:164
Path mPath
Definition: polygon.h:106
Signal< Polygon, Event > onEdited
Definition: polygon.h:58
bool setPath(const Path &path) noexcept
Definition: polygon.cpp:134
const Layer * mLayer
Definition: polygon.h:102
The Path class represents a list of vertices connected by straight lines or circular arc segments...
Definition: path.h:57
bool mIsGrabArea
Definition: polygon.h:105
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
bool isFilled() const noexcept
Definition: polygon.h:74
const Uuid & getUuid() const noexcept
Definition: polygon.h:71
~Polygon() noexcept
Definition: polygon.cpp:75
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
const Path & getPath() const noexcept
Definition: polygon.h:76
The Polygon class.
Definition: polygon.h:45
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: polygon.cpp:148
bool setLayer(const Layer &layer) noexcept
Definition: polygon.cpp:94
The SExpression class.
Definition: sexpression.h:66
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:670
Path getPathForRendering() const noexcept
Definition: polygon.cpp:82
const UnsignedLength & getLineWidth() const noexcept
Definition: polygon.h:73