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

The SI_BusLine class. More...

#include <si_busline.h>

+ Inheritance diagram for SI_BusLine:
+ Collaboration diagram for SI_BusLine:

Public Types

enum class  Event
 
typedef Slot< SI_BusLine, EventOnEditedSlot
 

Public Member Functions

 SI_BusLine ()=delete
 
 SI_BusLine (const SI_BusLine &other)=delete
 
 SI_BusLine (SI_BusSegment &segment, const Uuid &uuid, SI_BusJunction &a, SI_BusJunction &b, const UnsignedLength &width)
 
 ~SI_BusLine () noexcept
 
SI_BusSegmentgetBusSegment () const noexcept
 
const NetLinegetNetLine () const noexcept
 
const UuidgetUuid () const noexcept
 
const UnsignedLengthgetWidth () const noexcept
 
SI_BusJunctiongetP1 () const noexcept
 
SI_BusJunctiongetP2 () const noexcept
 
SI_BusJunctiongetOtherPoint (const SI_BusJunction &firstPoint) const noexcept
 
void setWidth (const UnsignedLength &width) noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
void updatePositions () noexcept
 
SI_BusLineoperator= (const SI_BusLine &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_BusLine, EventonEdited
 

Private Attributes

SI_BusSegmentmSegment
 
NetLine mNetLine
 
SI_BusJunctionmP1
 
SI_BusJunctionmP2
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_BusLine class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionsChanged 
BusNameChanged 

Constructor & Destructor Documentation

◆ SI_BusLine() [1/3]

SI_BusLine ( )
delete

◆ SI_BusLine() [2/3]

SI_BusLine ( const SI_BusLine other)
delete

◆ SI_BusLine() [3/3]

SI_BusLine ( SI_BusSegment segment,
const Uuid uuid,
SI_BusJunction a,
SI_BusJunction b,
const UnsignedLength width 
)
+ Here is the call graph for this function:

◆ ~SI_BusLine()

~SI_BusLine ( )
noexcept

Member Function Documentation

◆ getBusSegment()

SI_BusSegment & getBusSegment ( ) 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 call graph for this function:
+ Here is the caller graph for this function:

◆ getWidth()

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

◆ getP1()

SI_BusJunction & getP1 ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getP2()

SI_BusJunction & getP2 ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getOtherPoint()

SI_BusJunction * getOtherPoint ( const SI_BusJunction firstPoint) const
noexcept

◆ 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_BusLine & operator= ( const SI_BusLine rhs)
delete

Member Data Documentation

◆ onEdited

Signal<SI_BusLine, Event> onEdited

◆ mSegment

SI_BusSegment& mSegment
private

◆ mNetLine

NetLine mNetLine
private

◆ mP1

SI_BusJunction* mP1
private

◆ mP2

SI_BusJunction* mP2
private

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