LibrePCB Developers Documentation
SI_SymbolPin Class Referencefinal

The SI_SymbolPin class. More...

#include <si_symbolpin.h>

+ Inheritance diagram for SI_SymbolPin:
+ Collaboration diagram for SI_SymbolPin:

Public Member Functions

 SI_SymbolPin ()=delete
 
 SI_SymbolPin (const SI_SymbolPin &other)=delete
 
 SI_SymbolPin (SI_Symbol &symbol, const Uuid &pinUuid)
 
 ~SI_SymbolPin ()
 
const UuidgetLibPinUuid () const noexcept
 
QString getDisplayText (bool returnCmpSignalNameIfEmpty=false, bool returnPinNameIfEmpty=false) const noexcept
 
SI_SymbolgetSymbol () const noexcept
 
const library::SymbolPingetLibPin () const noexcept
 
ComponentSignalInstancegetComponentSignalInstance () const noexcept
 
NetSignalgetCompSigInstNetSignal () const noexcept
 
SI_NetSegmentgetNetSegmentOfLines () const noexcept
 
bool isRequired () const noexcept
 
bool isUsed () const noexcept
 
bool isVisibleJunction () const noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
void updatePosition () noexcept
 
Type_t getType () const noexcept override
 
const PointgetPosition () const noexcept override
 
QPainterPath getGrabAreaScenePx () const noexcept override
 
void setSelected (bool selected) noexcept override
 
void registerNetLine (SI_NetLine &netline) override
 
void unregisterNetLine (SI_NetLine &netline) override
 
const QSet< SI_NetLine * > & getNetLines () const noexcept override
 
SI_SymbolPinoperator= (const SI_SymbolPin &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 bool isSelected () const noexcept
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 
- Public Member Functions inherited from SI_NetLineAnchor
 SI_NetLineAnchor () noexcept=default
 
virtual ~SI_NetLineAnchor () noexcept=default
 
- Public Member Functions inherited from IF_ErcMsgProvider
 IF_ErcMsgProvider ()
 
virtual ~IF_ErcMsgProvider ()
 
virtual const char * getErcMsgOwnerClassName () const noexcept=0
 

Private Slots

void updateErcMessages () noexcept
 

Private Member Functions

void updateGraphicsItemTransform () noexcept
 

Private Attributes

SI_SymbolmSymbol
 
const library::SymbolPinmSymbolPin
 
const library::ComponentPinSignalMapItemmPinSignalMapItem
 
ComponentSignalInstancemComponentSignalInstance
 
QMetaObject::Connection mHighlightChangedConnection
 
Point mPosition
 
Angle mRotation
 
QScopedPointer< SGI_SymbolPinmGraphicsItem
 
QSet< SI_NetLine * > mRegisteredNetLines
 all registered netlines More...
 
QScopedPointer< ErcMsgmErcMsgUnconnectedRequiredPin
 The ERC message for unconnected required pins. More...
 

Additional Inherited Members

- Public Types inherited from SI_Base
enum  Type_t
 
- Protected Member Functions inherited from SI_Base
void addToSchematic (SGI_Base *item) noexcept
 
void removeFromSchematic (SGI_Base *item) noexcept
 
- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_SymbolPin class.

Constructor & Destructor Documentation

◆ SI_SymbolPin() [1/3]

SI_SymbolPin ( )
delete

◆ SI_SymbolPin() [2/3]

SI_SymbolPin ( const SI_SymbolPin other)
delete

◆ SI_SymbolPin() [3/3]

SI_SymbolPin ( SI_Symbol symbol,
const Uuid pinUuid 
)
explicit
+ Here is the call graph for this function:

◆ ~SI_SymbolPin()

+ Here is the call graph for this function:

Member Function Documentation

◆ getLibPinUuid()

const Uuid & getLibPinUuid ( ) const
noexcept
+ Here is the call graph for this function:

◆ getDisplayText()

QString getDisplayText ( bool  returnCmpSignalNameIfEmpty = false,
bool  returnPinNameIfEmpty = false 
) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSymbol()

SI_Symbol& getSymbol ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLibPin()

const library::SymbolPin& getLibPin ( ) const
inlinenoexcept

◆ getComponentSignalInstance()

ComponentSignalInstance* getComponentSignalInstance ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getCompSigInstNetSignal()

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

◆ getNetSegmentOfLines()

SI_NetSegment * getNetSegmentOfLines ( ) const
noexcept

◆ isRequired()

bool isRequired ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ isVisibleJunction()

bool isVisibleJunction ( ) const
noexcept
+ Here is the caller graph for this function:

◆ addToSchematic()

void addToSchematic ( )
overridevirtual

Implements SI_Base.

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

◆ removeFromSchematic()

void removeFromSchematic ( )
overridevirtual

Implements SI_Base.

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

◆ updatePosition()

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

◆ getType()

Type_t getType ( ) const
inlineoverridevirtualnoexcept

Implements SI_Base.

◆ getPosition()

const Point& getPosition ( ) const
inlineoverridevirtualnoexcept

Implements SI_Base.

◆ getGrabAreaScenePx()

QPainterPath getGrabAreaScenePx ( ) const
overridevirtualnoexcept

Implements SI_Base.

+ Here is the caller graph for this function:

◆ setSelected()

void setSelected ( bool  selected)
overridevirtualnoexcept

Reimplemented from SI_Base.

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

◆ registerNetLine()

void registerNetLine ( SI_NetLine netline)
overridevirtual

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:

◆ unregisterNetLine()

void unregisterNetLine ( SI_NetLine netline)
overridevirtual

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:

◆ getNetLines()

const QSet<SI_NetLine*>& getNetLines ( ) const
inlineoverridevirtualnoexcept

Implements SI_NetLineAnchor.

+ Here is the caller graph for this function:

◆ operator=()

SI_SymbolPin& operator= ( const SI_SymbolPin rhs)
delete

◆ updateErcMessages

void updateErcMessages ( )
privateslotnoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateGraphicsItemTransform()

void updateGraphicsItemTransform ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mSymbol

SI_Symbol& mSymbol
private

◆ mSymbolPin

const library::SymbolPin* mSymbolPin
private

◆ mPinSignalMapItem

const library::ComponentPinSignalMapItem* mPinSignalMapItem
private

◆ mComponentSignalInstance

ComponentSignalInstance* mComponentSignalInstance
private

◆ mHighlightChangedConnection

QMetaObject::Connection mHighlightChangedConnection
private

◆ mPosition

Point mPosition
private

◆ mRotation

Angle mRotation
private

◆ mGraphicsItem

QScopedPointer<SGI_SymbolPin> mGraphicsItem
private

◆ mRegisteredNetLines

QSet<SI_NetLine*> mRegisteredNetLines
private

all registered netlines

◆ mErcMsgUnconnectedRequiredPin

QScopedPointer<ErcMsg> mErcMsgUnconnectedRequiredPin
private

The ERC message for unconnected required pins.


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