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

The SI_BusLabel class. More...

#include <si_buslabel.h>

+ Inheritance diagram for SI_BusLabel:
+ Collaboration diagram for SI_BusLabel:

Public Types

enum class  Event
 
typedef Slot< SI_BusLabel, EventOnEditedSlot
 

Public Member Functions

 SI_BusLabel ()=delete
 
 SI_BusLabel (const SI_BusLabel &other)=delete
 
 SI_BusLabel (SI_BusSegment &segment, const NetLabel &label)
 
 ~SI_BusLabel () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept
 
const AnglegetRotation () const noexcept
 
bool getMirrored () const noexcept
 
const PointgetAnchorPosition () const noexcept
 
const NetLabelgetNetLabel () const noexcept
 
SI_BusSegmentgetBusSegment () const noexcept
 
void setPosition (const Point &position) noexcept
 
void setRotation (const Angle &rotation) noexcept
 
void setMirrored (const bool mirrored) noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
void updateAnchor () noexcept
 
SI_BusLabeloperator= (const SI_BusLabel &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_BusLabel, EventonEdited
 

Private Attributes

QMetaObject::Connection mNameChangedConnection
 
SI_BusSegmentmSegment
 
NetLabel mNetLabel
 
Point mAnchorPosition
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_BusLabel class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionChanged 
RotationChanged 
MirroredChanged 
BusNameChanged 
AnchorPositionChanged 

Constructor & Destructor Documentation

◆ SI_BusLabel() [1/3]

SI_BusLabel ( )
delete

◆ SI_BusLabel() [2/3]

SI_BusLabel ( const SI_BusLabel other)
delete

◆ SI_BusLabel() [3/3]

SI_BusLabel ( SI_BusSegment segment,
const NetLabel label 
)
explicit
+ Here is the call graph for this function:

◆ ~SI_BusLabel()

~SI_BusLabel ( )
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
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRotation()

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

◆ getMirrored()

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

◆ getAnchorPosition()

const Point & getAnchorPosition ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNetLabel()

const NetLabel & getNetLabel ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getBusSegment()

SI_BusSegment & getBusSegment ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setPosition()

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

◆ setRotation()

void setRotation ( const Angle rotation)
noexcept
+ Here is the caller graph for this function:

◆ setMirrored()

void setMirrored ( const bool  mirrored)
noexcept
+ Here is the caller graph for this function:

◆ 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:

◆ updateAnchor()

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

◆ operator=()

SI_BusLabel & operator= ( const SI_BusLabel rhs)
delete

Member Data Documentation

◆ onEdited

Signal<SI_BusLabel, Event> onEdited

◆ mNameChangedConnection

QMetaObject::Connection mNameChangedConnection
private

◆ mSegment

SI_BusSegment& mSegment
private

◆ mNetLabel

NetLabel mNetLabel
private

◆ mAnchorPosition

Point mAnchorPosition
private

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