20 #ifndef LIBREPCB_CORE_SI_NETLINE_H 21 #define LIBREPCB_CORE_SI_NETLINE_H 26 #include "../../../geometry/netline.h" 51 virtual const QSet<SI_NetLine*>&
getNetLines()
const noexcept = 0;
53 virtual bool isOpen()
const noexcept = 0;
88 const Uuid&
getUuid() const noexcept {
return mNetLine.getUuid(); }
90 return mNetLine.getWidth();
96 NetSignal& getNetSignalOfNetSegment()
const noexcept;
102 void addToSchematic()
override;
103 void removeFromSchematic()
override;
104 void updatePositions() noexcept;
virtual NetLineAnchor toNetLineAnchor() const noexcept=0
NetLine mNetLine
Definition: si_netline.h:111
SI_NetLineAnchor * mStartPoint
Definition: si_netline.h:114
SI_NetSegment & mNetSegment
Definition: si_netline.h:110
The NetLine class represents a net line within a schematic.
Definition: netline.h:108
Definition: occmodel.cpp:76
virtual void registerNetLine(SI_NetLine &netline)=0
SI_NetLineAnchor & getStartPoint() const noexcept
Definition: si_netline.h:92
The Schematic Item Base (SI_Base) class.
Definition: si_base.h:45
virtual void unregisterNetLine(SI_NetLine &netline)=0
virtual ~SI_NetLineAnchor() noexcept=default
Definition: si_netline.h:44
virtual const Point & getPosition() const noexcept=0
const Uuid & getUuid() const noexcept
Definition: si_netline.h:88
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
SI_NetLineAnchor() noexcept=default
The NetSignal class.
Definition: netsignal.h:50
virtual bool isOpen() const noexcept=0
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
const NetLine & getNetLine() const noexcept
Definition: si_netline.h:87
Event
Definition: si_netline.h:70
virtual const QSet< SI_NetLine * > & getNetLines() const noexcept=0
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
The SI_NetLine class.
Definition: si_netline.h:65
Slot< SI_NetLine, Event > OnEditedSlot
Definition: si_netline.h:75
const UnsignedLength & getWidth() const noexcept
Definition: si_netline.h:89
The NetLineAnchor class.
Definition: netline.h:43
Signal< SI_NetLine, Event > onEdited
Definition: si_netline.h:74
The SI_NetSegment class.
Definition: si_netsegment.h:53
SI_NetLineAnchor & getEndPoint() const noexcept
Definition: si_netline.h:93
SI_NetLineAnchor * mEndPoint
Definition: si_netline.h:115
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:670