LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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, 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 setSelected (bool selected) noexcept
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
FootprintPadGraphicsItemoperator= (const FootprintPadGraphicsItem &rhs)=delete
 

Private Member Functions

void updateShape () noexcept
 

Private Attributes

FootprintPadmPad
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer
< PrimitivePathGraphicsItem
mPathGraphicsItem
 

Detailed Description

The FootprintPadGraphicsItem class.

Author
ubruhin
Date
2017-05-28

Constructor & Destructor Documentation

FootprintPadGraphicsItem ( FootprintPad pad,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept
~FootprintPadGraphicsItem ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

FootprintPad& getPad ( )
inlinenoexcept

+ Here is the caller graph for this function:

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 setSelected ( bool  selected)
noexcept

+ Here is the caller graph for this function:

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

Member Data Documentation

FootprintPad& mPad
private
const IF_GraphicsLayerProvider& mLayerProvider
private
QScopedPointer<PrimitivePathGraphicsItem> mPathGraphicsItem
private

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