20#ifndef LIBREPCB_EDITOR_SGI_SYMBOL_H
21#define LIBREPCB_EDITOR_SGI_SYMBOL_H
40class CircleGraphicsItem;
41class IF_GraphicsLayerProvider;
42class OriginCrossGraphicsItem;
43class PolygonGraphicsItem;
72 QPainterPath
shape() const noexcept
override {
return mShape; }
81 virtual QVariant
itemChange(GraphicsItemChange change,
82 const QVariant& value) noexcept override;
The SI_Symbol class.
Definition si_symbol.h:54
Event
Definition si_symbol.h:59
The Signal class is used to emit signals on non-QObject derived classes.
Definition signalslot.h:65
The Slot class is used to receive signals from non-QObject derived classes.
Definition signalslot.h:170
The CircleGraphicsItem class.
Definition circlegraphicsitem.h:48
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition graphicslayer.h:111
The OriginCrossGraphicsItem class.
Definition origincrossgraphicsitem.h:50
The PolygonGraphicsItem class.
Definition polygongraphicsitem.h:48
The SGI_Symbol class.
Definition sgi_symbol.h:52
std::shared_ptr< OriginCrossGraphicsItem > mOriginCrossGraphicsItem
Definition sgi_symbol.h:86
SI_Symbol::OnEditedSlot mOnEditedSlot
Definition sgi_symbol.h:92
void updatePosition() noexcept
Definition sgi_symbol.cpp:123
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition sgi_symbol.cpp:135
QPainterPath mShape
Definition sgi_symbol.h:89
Event
Definition sgi_symbol.h:55
virtual ~SGI_Symbol() noexcept
Definition sgi_symbol.cpp:98
Signal< SGI_Symbol, Event > onEdited
Definition sgi_symbol.h:59
QPainterPath shape() const noexcept override
Definition sgi_symbol.h:72
void symbolEdited(const SI_Symbol &obj, SI_Symbol::Event event) noexcept
Definition sgi_symbol.cpp:105
SGI_Symbol & operator=(const SGI_Symbol &rhs)=delete
void updateRotationAndMirrored() noexcept
Definition sgi_symbol.cpp:128
SGI_Symbol(const SGI_Symbol &other)=delete
QVector< std::shared_ptr< CircleGraphicsItem > > mCircleGraphicsItems
Definition sgi_symbol.h:87
SI_Symbol & mSymbol
Definition sgi_symbol.h:85
SI_Symbol & getSymbol() noexcept
Definition sgi_symbol.h:69
QVector< std::shared_ptr< PolygonGraphicsItem > > mPolygonGraphicsItems
Definition sgi_symbol.h:88
Slot< SGI_Symbol, Event > OnEditedSlot
Definition sgi_symbol.h:60
Definition occmodel.cpp:76