20#ifndef LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_DRAWPOLYGON_H
21#define LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_DRAWPOLYGON_H
47class UnsignedLengthEdit;
68 virtual
bool entry() noexcept override;
69 virtual
bool exit() noexcept override;
The Layer class provides all supported geometry layers.
Definition layer.h:42
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
bool isFilled() const noexcept
Definition polygon.h:74
const Layer & getLayer() const noexcept
Definition polygon.h:72
const UnsignedLength & getLineWidth() const noexcept
Definition polygon.h:73
The SI_Polygon class represents a polygon in a schematic.
Definition si_polygon.h:47
The SchematicEditorState_DrawPolygon class.
Definition schematiceditorstate_drawpolygon.h:56
virtual bool processGraphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_drawpolygon.cpp:101
std::unique_ptr< CmdPolygonEdit > mCurrentPolygonEditCmd
Definition schematiceditorstate_drawpolygon.h:119
virtual ~SchematicEditorState_DrawPolygon() noexcept
Definition schematiceditorstate_drawpolygon.cpp:63
bool startAddPolygon(const Point &pos) noexcept
Definition schematiceditorstate_drawpolygon.cpp:171
SchematicEditorState_DrawPolygon(const SchematicEditorState_DrawPolygon &other)=delete
void setLayer(const Layer &layer) noexcept
Definition schematiceditorstate_drawpolygon.cpp:134
virtual bool processGraphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_drawpolygon.cpp:108
virtual bool processAbortCommand() noexcept override
Definition schematiceditorstate_drawpolygon.cpp:91
SchematicEditorState_DrawPolygon()=delete
const Layer & getLayer() const noexcept
Definition schematiceditorstate_drawpolygon.h:82
QSet< const Layer * > getAvailableLayers() const noexcept
Definition schematiceditorstate_drawpolygon.cpp:129
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(const GraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_drawpolygon.cpp:120
bool abortCommand(bool showErrMsgBox) noexcept
Definition schematiceditorstate_drawpolygon.cpp:256
const UnsignedLength & getLineWidth() const noexcept
Definition schematiceditorstate_drawpolygon.h:86
bool mIsUndoCmdActive
Definition schematiceditorstate_drawpolygon.h:110
Polygon mCurrentProperties
Definition schematiceditorstate_drawpolygon.h:114
void setFilled(bool filled) noexcept
Definition schematiceditorstate_drawpolygon.cpp:156
virtual bool exit() noexcept override
Definition schematiceditorstate_drawpolygon.cpp:78
bool addSegment(const Point &pos) noexcept
Definition schematiceditorstate_drawpolygon.cpp:202
SchematicEditorState_DrawPolygon & operator=(const SchematicEditorState_DrawPolygon &rhs)=delete
void setLineWidth(const UnsignedLength &width) noexcept
Definition schematiceditorstate_drawpolygon.cpp:144
void filledChanged(bool filled)
void layerChanged(const Layer &layer)
bool getFilled() const noexcept
Definition schematiceditorstate_drawpolygon.h:90
SI_Polygon * mCurrentPolygon
Definition schematiceditorstate_drawpolygon.h:118
bool updateLastVertexPosition(const Point &pos) noexcept
Definition schematiceditorstate_drawpolygon.cpp:244
void lineWidthChanged(const UnsignedLength &width)
Point mLastSegmentPos
Definition schematiceditorstate_drawpolygon.h:111
virtual bool entry() noexcept override
Definition schematiceditorstate_drawpolygon.cpp:70
The schematic editor state base class.
Definition schematiceditorstate.h:58
Definition occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
Definition graphicsscene.h:45
FSM Context.
Definition schematiceditorfsm.h:62