LibrePCB Developers Documentation
SGI_SymbolPin Class Referencefinal

The SGI_SymbolPin class. More...

#include <sgi_symbolpin.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for SGI_SymbolPin:

Public Member Functions

 SGI_SymbolPin ()=delete
 
 SGI_SymbolPin (const SGI_SymbolPin &other)=delete
 
 SGI_SymbolPin (SI_SymbolPin &pin, std::weak_ptr< SGI_Symbol > symbolItem, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const QSet< const NetSignal * > > highlightedNetSignals) noexcept
 
virtual ~SGI_SymbolPin () noexcept
 
SI_SymbolPingetPin () noexcept
 
const std::weak_ptr< SGI_Symbol > & getSymbolGraphicsItem () noexcept
 
void updateHighlightedState () noexcept
 
QPainterPath shape () const noexcept override
 
SGI_SymbolPinoperator= (const SGI_SymbolPin &rhs)=delete
 

Private Member Functions

void pinEdited (const SI_SymbolPin &obj, SI_SymbolPin::Event event) noexcept
 
void symbolGraphicsItemEdited (const SGI_Symbol &obj, SGI_Symbol::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updatePosition () noexcept
 
void updateRotation () noexcept
 
void updateJunction () noexcept
 
void updateName () noexcept
 
void updateNumbers () noexcept
 
void updateNumbersPosition () noexcept
 
void updateNumbersAlignment () noexcept
 
void updateToolTip () noexcept
 

Private Attributes

SI_SymbolPinmPin
 
std::weak_ptr< SGI_SymbolmSymbolGraphicsItem
 
const IF_GraphicsLayerProvidermLayerProvider
 
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
 
QScopedPointer< PrimitiveCircleGraphicsItemmCircleGraphicsItem
 
QScopedPointer< LineGraphicsItemmLineGraphicsItem
 
QScopedPointer< PrimitiveTextGraphicsItemmNameGraphicsItem
 
QScopedPointer< PrimitiveTextGraphicsItemmNumbersGraphicsItem
 
SI_SymbolPin::OnEditedSlot mOnPinEditedSlot
 
SGI_Symbol::OnEditedSlot mOnSymbolEditedSlot
 

Detailed Description

The SGI_SymbolPin class.

Constructor & Destructor Documentation

◆ SGI_SymbolPin() [1/3]

SGI_SymbolPin ( )
delete

◆ SGI_SymbolPin() [2/3]

SGI_SymbolPin ( const SGI_SymbolPin other)
delete

◆ SGI_SymbolPin() [3/3]

SGI_SymbolPin ( SI_SymbolPin pin,
std::weak_ptr< SGI_Symbol symbolItem,
const IF_GraphicsLayerProvider lp,
std::shared_ptr< const QSet< const NetSignal * > >  highlightedNetSignals 
)
noexcept

◆ ~SGI_SymbolPin()

~SGI_SymbolPin ( )
virtualnoexcept

Member Function Documentation

◆ getPin()

SI_SymbolPin & getPin ( )
inlinenoexcept

◆ getSymbolGraphicsItem()

const std::weak_ptr< SGI_Symbol > & getSymbolGraphicsItem ( )
inlinenoexcept

◆ updateHighlightedState()

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

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ operator=()

SGI_SymbolPin & operator= ( const SGI_SymbolPin rhs)
delete

◆ pinEdited()

void pinEdited ( const SI_SymbolPin obj,
SI_SymbolPin::Event  event 
)
privatenoexcept

◆ symbolGraphicsItemEdited()

void symbolGraphicsItemEdited ( const SGI_Symbol obj,
SGI_Symbol::Event  event 
)
privatenoexcept

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatevirtualnoexcept

◆ updatePosition()

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

◆ updateRotation()

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

◆ updateJunction()

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

◆ updateName()

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

◆ updateNumbers()

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

◆ updateNumbersPosition()

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

◆ updateNumbersAlignment()

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

◆ updateToolTip()

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

Member Data Documentation

◆ mPin

SI_SymbolPin& mPin
private

◆ mSymbolGraphicsItem

std::weak_ptr<SGI_Symbol> mSymbolGraphicsItem
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mHighlightedNetSignals

std::shared_ptr<const QSet<const NetSignal*> > mHighlightedNetSignals
private

◆ mCircleGraphicsItem

QScopedPointer<PrimitiveCircleGraphicsItem> mCircleGraphicsItem
private

◆ mLineGraphicsItem

QScopedPointer<LineGraphicsItem> mLineGraphicsItem
private

◆ mNameGraphicsItem

QScopedPointer<PrimitiveTextGraphicsItem> mNameGraphicsItem
private

◆ mNumbersGraphicsItem

QScopedPointer<PrimitiveTextGraphicsItem> mNumbersGraphicsItem
private

◆ mOnPinEditedSlot

SI_SymbolPin::OnEditedSlot mOnPinEditedSlot
private

◆ mOnSymbolEditedSlot

SGI_Symbol::OnEditedSlot mOnSymbolEditedSlot
private

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