LibrePCB Developers Documentation
Loading...
Searching...
No Matches
BoardNetSegmentSplitter Class Referencefinal

The BoardNetSegmentSplitter class. More...

#include <boardnetsegmentsplitter.h>

+ Collaboration diagram for BoardNetSegmentSplitter:

Classes

struct  Segment
 

Public Member Functions

 BoardNetSegmentSplitter () noexcept
 
 BoardNetSegmentSplitter (const BoardNetSegmentSplitter &other)=delete
 
 ~BoardNetSegmentSplitter () noexcept
 
void replaceFootprintPadByJunctions (const TraceAnchor &anchor, const Point &pos) noexcept
 
void addJunction (const Junction &junction) noexcept
 
void addVia (const Via &via, bool replaceByJunctions) noexcept
 
void addTrace (const Trace &trace) noexcept
 
QList< Segmentsplit () noexcept
 
BoardNetSegmentSplitteroperator= (const BoardNetSegmentSplitter &rhs)=delete
 

Private Member Functions

TraceAnchor replaceAnchor (const TraceAnchor &anchor, const Layer &layer) noexcept
 
void findConnectedLinesAndPoints (const TraceAnchor &anchor, QList< std::shared_ptr< Via > > &availableVias, QList< std::shared_ptr< Trace > > &availableTraces, Segment &segment) noexcept
 

Private Attributes

JunctionList mJunctions
 
ViaList mVias
 
TraceList mTraces
 
QHash< TraceAnchor, PointmAnchorsToReplace
 
QHash< QPair< TraceAnchor, const Layer * >, TraceAnchormReplacedAnchors
 

Detailed Description

Constructor & Destructor Documentation

◆ BoardNetSegmentSplitter() [1/2]

◆ BoardNetSegmentSplitter() [2/2]

◆ ~BoardNetSegmentSplitter()

~BoardNetSegmentSplitter ( )
noexcept

Member Function Documentation

◆ replaceFootprintPadByJunctions()

void replaceFootprintPadByJunctions ( const TraceAnchor anchor,
const Point pos 
)
noexcept
+ Here is the caller graph for this function:

◆ addJunction()

void addJunction ( const Junction junction)
noexcept
+ Here is the caller graph for this function:

◆ addVia()

void addVia ( const Via via,
bool  replaceByJunctions 
)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addTrace()

void addTrace ( const Trace trace)
noexcept
+ Here is the caller graph for this function:

◆ split()

QList< BoardNetSegmentSplitter::Segment > split ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

BoardNetSegmentSplitter & operator= ( const BoardNetSegmentSplitter rhs)
delete

◆ replaceAnchor()

TraceAnchor replaceAnchor ( const TraceAnchor anchor,
const Layer layer 
)
privatenoexcept
+ Here is the call graph for this function:

◆ findConnectedLinesAndPoints()

void findConnectedLinesAndPoints ( const TraceAnchor anchor,
QList< std::shared_ptr< Via > > &  availableVias,
QList< std::shared_ptr< Trace > > &  availableTraces,
Segment segment 
)
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mJunctions

JunctionList mJunctions
private

◆ mVias

ViaList mVias
private

◆ mTraces

TraceList mTraces
private

◆ mAnchorsToReplace

QHash<TraceAnchor, Point> mAnchorsToReplace
private

◆ mReplacedAnchors

QHash<QPair<TraceAnchor, const Layer*>, TraceAnchor> mReplacedAnchors
private

The documentation for this class was generated from the following files: