LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 

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

The FootprintPadPreviewGraphicsItem class.

Author
ubruhin
Date
2016-01-09

Constructor & Destructor Documentation

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

Member Function Documentation

void setDrawBoundingRect ( bool  enable)
inlinenoexcept

+ Here is the caller graph for this function:

void updateCacheAndRepaint ( )
noexcept

+ Here is the call graph for this function:

QRectF boundingRect ( ) const
inlineoverridenoexcept
QPainterPath shape ( ) const
inlineoverridenoexcept
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
FootprintPadPreviewGraphicsItem& operator= ( const FootprintPadPreviewGraphicsItem rhs)
privatedelete

Member Data Documentation

const FootprintPad& mFootprintPad
private
const PackagePad* mPackagePad
private
GraphicsLayer* mLayer
private
bool mDrawBoundingRect
private
QRectF mBoundingRect
private
QPainterPath mShape
private
QFont mFont
private

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