20#ifndef LIBREPCB_CORE_BOARDNETSEGMENTSPLITTER_H
21#define LIBREPCB_CORE_BOARDNETSEGMENTSPLITTER_H
26#include "../../geometry/junction.h"
27#include "../../geometry/trace.h"
28#include "../../geometry/via.h"
63 const
Point& pos) noexcept;
65 void addVia(const
Via& via,
bool replaceByJunctions) noexcept;
75 const
Layer& layer) noexcept;
The BoardNetSegmentSplitter class.
Definition: boardnetsegmentsplitter.h:47
TraceList mTraces
Definition: boardnetsegmentsplitter.h:85
TraceAnchor replaceAnchor(const TraceAnchor &anchor, const Layer &layer) noexcept
Definition: boardnetsegmentsplitter.cpp:105
JunctionList mJunctions
Definition: boardnetsegmentsplitter.h:83
QHash< QPair< TraceAnchor, const Layer * >, TraceAnchor > mReplacedAnchors
Definition: boardnetsegmentsplitter.h:88
QList< Segment > split() noexcept
Definition: boardnetsegmentsplitter.cpp:76
QHash< TraceAnchor, Point > mAnchorsToReplace
Definition: boardnetsegmentsplitter.h:87
BoardNetSegmentSplitter() noexcept
Definition: boardnetsegmentsplitter.cpp:39
ViaList mVias
Definition: boardnetsegmentsplitter.h:84
void addTrace(const Trace &trace) noexcept
Definition: boardnetsegmentsplitter.cpp:68
void findConnectedLinesAndPoints(const TraceAnchor &anchor, ViaList &availableVias, TraceList &availableTraces, Segment &segment) noexcept
Definition: boardnetsegmentsplitter.cpp:123
void addJunction(const Junction &junction) noexcept
Definition: boardnetsegmentsplitter.cpp:55
void addVia(const Via &via, bool replaceByJunctions) noexcept
Definition: boardnetsegmentsplitter.cpp:59
void replaceFootprintPadByJunctions(const TraceAnchor &anchor, const Point &pos) noexcept
Definition: boardnetsegmentsplitter.cpp:50
The Junction class represents the connection point between netlines or traces.
Definition: junction.h:47
The Layer class provides all supported geometry layers.
Definition: layer.h:42
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The TraceAnchor class.
Definition: trace.h:46
The Trace class represents a trace within a board.
Definition: trace.h:113
The Via class represents a via of a board.
Definition: via.h:52
Definition: occmodel.cpp:77
Definition: boardnetsegmentsplitter.h:50
JunctionList junctions
Definition: boardnetsegmentsplitter.h:51
TraceList traces
Definition: boardnetsegmentsplitter.h:53
ViaList vias
Definition: boardnetsegmentsplitter.h:52