20 #ifndef LIBREPCB_CORE_BI_NETLINE_H 21 #define LIBREPCB_CORE_BI_NETLINE_H 26 #include "../../../geometry/path.h" 27 #include "../../../geometry/trace.h" 53 virtual const QSet<BI_NetLine*>&
getNetLines()
const noexcept = 0;
96 const Uuid&
getUuid() const noexcept {
return mTrace.getUuid(); }
107 void setLayer(
const Layer& layer);
111 void addToBoard()
override;
112 void removeFromBoard()
override;
113 void updatePositions() noexcept;
The BI_NetLine class.
Definition: bi_netline.h:71
virtual void unregisterNetLine(BI_NetLine &netline)=0
const Layer & getLayer() const noexcept
Definition: bi_netline.h:97
UnsignedLength getMedianLineWidth() const noexcept
Definition: bi_netline.cpp:64
Signal< BI_NetLine, Event > onEdited
Definition: bi_netline.h:82
QMetaObject::Connection mNetSignalNameChangedConnection
Definition: bi_netline.h:124
virtual const Point & getPosition() const noexcept=0
virtual const QSet< BI_NetLine * > & getNetLines() const noexcept=0
Definition: occmodel.cpp:76
const Uuid & getUuid() const noexcept
Definition: bi_netline.h:96
Trace mTrace
Definition: bi_netline.h:123
The TraceAnchor class.
Definition: trace.h:45
The Layer class provides all supported geometry layers.
Definition: layer.h:40
const Trace & getTrace() const noexcept
Definition: bi_netline.h:95
Definition: bi_netline.h:46
UnsignedLength getMaxLineWidth() const noexcept
Definition: bi_netline.cpp:54
BI_NetLineAnchor * mStartPoint
Definition: bi_netline.h:127
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
virtual ~BI_NetLineAnchor() noexcept=default
virtual void registerNetLine(BI_NetLine &netline)=0
The Board Item Base (BI_Base) class.
Definition: bi_base.h:45
virtual TraceAnchor toTraceAnchor() const noexcept=0
Event
Definition: bi_netline.h:76
The BI_NetSegment class.
Definition: bi_netsegment.h:52
The Trace class represents a trace within a board.
Definition: trace.h:112
BI_NetSegment & mNetSegment
Definition: bi_netline.h:122
BI_NetLineAnchor() noexcept=default
Slot< BI_NetLine, Event > OnEditedSlot
Definition: bi_netline.h:83
The Path class represents a list of vertices connected by straight lines or circular arc segments...
Definition: path.h:57
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
const PositiveLength & getWidth() const noexcept
Definition: bi_netline.h:98
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:785
BI_NetLineAnchor * mEndPoint
Definition: bi_netline.h:128
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:82
BI_NetLineAnchor & getStartPoint() const noexcept
Definition: bi_netline.h:99
BI_NetSegment * getNetSegmentOfLines() const noexcept
Definition: bi_netline.cpp:71
BI_NetLineAnchor & getEndPoint() const noexcept
Definition: bi_netline.h:100
std::vector< PositiveLength > getLineWidths() const noexcept
Definition: bi_netline.cpp:46
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:670