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";
The Junction class represents the connection point between netlines or traces.
Definition: junction.h:47
bool setPosition(const Point &position) noexcept
Definition: junction.cpp:72
bool operator==(const Junction &rhs) const noexcept
Definition: junction.cpp:95
Uuid mUuid
Definition: junction.h:92
Event
Definition: junction.h:52
bool operator!=(const Junction &rhs) const noexcept
Definition: junction.h:86
const Point & getPosition() const noexcept
Definition: junction.h:69
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: junction.cpp:86
Slot< Junction, Event > OnEditedSlot
Definition: junction.h:57
const Uuid & getUuid() const noexcept
Definition: junction.h:68
Signal< Junction, Event > onEdited
Definition: junction.h:56
Junction & operator=(const Junction &rhs) noexcept
Definition: junction.cpp:101
bool setUuid(const Uuid &uuid) noexcept
Definition: junction.cpp:62
Point mPosition
Definition: junction.h:93
~Junction() noexcept
Definition: junction.cpp:55
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
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:58
Definition: occmodel.cpp:77
Definition: junction.h:100
static constexpr const char * tagname
Definition: junction.h:101