LibrePCB Developers Documentation
SI_NetLabel Class Referencefinal

The SI_NetLabel class. More...

#include <si_netlabel.h>

+ Inheritance diagram for SI_NetLabel:
+ Collaboration diagram for SI_NetLabel:

Public Types

enum class  Event
 
typedef Slot< SI_NetLabel, EventOnEditedSlot
 

Public Member Functions

 SI_NetLabel ()=delete
 
 SI_NetLabel (const SI_NetLabel &other)=delete
 
 SI_NetLabel (SI_NetSegment &segment, const NetLabel &label)
 
 ~SI_NetLabel () 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_NetSegmentgetNetSegment () const noexcept
 
NetSignalgetNetSignalOfNetSegment () const noexcept
 
Length getApproximateWidth () 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_NetLabeloperator= (const SI_NetLabel &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
 
virtual void addToSchematic ()
 
virtual void removeFromSchematic ()
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 

Public Attributes

Signal< SI_NetLabel, EventonEdited
 

Private Attributes

QMetaObject::Connection mNameChangedConnection
 
SI_NetSegmentmNetSegment
 
NetLabel mNetLabel
 
Point mAnchorPosition
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_NetLabel class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionChanged 
RotationChanged 
MirroredChanged 
NetNameChanged 
AnchorPositionChanged 

Constructor & Destructor Documentation

◆ SI_NetLabel() [1/3]

SI_NetLabel ( )
delete

◆ SI_NetLabel() [2/3]

SI_NetLabel ( const SI_NetLabel other)
delete

◆ SI_NetLabel() [3/3]

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

◆ ~SI_NetLabel()

~SI_NetLabel ( )
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:

◆ getNetSegment()

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

◆ getNetSignalOfNetSegment()

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

◆ getApproximateWidth()

Length getApproximateWidth ( )
noexcept

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

Member Data Documentation

◆ onEdited

Signal<SI_NetLabel, Event> onEdited

◆ mNameChangedConnection

QMetaObject::Connection mNameChangedConnection
private

◆ mNetSegment

SI_NetSegment& mNetSegment
private

◆ mNetLabel

NetLabel mNetLabel
private

◆ mAnchorPosition

Point mAnchorPosition
private

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