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