LibrePCB Developers Documentation
FootprintGraphicsItem Class Referencefinal

The FootprintGraphicsItem class. More...

#include <footprintgraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for FootprintGraphicsItem:

Public Member Functions

 FootprintGraphicsItem ()=delete
 
 FootprintGraphicsItem (const FootprintGraphicsItem &other)=delete
 
 FootprintGraphicsItem (Footprint &fpt, const IF_GraphicsLayerProvider &lp, const PackagePadList *packagePadList) noexcept
 
 ~FootprintGraphicsItem () noexcept
 
FootprintgetFootprint () noexcept
 
FootprintPadGraphicsItemgetPadGraphicsItem (const FootprintPad &pin) noexcept
 
CircleGraphicsItemgetCircleGraphicsItem (const Circle &circle) noexcept
 
PolygonGraphicsItemgetPolygonGraphicsItem (const Polygon &polygon) noexcept
 
StrokeTextGraphicsItemgetTextGraphicsItem (const StrokeText &text) noexcept
 
HoleGraphicsItemgetHoleGraphicsItem (const Hole &hole) noexcept
 
int getItemsAtPosition (const Point &pos, QList< QSharedPointer< FootprintPadGraphicsItem >> *pads, QList< QSharedPointer< CircleGraphicsItem >> *circles, QList< QSharedPointer< PolygonGraphicsItem >> *polygons, QList< QSharedPointer< StrokeTextGraphicsItem >> *texts, QList< QSharedPointer< HoleGraphicsItem >> *holes) noexcept
 
QList< QSharedPointer< FootprintPadGraphicsItem > > getSelectedPads () noexcept
 
QList< QSharedPointer< CircleGraphicsItem > > getSelectedCircles () noexcept
 
QList< QSharedPointer< PolygonGraphicsItem > > getSelectedPolygons () noexcept
 
QList< QSharedPointer< StrokeTextGraphicsItem > > getSelectedStrokeTexts () noexcept
 
QList< QSharedPointer< HoleGraphicsItem > > getSelectedHoles () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void addPad (FootprintPad &pad) noexcept
 
void removePad (FootprintPad &pad) noexcept
 
void addCircle (Circle &circle) noexcept
 
void removeCircle (Circle &circle) noexcept
 
void addPolygon (Polygon &polygon) noexcept
 
void removePolygon (Polygon &polygon) noexcept
 
void addStrokeText (StrokeText &text) noexcept
 
void removeStrokeText (StrokeText &text) noexcept
 
void addHole (Hole &hole) noexcept
 
void removeHole (Hole &hole) noexcept
 
void setSelectionRect (const QRectF rect) noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 
FootprintGraphicsItemoperator= (const FootprintGraphicsItem &rhs)=delete
 

Private Attributes

FootprintmFootprint
 
const IF_GraphicsLayerProvidermLayerProvider
 
const PackagePadListmPackagePadList
 
QHash< const FootprintPad *, QSharedPointer< FootprintPadGraphicsItem > > mPadGraphicsItems
 
QHash< const Circle *, QSharedPointer< CircleGraphicsItem > > mCircleGraphicsItems
 
QHash< const Polygon *, QSharedPointer< PolygonGraphicsItem > > mPolygonGraphicsItems
 
QHash< const StrokeText *, QSharedPointer< StrokeTextGraphicsItem > > mStrokeTextGraphicsItems
 
QHash< const Hole *, QSharedPointer< HoleGraphicsItem > > mHoleGraphicsItems
 

Detailed Description

Constructor & Destructor Documentation

◆ FootprintGraphicsItem() [1/3]

◆ FootprintGraphicsItem() [2/3]

FootprintGraphicsItem ( const FootprintGraphicsItem other)
delete

◆ FootprintGraphicsItem() [3/3]

FootprintGraphicsItem ( Footprint fpt,
const IF_GraphicsLayerProvider lp,
const PackagePadList packagePadList 
)
noexcept

◆ ~FootprintGraphicsItem()

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

Member Function Documentation

◆ getFootprint()

Footprint& getFootprint ( )
inlinenoexcept
+ Here is the call graph for this function:

◆ getPadGraphicsItem()

FootprintPadGraphicsItem * getPadGraphicsItem ( const FootprintPad pin)
noexcept
+ Here is the caller graph for this function:

◆ getCircleGraphicsItem()

CircleGraphicsItem * getCircleGraphicsItem ( const Circle circle)
noexcept
+ Here is the caller graph for this function:

◆ getPolygonGraphicsItem()

PolygonGraphicsItem * getPolygonGraphicsItem ( const Polygon polygon)
noexcept
+ Here is the caller graph for this function:

◆ getTextGraphicsItem()

StrokeTextGraphicsItem * getTextGraphicsItem ( const StrokeText text)
noexcept
+ Here is the caller graph for this function:

◆ getHoleGraphicsItem()

HoleGraphicsItem * getHoleGraphicsItem ( const Hole hole)
noexcept
+ Here is the caller graph for this function:

◆ getItemsAtPosition()

int getItemsAtPosition ( const Point pos,
QList< QSharedPointer< FootprintPadGraphicsItem >> *  pads,
QList< QSharedPointer< CircleGraphicsItem >> *  circles,
QList< QSharedPointer< PolygonGraphicsItem >> *  polygons,
QList< QSharedPointer< StrokeTextGraphicsItem >> *  texts,
QList< QSharedPointer< HoleGraphicsItem >> *  holes 
)
noexcept
+ Here is the caller graph for this function:

◆ getSelectedPads()

QList< QSharedPointer< FootprintPadGraphicsItem > > getSelectedPads ( )
noexcept
+ Here is the caller graph for this function:

◆ getSelectedCircles()

QList< QSharedPointer< CircleGraphicsItem > > getSelectedCircles ( )
noexcept
+ Here is the caller graph for this function:

◆ getSelectedPolygons()

QList< QSharedPointer< PolygonGraphicsItem > > getSelectedPolygons ( )
noexcept
+ Here is the caller graph for this function:

◆ getSelectedStrokeTexts()

QList< QSharedPointer< StrokeTextGraphicsItem > > getSelectedStrokeTexts ( )
noexcept
+ Here is the caller graph for this function:

◆ getSelectedHoles()

QList< QSharedPointer< HoleGraphicsItem > > getSelectedHoles ( )
noexcept
+ 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:

◆ addPad()

void addPad ( FootprintPad pad)
noexcept
+ Here is the caller graph for this function:

◆ removePad()

void removePad ( FootprintPad pad)
noexcept
+ Here is the caller graph for this function:

◆ addCircle()

void addCircle ( Circle circle)
noexcept
+ Here is the caller graph for this function:

◆ removeCircle()

void removeCircle ( Circle circle)
noexcept
+ Here is the caller graph for this function:

◆ addPolygon()

void addPolygon ( Polygon polygon)
noexcept
+ Here is the caller graph for this function:

◆ removePolygon()

void removePolygon ( Polygon polygon)
noexcept
+ Here is the caller graph for this function:

◆ addStrokeText()

void addStrokeText ( StrokeText text)
noexcept
+ Here is the caller graph for this function:

◆ removeStrokeText()

void removeStrokeText ( StrokeText text)
noexcept
+ Here is the caller graph for this function:

◆ addHole()

void addHole ( Hole hole)
noexcept
+ Here is the caller graph for this function:

◆ removeHole()

void removeHole ( Hole hole)
noexcept
+ Here is the caller graph for this function:

◆ setSelectionRect()

void setSelectionRect ( const QRectF  rect)
noexcept
+ 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 caller graph for this function:

◆ operator=()

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

Member Data Documentation

◆ mFootprint

Footprint& mFootprint
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mPackagePadList

const PackagePadList* mPackagePadList
private

◆ mPadGraphicsItems

QHash<const FootprintPad*, QSharedPointer<FootprintPadGraphicsItem> > mPadGraphicsItems
private

◆ mCircleGraphicsItems

QHash<const Circle*, QSharedPointer<CircleGraphicsItem> > mCircleGraphicsItems
private

◆ mPolygonGraphicsItems

QHash<const Polygon*, QSharedPointer<PolygonGraphicsItem> > mPolygonGraphicsItems
private

◆ mStrokeTextGraphicsItems

QHash<const StrokeText*, QSharedPointer<StrokeTextGraphicsItem> > mStrokeTextGraphicsItems
private

◆ mHoleGraphicsItems

QHash<const Hole*, QSharedPointer<HoleGraphicsItem> > mHoleGraphicsItems
private

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