![]() |
LibrePCB Developers Documentation
|
The FootprintGraphicsItem class. More...
#include <footprintgraphicsitem.h>
Inherits QGraphicsItem.
Public Member Functions | |
FootprintGraphicsItem ()=delete | |
FootprintGraphicsItem (const FootprintGraphicsItem &other)=delete | |
FootprintGraphicsItem (Footprint &fpt, const IF_GraphicsLayerProvider &lp) noexcept | |
~FootprintGraphicsItem () noexcept | |
Footprint & | getFootprint () noexcept |
FootprintPadGraphicsItem * | getPadGraphicsItem (const FootprintPad &pin) noexcept |
CircleGraphicsItem * | getCircleGraphicsItem (const Circle &circle) noexcept |
PolygonGraphicsItem * | getPolygonGraphicsItem (const Polygon &polygon) noexcept |
StrokeTextGraphicsItem * | getTextGraphicsItem (const StrokeText &text) noexcept |
HoleGraphicsItem * | getHoleGraphicsItem (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 noexceptoverride |
QPainterPath | shape () const noexceptoverride |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride |
FootprintGraphicsItem & | operator= (const FootprintGraphicsItem &rhs)=delete |
Private Attributes | |
Footprint & | mFootprint |
const IF_GraphicsLayerProvider & | mLayerProvider |
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 |
The FootprintGraphicsItem class.
|
delete |
|
delete |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlineoverridenoexcept |
|
inlineoverridenoexcept |
|
overridenoexcept |
|
delete |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |