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