LibrePCB Developers Documentation
BI_NetPoint Class Referencefinal

The BI_NetPoint class. More...

#include <bi_netpoint.h>

+ Inheritance diagram for BI_NetPoint:
+ Collaboration diagram for BI_NetPoint:

Public Types

enum class  Event
 
typedef Slot< BI_NetPoint, EventOnEditedSlot
 

Public Member Functions

 BI_NetPoint ()=delete
 
 BI_NetPoint (const BI_NetPoint &other)=delete
 
 BI_NetPoint (BI_NetSegment &segment, const Uuid &uuid, const Point &position)
 
 ~BI_NetPoint () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept override
 
const JunctiongetJunction () const noexcept
 
BI_NetSegmentgetNetSegment () const noexcept
 
bool isUsed () const noexcept
 
const LayergetLayerOfTraces () const noexcept
 
const UnsignedLengthgetMaxTraceWidth () const noexcept
 
TraceAnchor toTraceAnchor () const noexcept override
 
void setPosition (const Point &position) noexcept
 
void addToBoard () override
 
void removeFromBoard () override
 
void registerNetLine (BI_NetLine &netline) override
 
void unregisterNetLine (BI_NetLine &netline) override
 
const QSet< BI_NetLine * > & getNetLines () const noexcept override
 
BI_NetPointoperator= (const BI_NetPoint &rhs)=delete
 
bool operator== (const BI_NetPoint &rhs) noexcept
 
bool operator!= (const BI_NetPoint &rhs) noexcept
 
- Public Member Functions inherited from BI_Base
 BI_Base ()=delete
 
 BI_Base (const BI_Base &other)=delete
 
 BI_Base (Board &board) noexcept
 
virtual ~BI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
BoardgetBoard () const noexcept
 
virtual bool isAddedToBoard () const noexcept
 
virtual void addToBoard ()
 
virtual void removeFromBoard ()
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 
- Public Member Functions inherited from BI_NetLineAnchor
 BI_NetLineAnchor () noexcept=default
 
virtual ~BI_NetLineAnchor () noexcept=default
 
virtual void registerNetLine (BI_NetLine &netline)=0
 
virtual void unregisterNetLine (BI_NetLine &netline)=0
 
virtual const QSet< BI_NetLine * > & getNetLines () const noexcept=0
 
virtual const PointgetPosition () const noexcept=0
 
virtual TraceAnchor toTraceAnchor () const noexcept=0
 
std::vector< PositiveLengthgetLineWidths () const noexcept
 
UnsignedLength getMaxLineWidth () const noexcept
 
UnsignedLength getMedianLineWidth () const noexcept
 
BI_NetSegmentgetNetSegmentOfLines () const noexcept
 

Public Attributes

Signal< BI_NetPoint, EventonEdited
 

Private Member Functions

void netLineEdited (const BI_NetLine &obj, BI_NetLine::Event event) noexcept
 
void updateLayerOfTraces () noexcept
 
void updateMaxTraceWidth () noexcept
 

Private Attributes

BI_NetSegmentmNetSegment
 
Junction mJunction
 
QMetaObject::Connection mNetSignalNameChangedConnection
 
const LayermLayerOfTraces
 
UnsignedLength mMaxTraceWidth
 
QSet< BI_NetLine * > mRegisteredNetLines
 all registered netlines More...
 
BI_NetLine::OnEditedSlot mOnNetLineEditedSlot
 

Additional Inherited Members

- Protected Attributes inherited from BI_Base
BoardmBoard
 

Detailed Description

The BI_NetPoint class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionChanged 
LayerOfTracesChanged 
MaxTraceWidthChanged 
NetSignalNameChanged 

Constructor & Destructor Documentation

◆ BI_NetPoint() [1/3]

BI_NetPoint ( )
delete

◆ BI_NetPoint() [2/3]

BI_NetPoint ( const BI_NetPoint other)
delete

◆ BI_NetPoint() [3/3]

BI_NetPoint ( BI_NetSegment segment,
const Uuid uuid,
const Point position 
)

◆ ~BI_NetPoint()

~BI_NetPoint ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPosition()

const Point & getPosition ( ) const
inlineoverridevirtualnoexcept

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getJunction()

const Junction & getJunction ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetSegment()

BI_NetSegment & getNetSegment ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isUsed()

bool isUsed ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLayerOfTraces()

const Layer * getLayerOfTraces ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMaxTraceWidth()

const UnsignedLength & getMaxTraceWidth ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ toTraceAnchor()

TraceAnchor toTraceAnchor ( ) const
overridevirtualnoexcept

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ setPosition()

void setPosition ( const Point position)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToBoard()

void addToBoard ( )
overridevirtual

Reimplemented from BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromBoard()

void removeFromBoard ( )
overridevirtual

Reimplemented from BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerNetLine()

void registerNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ unregisterNetLine()

void unregisterNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ getNetLines()

const QSet< BI_NetLine * > & getNetLines ( ) const
inlineoverridevirtualnoexcept

Implements BI_NetLineAnchor.

+ Here is the caller graph for this function:

◆ operator=()

BI_NetPoint & operator= ( const BI_NetPoint rhs)
delete

◆ operator==()

bool operator== ( const BI_NetPoint rhs)
inlinenoexcept

◆ operator!=()

bool operator!= ( const BI_NetPoint rhs)
inlinenoexcept

◆ netLineEdited()

void netLineEdited ( const BI_NetLine obj,
BI_NetLine::Event  event 
)
privatenoexcept

◆ updateLayerOfTraces()

void updateLayerOfTraces ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ updateMaxTraceWidth()

void updateMaxTraceWidth ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ onEdited

Signal<BI_NetPoint, Event> onEdited

◆ mNetSegment

BI_NetSegment& mNetSegment
private

◆ mJunction

Junction mJunction
private

◆ mNetSignalNameChangedConnection

QMetaObject::Connection mNetSignalNameChangedConnection
private

◆ mLayerOfTraces

const Layer* mLayerOfTraces
private

◆ mMaxTraceWidth

UnsignedLength mMaxTraceWidth
private

◆ mRegisteredNetLines

QSet<BI_NetLine*> mRegisteredNetLines
private

all registered netlines

◆ mOnNetLineEditedSlot

BI_NetLine::OnEditedSlot mOnNetLineEditedSlot
private

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