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

The SI_NetLine class. More...

#include <si_netline.h>

+ Inheritance diagram for SI_NetLine:
+ Collaboration diagram for SI_NetLine:

Public Types

enum class  Event
 
typedef Slot< SI_NetLine, EventOnEditedSlot
 

Public Member Functions

 SI_NetLine ()=delete
 
 SI_NetLine (const SI_NetLine &other)=delete
 
 SI_NetLine (SI_NetSegment &segment, const Uuid &uuid, SI_NetLineAnchor &startPoint, SI_NetLineAnchor &endPoint, const UnsignedLength &width)
 
 ~SI_NetLine () noexcept
 
SI_NetSegmentgetNetSegment () const noexcept
 
const NetLinegetNetLine () const noexcept
 
const UuidgetUuid () const noexcept
 
const UnsignedLengthgetWidth () const noexcept
 
SI_NetLineAnchorgetStartPoint () const noexcept
 
SI_NetLineAnchorgetEndPoint () const noexcept
 
SI_NetLineAnchorgetOtherPoint (const SI_NetLineAnchor &firstPoint) const noexcept
 
NetSignalgetNetSignalOfNetSegment () const noexcept
 
void setWidth (const UnsignedLength &width) noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
void updatePositions () noexcept
 
SI_NetLineoperator= (const SI_NetLine &rhs)=delete
 
- Public Member Functions inherited from SI_Base
 SI_Base ()=delete
 
 SI_Base (const SI_Base &other)=delete
 
 SI_Base (Schematic &schematic) noexcept
 
virtual ~SI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
SchematicgetSchematic () const noexcept
 
virtual bool isAddedToSchematic () const noexcept
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 

Public Attributes

Signal< SI_NetLine, EventonEdited
 

Private Attributes

SI_NetSegmentmNetSegment
 
NetLine mNetLine
 
SI_NetLineAnchormStartPoint
 
SI_NetLineAnchormEndPoint
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_NetLine class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionsChanged 
NetSignalNameChanged 

Constructor & Destructor Documentation

◆ SI_NetLine() [1/3]

SI_NetLine ( )
delete

◆ SI_NetLine() [2/3]

SI_NetLine ( const SI_NetLine other)
delete

◆ SI_NetLine() [3/3]

SI_NetLine ( SI_NetSegment segment,
const Uuid uuid,
SI_NetLineAnchor startPoint,
SI_NetLineAnchor endPoint,
const UnsignedLength width 
)
+ Here is the call graph for this function:

◆ ~SI_NetLine()

~SI_NetLine ( )
noexcept

Member Function Documentation

◆ getNetSegment()

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

◆ getNetLine()

const NetLine & getNetLine ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getUuid()

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

◆ getWidth()

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

◆ getStartPoint()

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

◆ getEndPoint()

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

◆ getOtherPoint()

SI_NetLineAnchor * getOtherPoint ( const SI_NetLineAnchor firstPoint) const
noexcept

◆ getNetSignalOfNetSegment()

NetSignal & getNetSignalOfNetSegment ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWidth()

void setWidth ( const UnsignedLength width)
noexcept

◆ addToSchematic()

void addToSchematic ( )
overridevirtual

Reimplemented from SI_Base.

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

◆ removeFromSchematic()

void removeFromSchematic ( )
overridevirtual

Reimplemented from SI_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=()

SI_NetLine & operator= ( const SI_NetLine rhs)
delete

Member Data Documentation

◆ onEdited

Signal<SI_NetLine, Event> onEdited

◆ mNetSegment

SI_NetSegment& mNetSegment
private

◆ mNetLine

NetLine mNetLine
private

◆ mStartPoint

SI_NetLineAnchor* mStartPoint
private

◆ mEndPoint

SI_NetLineAnchor* mEndPoint
private

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