LibrePCB Developers Documentation
FootprintPadPreviewGraphicsItem Class Referencefinal

The FootprintPadPreviewGraphicsItem class. More...

#include <footprintpadpreviewgraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for FootprintPadPreviewGraphicsItem:

Public Member Functions

 FootprintPadPreviewGraphicsItem (const IF_GraphicsLayerProvider &layerProvider, const FootprintPad &fptPad, const PackagePad *pkgPad=nullptr) noexcept
 
 ~FootprintPadPreviewGraphicsItem () noexcept
 
void setDrawBoundingRect (bool enable) noexcept
 
void updateCacheAndRepaint () noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 

Private Member Functions

 FootprintPadPreviewGraphicsItem ()=delete
 
 FootprintPadPreviewGraphicsItem (const FootprintPadPreviewGraphicsItem &other)=delete
 
FootprintPadPreviewGraphicsItemoperator= (const FootprintPadPreviewGraphicsItem &rhs)=delete
 

Private Attributes

const FootprintPadmFootprintPad
 
const PackagePadmPackagePad
 
GraphicsLayermLayer
 
bool mDrawBoundingRect
 
QRectF mBoundingRect
 
QPainterPath mShape
 
QFont mFont
 

Detailed Description

Constructor & Destructor Documentation

◆ FootprintPadPreviewGraphicsItem() [1/3]

FootprintPadPreviewGraphicsItem ( const IF_GraphicsLayerProvider layerProvider,
const FootprintPad fptPad,
const PackagePad pkgPad = nullptr 
)
explicitnoexcept

◆ ~FootprintPadPreviewGraphicsItem()

◆ FootprintPadPreviewGraphicsItem() [2/3]

+ Here is the caller graph for this function:

◆ FootprintPadPreviewGraphicsItem() [3/3]

Member Function Documentation

◆ setDrawBoundingRect()

void setDrawBoundingRect ( bool  enable)
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateCacheAndRepaint()

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

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept

◆ shape()

QPainterPath shape ( ) const
inlineoverridenoexcept
+ Here is the call graph for this function:

◆ paint()

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

◆ operator=()

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

Member Data Documentation

◆ mFootprintPad

const FootprintPad& mFootprintPad
private

◆ mPackagePad

const PackagePad* mPackagePad
private

◆ mLayer

GraphicsLayer* mLayer
private

◆ mDrawBoundingRect

bool mDrawBoundingRect
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mShape

QPainterPath mShape
private

◆ mFont

QFont mFont
private

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