LibrePCB Developers Documentation
SymbolPinGraphicsItem Class Referencefinal

The SymbolPinGraphicsItem class. More...

#include <symbolpingraphicsitem.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for SymbolPinGraphicsItem:

Public Member Functions

 SymbolPinGraphicsItem ()=delete
 
 SymbolPinGraphicsItem (const SymbolPinGraphicsItem &other)=delete
 
 SymbolPinGraphicsItem (std::shared_ptr< SymbolPin > pin, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const Component > cmp=nullptr, std::shared_ptr< const ComponentSymbolVariantItem > cmpItem=nullptr, QGraphicsItem *parent=nullptr) noexcept
 
 ~SymbolPinGraphicsItem () noexcept
 
const std::shared_ptr< SymbolPin > & getPin () noexcept
 
void updateText () noexcept
 
QPainterPath shape () const noexcept override
 
SymbolPinGraphicsItemoperator= (const SymbolPinGraphicsItem &rhs)=delete
 

Private Member Functions

void pinEdited (const SymbolPin &pin, SymbolPin::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void setLength (const UnsignedLength &length) noexcept
 
void updateNamePosition () noexcept
 
void updateNumbersTransform () noexcept
 

Private Attributes

std::shared_ptr< SymbolPinmPin
 
const IF_GraphicsLayerProvidermLayerProvider
 
std::shared_ptr< const ComponentmComponent
 
std::shared_ptr< const ComponentSymbolVariantItemmItem
 
QScopedPointer< PrimitiveCircleGraphicsItemmCircleGraphicsItem
 
QScopedPointer< LineGraphicsItemmLineGraphicsItem
 
QScopedPointer< PrimitiveTextGraphicsItemmNameGraphicsItem
 
QScopedPointer< PrimitiveTextGraphicsItemmNumbersGraphicsItem
 
SymbolPin::OnEditedSlot mOnEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolPinGraphicsItem() [1/3]

◆ SymbolPinGraphicsItem() [2/3]

SymbolPinGraphicsItem ( const SymbolPinGraphicsItem other)
delete

◆ SymbolPinGraphicsItem() [3/3]

SymbolPinGraphicsItem ( std::shared_ptr< SymbolPin pin,
const IF_GraphicsLayerProvider lp,
std::shared_ptr< const Component cmp = nullptr,
std::shared_ptr< const ComponentSymbolVariantItem cmpItem = nullptr,
QGraphicsItem *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~SymbolPinGraphicsItem()

~SymbolPinGraphicsItem ( )
noexcept

Member Function Documentation

◆ getPin()

const std::shared_ptr<SymbolPin>& getPin ( )
inlinenoexcept
+ Here is the call graph for this function:

◆ updateText()

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

◆ shape()

QPainterPath shape ( ) const
overridenoexcept
+ Here is the caller graph for this function:

◆ operator=()

SymbolPinGraphicsItem& operator= ( const SymbolPinGraphicsItem rhs)
delete
+ Here is the caller graph for this function:

◆ pinEdited()

void pinEdited ( const SymbolPin pin,
SymbolPin::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatevirtualnoexcept
+ Here is the caller graph for this function:

◆ setLength()

void setLength ( const UnsignedLength length)
privatenoexcept
+ Here is the caller graph for this function:

◆ updateNamePosition()

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

◆ updateNumbersTransform()

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

Member Data Documentation

◆ mPin

std::shared_ptr<SymbolPin> mPin
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mComponent

std::shared_ptr<const Component> mComponent
private

◆ mItem

std::shared_ptr<const ComponentSymbolVariantItem> mItem
private

◆ mCircleGraphicsItem

QScopedPointer<PrimitiveCircleGraphicsItem> mCircleGraphicsItem
private

◆ mLineGraphicsItem

QScopedPointer<LineGraphicsItem> mLineGraphicsItem
private

◆ mNameGraphicsItem

QScopedPointer<PrimitiveTextGraphicsItem> mNameGraphicsItem
private

◆ mNumbersGraphicsItem

QScopedPointer<PrimitiveTextGraphicsItem> mNumbersGraphicsItem
private

◆ mOnEditedSlot

SymbolPin::OnEditedSlot mOnEditedSlot
private

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