20#ifndef LIBREPCB_CORE_PADHOLE_H
21#define LIBREPCB_CORE_PADHOLE_H
26#include "../geometry/path.h"
27#include "../serialization/serializableobjectlist.h"
28#include "../types/length.h"
70 bool isSlot() const noexcept;
88 bool operator==(const
PadHole& rhs) const noexcept;
89 bool operator!=(const
PadHole& rhs) const noexcept {
return !(*
this == rhs); }
103 static constexpr const char*
tagname =
"hole";
The PadHole class.
Definition padhole.h:44
Signal< PadHole, Event > onEdited
Definition padhole.h:54
bool isSlot() const noexcept
Definition padhole.cpp:67
bool isMultiSegmentSlot() const noexcept
Definition padhole.cpp:71
PadHole & operator=(const PadHole &rhs) noexcept
Definition padhole.cpp:124
virtual ~PadHole() noexcept
Definition padhole.cpp:60
Uuid mUuid
Definition padhole.h:93
Event
Definition padhole.h:49
Slot< PadHole, Event > OnEditedSlot
Definition padhole.h:55
NonEmptyPath mPath
Definition padhole.h:95
bool setPath(const NonEmptyPath &path) noexcept
Definition padhole.cpp:93
const PositiveLength & getDiameter() const noexcept
Definition padhole.h:68
virtual void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition padhole.cpp:107
const Uuid & getUuid() const noexcept
Definition padhole.h:67
bool isCurvedSlot() const noexcept
Definition padhole.cpp:75
PositiveLength mDiameter
Definition padhole.h:94
bool setDiameter(const PositiveLength &diameter) noexcept
Definition padhole.cpp:83
const NonEmptyPath & getPath() const noexcept
Definition padhole.h:69
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< Path, NonEmptyPathConstraint, NonEmptyPathVerifier > NonEmptyPath
Definition path.h:231
static constexpr const char * tagname
Definition padhole.h:103