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