20 #ifndef LIBREPCB_CORE_CIRCLE_H 21 #define LIBREPCB_CORE_CIRCLE_H 26 #include "../serialization/serializableobjectlist.h" 27 #include "../types/length.h" 28 #include "../types/point.h" 47 Q_DECLARE_TR_FUNCTIONS(
Circle)
119 static constexpr
const char* tagname =
"circle";
Uuid mUuid
Definition: circle.h:105
PositiveLength mDiameter
Definition: circle.h:111
bool setCenter(const Point ¢er) noexcept
Definition: circle.cpp:122
Circle & operator=(const Circle &rhs) noexcept
Definition: circle.cpp:173
UnsignedLength mLineWidth
Definition: circle.h:107
Definition: occmodel.cpp:76
bool isGrabArea() const noexcept
Definition: circle.h:78
The Layer class provides all supported geometry layers.
Definition: layer.h:40
Signal< Circle, Event > onEdited
Definition: circle.h:60
bool operator!=(const Circle &rhs) const noexcept
Definition: circle.h:101
const Uuid & getUuid() const noexcept
Definition: circle.h:74
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: circle.cpp:146
bool setDiameter(const PositiveLength &dia) noexcept
Definition: circle.cpp:132
bool operator==(const Circle &rhs) const noexcept
Definition: circle.cpp:162
bool setIsGrabArea(bool isGrabArea) noexcept
Definition: circle.cpp:112
bool isFilled() const noexcept
Definition: circle.h:77
Event
Definition: circle.h:51
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
const Layer & getLayer() const noexcept
Definition: circle.h:75
const PositiveLength & getDiameter() const noexcept
Definition: circle.h:80
const UnsignedLength & getLineWidth() const noexcept
Definition: circle.h:76
bool setIsFilled(bool isFilled) noexcept
Definition: circle.cpp:102
The Circle class.
Definition: circle.h:46
~Circle() noexcept
Definition: circle.cpp:75
Point mCenter
Definition: circle.h:110
bool mIsGrabArea
Definition: circle.h:109
bool setLineWidth(const UnsignedLength &width) noexcept
Definition: circle.cpp:92
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:785
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
bool setLayer(const Layer &layer) noexcept
Definition: circle.cpp:82
Slot< Circle, Event > OnEditedSlot
Definition: circle.h:61
The SExpression class.
Definition: sexpression.h:66
const Layer * mLayer
Definition: circle.h:106
const Point & getCenter() const noexcept
Definition: circle.h:79
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:670
bool mIsFilled
Definition: circle.h:108