LibrePCB Developers Documentation
FootprintPadGraphicsItem Class Referencefinal

The FootprintPadGraphicsItem class. More...

#include <footprintpadgraphicsitem.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for FootprintPadGraphicsItem:

Public Member Functions

 FootprintPadGraphicsItem ()=delete
 
 FootprintPadGraphicsItem (const FootprintPadGraphicsItem &other)=delete
 
 FootprintPadGraphicsItem (std::shared_ptr< FootprintPad > pad, const IF_GraphicsLayerProvider &lp, const PackagePadList *packagePadList, QGraphicsItem *parent=nullptr) noexcept
 
 ~FootprintPadGraphicsItem () noexcept
 
FootprintPadgetObj () noexcept
 
void updateText () noexcept
 
QPainterPath shape () const noexcept override
 
FootprintPadGraphicsItemoperator= (const FootprintPadGraphicsItem &rhs)=delete
 

Private Member Functions

void padEdited (const FootprintPad &pad, FootprintPad::Event event) noexcept
 
void packagePadListEdited (const PackagePadList &list, int index, const std::shared_ptr< const PackagePad > &pad, PackagePadList::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updateLayer () noexcept
 
void updateGeometries () noexcept
 

Private Attributes

std::shared_ptr< FootprintPadmPad
 
const PackagePadListmPackagePadList
 
QScopedPointer< PrimitiveFootprintPadGraphicsItemmGraphicsItem
 
FootprintPad::OnEditedSlot mOnPadEditedSlot
 
PackagePadList::OnEditedSlot mOnPackagePadsEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

◆ FootprintPadGraphicsItem() [1/3]

◆ FootprintPadGraphicsItem() [2/3]

◆ FootprintPadGraphicsItem() [3/3]

FootprintPadGraphicsItem ( std::shared_ptr< FootprintPad pad,
const IF_GraphicsLayerProvider lp,
const PackagePadList packagePadList,
QGraphicsItem *  parent = nullptr 
)
noexcept

◆ ~FootprintPadGraphicsItem()

~FootprintPadGraphicsItem ( )
noexcept

Member Function Documentation

◆ getObj()

FootprintPad & getObj ( )
inlinenoexcept

◆ updateText()

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

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ operator=()

FootprintPadGraphicsItem & operator= ( const FootprintPadGraphicsItem rhs)
delete

◆ padEdited()

void padEdited ( const FootprintPad pad,
FootprintPad::Event  event 
)
privatenoexcept

◆ packagePadListEdited()

void packagePadListEdited ( const PackagePadList list,
int  index,
const std::shared_ptr< const PackagePad > &  pad,
PackagePadList::Event  event 
)
privatenoexcept

◆ itemChange()

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

◆ updateLayer()

void updateLayer ( )
privatenoexcept

◆ updateGeometries()

void updateGeometries ( )
privatenoexcept

Member Data Documentation

◆ mPad

std::shared_ptr<FootprintPad> mPad
private

◆ mPackagePadList

const PackagePadList* mPackagePadList
private

◆ mGraphicsItem

QScopedPointer<PrimitiveFootprintPadGraphicsItem> mGraphicsItem
private

◆ mOnPadEditedSlot

FootprintPad::OnEditedSlot mOnPadEditedSlot
private

◆ mOnPackagePadsEditedSlot

PackagePadList::OnEditedSlot mOnPackagePadsEditedSlot
private

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