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
 
SymbolPingetObj () noexcept
 
const std::shared_ptr< SymbolPin > & getPtr () 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

◆ getObj()

SymbolPin & getObj ( )
inlinenoexcept

◆ getPtr()

const std::shared_ptr< SymbolPin > & getPtr ( )
inlinenoexcept

◆ updateText()

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

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ operator=()

SymbolPinGraphicsItem & operator= ( const SymbolPinGraphicsItem rhs)
delete

◆ pinEdited()

void pinEdited ( const SymbolPin pin,
SymbolPin::Event  event 
)
privatenoexcept

◆ itemChange()

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

◆ setLength()

void setLength ( const UnsignedLength length)
privatenoexcept

◆ updateNamePosition()

void updateNamePosition ( )
privatenoexcept

◆ updateNumbersTransform()

void updateNumbersTransform ( )
privatenoexcept
+ Here is the call 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: