LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymbolGraphicsItem Class Referencefinal

The SymbolGraphicsItem class. More...

#include <symbolgraphicsitem.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SymbolGraphicsItem:

Public Member Functions

 SymbolGraphicsItem ()=delete
 
 SymbolGraphicsItem (const SymbolGraphicsItem &other)=delete
 
 SymbolGraphicsItem (Symbol &symbol, const IF_GraphicsLayerProvider &lp) noexcept
 
 ~SymbolGraphicsItem () noexcept
 
SymbolPinGraphicsItemgetPinGraphicsItem (const Uuid &pin) noexcept
 
CircleGraphicsItemgetCircleGraphicsItem (const Circle &circle) noexcept
 
PolygonGraphicsItemgetPolygonGraphicsItem (const Polygon &polygon) noexcept
 
TextGraphicsItemgetTextGraphicsItem (const Text &text) noexcept
 
int getItemsAtPosition (const Point &pos, QList< QSharedPointer< SymbolPinGraphicsItem >> *pins, QList< QSharedPointer< CircleGraphicsItem >> *circles, QList< QSharedPointer< PolygonGraphicsItem >> *polygons, QList< QSharedPointer< TextGraphicsItem >> *texts) noexcept
 
QList< QSharedPointer
< SymbolPinGraphicsItem > > 
getSelectedPins () noexcept
 
QList< QSharedPointer
< CircleGraphicsItem > > 
getSelectedCircles () noexcept
 
QList< QSharedPointer
< PolygonGraphicsItem > > 
getSelectedPolygons () noexcept
 
QList< QSharedPointer
< TextGraphicsItem > > 
getSelectedTexts () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void addPin (SymbolPin &pin) noexcept
 
void removePin (SymbolPin &pin) noexcept
 
void addCircle (Circle &circle) noexcept
 
void removeCircle (Circle &circle) noexcept
 
void addPolygon (Polygon &polygon) noexcept
 
void removePolygon (Polygon &polygon) noexcept
 
void addText (Text &text) noexcept
 
void removeText (Text &text) 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
 
SymbolGraphicsItemoperator= (const SymbolGraphicsItem &rhs)=delete
 

Private Attributes

SymbolmSymbol
 
const IF_GraphicsLayerProvidermLayerProvider
 
QHash< Uuid, QSharedPointer
< SymbolPinGraphicsItem > > 
mPinGraphicsItems
 
QHash< const Circle
*, QSharedPointer
< CircleGraphicsItem > > 
mCircleGraphicsItems
 
QHash< const Polygon
*, QSharedPointer
< PolygonGraphicsItem > > 
mPolygonGraphicsItems
 
QHash< const Text
*, QSharedPointer
< TextGraphicsItem > > 
mTextGraphicsItems
 

Detailed Description

The SymbolGraphicsItem class.

Author
ubruhin
Date
2016-11-06

Constructor & Destructor Documentation

SymbolGraphicsItem ( )
delete
SymbolGraphicsItem ( const SymbolGraphicsItem other)
delete
SymbolGraphicsItem ( Symbol symbol,
const IF_GraphicsLayerProvider lp 
)
noexcept
~SymbolGraphicsItem ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

SymbolPinGraphicsItem * getPinGraphicsItem ( const Uuid pin)
noexcept
CircleGraphicsItem * getCircleGraphicsItem ( const Circle circle)
noexcept
PolygonGraphicsItem * getPolygonGraphicsItem ( const Polygon polygon)
noexcept
TextGraphicsItem * getTextGraphicsItem ( const Text text)
noexcept
int getItemsAtPosition ( const Point pos,
QList< QSharedPointer< SymbolPinGraphicsItem >> *  pins,
QList< QSharedPointer< CircleGraphicsItem >> *  circles,
QList< QSharedPointer< PolygonGraphicsItem >> *  polygons,
QList< QSharedPointer< TextGraphicsItem >> *  texts 
)
noexcept

+ Here is the call graph for this function:

QList< QSharedPointer< SymbolPinGraphicsItem > > getSelectedPins ( )
noexcept

+ Here is the caller graph for this function:

QList< QSharedPointer< CircleGraphicsItem > > getSelectedCircles ( )
noexcept

+ Here is the caller graph for this function:

QList< QSharedPointer< PolygonGraphicsItem > > getSelectedPolygons ( )
noexcept

+ Here is the caller graph for this function:

QList< QSharedPointer< TextGraphicsItem > > getSelectedTexts ( )
noexcept

+ Here is the caller graph for this function:

void setPosition ( const Point pos)
noexcept
void setRotation ( const Angle rot)
noexcept
void addPin ( SymbolPin pin)
noexcept
void removePin ( SymbolPin pin)
noexcept
void addCircle ( Circle circle)
noexcept
void removeCircle ( Circle circle)
noexcept
void addPolygon ( Polygon polygon)
noexcept
void removePolygon ( Polygon polygon)
noexcept
void addText ( Text text)
noexcept
void removeText ( Text text)
noexcept
void setSelectionRect ( const QRectF  rect)
noexcept
QRectF boundingRect ( ) const
inlineoverridenoexcept
QPainterPath shape ( ) const
inlineoverridenoexcept
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overridenoexcept
SymbolGraphicsItem& operator= ( const SymbolGraphicsItem rhs)
delete

Member Data Documentation

Symbol& mSymbol
private
const IF_GraphicsLayerProvider& mLayerProvider
private
QHash<Uuid, QSharedPointer<SymbolPinGraphicsItem> > mPinGraphicsItems
private
QHash<const Circle*, QSharedPointer<CircleGraphicsItem> > mCircleGraphicsItems
private
QHash<const Polygon*, QSharedPointer<PolygonGraphicsItem> > mPolygonGraphicsItems
private
QHash<const Text*, QSharedPointer<TextGraphicsItem> > mTextGraphicsItems
private

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