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
 
const std::shared_ptr< FootprintPad > & getPad () 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

◆ getPad()

const std::shared_ptr<FootprintPad>& getPad ( )
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=()

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

◆ padEdited()

void padEdited ( const FootprintPad pad,
FootprintPad::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ packagePadListEdited()

void packagePadListEdited ( const PackagePadList list,
int  index,
const std::shared_ptr< const PackagePad > &  pad,
PackagePadList::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:

◆ updateLayer()

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

◆ updateGeometries()

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

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: