LibrePCB Developers Documentation
FootprintPadGraphicsItem Class Referencefinal

The FootprintPadGraphicsItem class. More...

#include <footprintpadgraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for FootprintPadGraphicsItem:

Public Member Functions

 FootprintPadGraphicsItem ()=delete
 
 FootprintPadGraphicsItem (const FootprintPadGraphicsItem &other)=delete
 
 FootprintPadGraphicsItem (FootprintPad &pad, const IF_GraphicsLayerProvider &lp, const PackagePadList *packagePadList, QGraphicsItem *parent=nullptr) noexcept
 
 ~FootprintPadGraphicsItem () noexcept
 
FootprintPadgetPad () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setShape (const QPainterPath &shape) noexcept
 
void setLayerName (const QString &name) noexcept
 
void setPackagePadUuid (const Uuid &uuid) noexcept
 
void setSelected (bool selected) noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 
FootprintPadGraphicsItemoperator= (const FootprintPadGraphicsItem &rhs)=delete
 

Private Member Functions

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

Private Attributes

FootprintPadmPad
 
const IF_GraphicsLayerProvidermLayerProvider
 
const PackagePadListmPackagePadList
 
QScopedPointer< PrimitivePathGraphicsItemmPathGraphicsItem
 
QScopedPointer< PrimitiveTextGraphicsItemmTextGraphicsItem
 
PackagePadList::OnEditedSlot mOnPadsEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

◆ FootprintPadGraphicsItem() [1/3]

◆ FootprintPadGraphicsItem() [2/3]

◆ FootprintPadGraphicsItem() [3/3]

FootprintPadGraphicsItem ( FootprintPad pad,
const IF_GraphicsLayerProvider lp,
const PackagePadList packagePadList,
QGraphicsItem *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~FootprintPadGraphicsItem()

~FootprintPadGraphicsItem ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ getPad()

FootprintPad& getPad ( )
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPosition()

void setPosition ( const Point pos)
noexcept
+ Here is the caller graph for this function:

◆ setRotation()

void setRotation ( const Angle rot)
noexcept
+ Here is the caller graph for this function:

◆ setShape()

void setShape ( const QPainterPath &  shape)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLayerName()

void setLayerName ( const QString &  name)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPackagePadUuid()

void setPackagePadUuid ( const Uuid uuid)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSelected()

void setSelected ( bool  selected)
noexcept
+ Here is the caller graph for this function:

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept
+ Here is the call graph for this function:

◆ shape()

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

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
+ Here is the caller graph for this function:

◆ operator=()

FootprintPadGraphicsItem& operator= ( const FootprintPadGraphicsItem rhs)
delete
+ 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:

◆ updateTextHeight()

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

Member Data Documentation

◆ mPad

FootprintPad& mPad
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mPackagePadList

const PackagePadList* mPackagePadList
private

◆ mPathGraphicsItem

QScopedPointer<PrimitivePathGraphicsItem> mPathGraphicsItem
private

◆ mTextGraphicsItem

QScopedPointer<PrimitiveTextGraphicsItem> mTextGraphicsItem
private

◆ mOnPadsEditedSlot

PackagePadList::OnEditedSlot mOnPadsEditedSlot
private

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