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

The BI_NetLine class. More...

#include <bi_netline.h>

+ Inheritance diagram for BI_NetLine:
+ Collaboration diagram for BI_NetLine:

Public Types

enum class  Event
 
typedef Slot< BI_NetLine, EventOnEditedSlot
 

Public Member Functions

 BI_NetLine ()=delete
 
 BI_NetLine (const BI_NetLine &other)=delete
 
 BI_NetLine (BI_NetSegment &segment, const Uuid &uuid, BI_NetLineAnchor &startPoint, BI_NetLineAnchor &endPoint, const Layer &layer, const PositiveLength &width)
 
 ~BI_NetLine () noexcept
 
BI_NetSegmentgetNetSegment () const noexcept
 
const TracegetTrace () const noexcept
 
const UuidgetUuid () const noexcept
 
const LayergetLayer () const noexcept
 
const PositiveLengthgetWidth () const noexcept
 
BI_NetLineAnchorgetStartPoint () const noexcept
 
BI_NetLineAnchorgetEndPoint () const noexcept
 
BI_NetLineAnchorgetOtherPoint (const BI_NetLineAnchor &firstPoint) const noexcept
 
Path getSceneOutline (const Length &expansion=Length(0)) const noexcept
 
UnsignedLength getLength () const noexcept
 
void setLayer (const Layer &layer)
 
void setWidth (const PositiveLength &width) noexcept
 
void addToBoard () override
 
void removeFromBoard () override
 
void updatePositions () noexcept
 
BI_NetLineoperator= (const BI_NetLine &rhs)=delete
 
- 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
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 

Public Attributes

Signal< BI_NetLine, EventonEdited
 

Private Member Functions

BI_NetLineAnchorgetAnchor (const TraceAnchor &anchor)
 

Private Attributes

BI_NetSegmentmNetSegment
 
Trace mTrace
 
QMetaObject::Connection mNetSignalNameChangedConnection
 
BI_NetLineAnchormStartPoint
 
BI_NetLineAnchormEndPoint
 

Additional Inherited Members

- Protected Attributes inherited from BI_Base
BoardmBoard
 

Detailed Description

The BI_NetLine class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionsChanged 
LayerChanged 
WidthChanged 
NetSignalNameChanged 

Constructor & Destructor Documentation

◆ BI_NetLine() [1/3]

BI_NetLine ( )
delete

◆ BI_NetLine() [2/3]

BI_NetLine ( const BI_NetLine other)
delete

◆ BI_NetLine() [3/3]

BI_NetLine ( BI_NetSegment segment,
const Uuid uuid,
BI_NetLineAnchor startPoint,
BI_NetLineAnchor endPoint,
const Layer layer,
const PositiveLength width 
)
+ Here is the call graph for this function:

◆ ~BI_NetLine()

~BI_NetLine ( )
noexcept

Member Function Documentation

◆ getNetSegment()

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

◆ getTrace()

const Trace & getTrace ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getUuid()

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

◆ getLayer()

const Layer & getLayer ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getWidth()

const PositiveLength & getWidth ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStartPoint()

BI_NetLineAnchor & getStartPoint ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getEndPoint()

BI_NetLineAnchor & getEndPoint ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getOtherPoint()

BI_NetLineAnchor * getOtherPoint ( const BI_NetLineAnchor firstPoint) const
noexcept
+ Here is the caller graph for this function:

◆ getSceneOutline()

Path getSceneOutline ( const Length expansion = Length(0)) const
noexcept
+ Here is the call graph for this function:

◆ getLength()

UnsignedLength getLength ( ) const
noexcept
+ Here is the call graph for this function:

◆ setLayer()

void setLayer ( const Layer layer)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWidth()

void setWidth ( const PositiveLength width)
noexcept
+ 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:

◆ updatePositions()

void updatePositions ( )
noexcept
+ Here is the caller graph for this function:

◆ operator=()

BI_NetLine & operator= ( const BI_NetLine rhs)
delete

◆ getAnchor()

BI_NetLineAnchor * getAnchor ( const TraceAnchor anchor)
private
+ Here is the call graph for this function:

Member Data Documentation

◆ onEdited

Signal<BI_NetLine, Event> onEdited

◆ mNetSegment

BI_NetSegment& mNetSegment
private

◆ mTrace

Trace mTrace
private

◆ mNetSignalNameChangedConnection

QMetaObject::Connection mNetSignalNameChangedConnection
private

◆ mStartPoint

BI_NetLineAnchor* mStartPoint
private

◆ mEndPoint

BI_NetLineAnchor* mEndPoint
private

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