20 #ifndef LIBREPCB_CORE_JUNCTION_H 21 #define LIBREPCB_CORE_JUNCTION_H 26 #include "../serialization/serializableobjectlist.h" 27 #include "../types/point.h" 87 return !(*
this == rhs);
101 static constexpr
const char* tagname =
"junction";
bool operator==(const Junction &rhs) const noexcept
Definition: junction.cpp:95
Definition: junction.h:100
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: junction.cpp:86
The Junction class represents the connection point between netlines or traces.
Definition: junction.h:47
Definition: occmodel.cpp:76
Junction & operator=(const Junction &rhs) noexcept
Definition: junction.cpp:101
Uuid mUuid
Definition: junction.h:92
Point mPosition
Definition: junction.h:93
bool setUuid(const Uuid &uuid) noexcept
Definition: junction.cpp:62
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
Event
Definition: junction.h:52
Signal< Junction, Event > onEdited
Definition: junction.h:56
const Uuid & getUuid() const noexcept
Definition: junction.h:68
Slot< Junction, Event > OnEditedSlot
Definition: junction.h:57
bool setPosition(const Point &position) noexcept
Definition: junction.cpp:72
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
bool operator!=(const Junction &rhs) const noexcept
Definition: junction.h:86
~Junction() noexcept
Definition: junction.cpp:55
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
The Slot class is used to receive signals from non-QObject derived classes.
Definition: signalslot.h:36
The SExpression class.
Definition: sexpression.h:66
const Point & getPosition() const noexcept
Definition: junction.h:69