20 #ifndef LIBREPCB_EDITOR_POLYGONGRAPHICSITEM_H 21 #define LIBREPCB_EDITOR_POLYGONGRAPHICSITEM_H 39 class IF_GraphicsLayerProvider;
54 QGraphicsItem* parent =
nullptr) noexcept;
90 const QVariant& value) noexcept
override;
91 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
92 QWidget* widget = 0) noexcept
override;
qreal mVertexHandleRadiusPx
Definition: polygongraphicsitem.h:110
The PrimitivePathGraphicsItem class.
Definition: primitivepathgraphicsitem.h:50
void updatePath() noexcept
Definition: polygongraphicsitem.cpp:204
The PolygonGraphicsItem class.
Definition: polygongraphicsitem.h:48
PolygonGraphicsItem()=delete
virtual ~PolygonGraphicsItem() noexcept
Definition: polygongraphicsitem.cpp:63
QVector< VertexHandle > mVertexHandles
Definition: polygongraphicsitem.h:115
Definition: occmodel.cpp:77
Polygon::OnEditedSlot mOnEditedSlot
Definition: polygongraphicsitem.h:118
PolygonGraphicsItem & operator=(const PolygonGraphicsItem &rhs)=delete
void updateZValue() noexcept
Definition: polygongraphicsitem.cpp:223
Point pos
Definition: polygongraphicsitem.h:112
Event
Definition: polygon.h:50
Polygon & getPolygon() noexcept
Definition: polygongraphicsitem.h:58
qreal maxGlowRadiusPx
Definition: polygongraphicsitem.h:113
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:79
QVector< int > getVertexIndicesAtPosition(const Point &pos) const noexcept
Definition: polygongraphicsitem.cpp:96
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers...
Definition: graphicslayer.h:111
bool mEditable
Definition: polygongraphicsitem.h:107
void setEditable(bool editable) noexcept
Definition: polygongraphicsitem.cpp:109
void updateBoundingRectMargin() noexcept
Definition: polygongraphicsitem.cpp:234
void updateFillLayer() noexcept
Definition: polygongraphicsitem.cpp:193
int getLineIndexAtPosition(const Point &pos) const noexcept
Definition: polygongraphicsitem.cpp:70
Definition: polygongraphicsitem.h:111
Polygon & mPolygon
Definition: polygongraphicsitem.h:105
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
Definition: polygongraphicsitem.cpp:122
const IF_GraphicsLayerProvider & mLayerProvider
Definition: polygongraphicsitem.h:106
The Polygon class.
Definition: polygon.h:45
void polygonEdited(const Polygon &polygon, Polygon::Event event) noexcept
Definition: polygongraphicsitem.cpp:165
QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: polygongraphicsitem.cpp:114