20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWPOLYGON_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWPOLYGON_H
43class CmdBoardPolygonEdit;
64 virtual
bool entry() noexcept override;
65 virtual
bool exit() noexcept override;
The BI_Polygon class.
Definition bi_polygon.h:46
The BoardPolygonData class.
Definition boardpolygondata.h:45
bool isFilled() const noexcept
Definition boardpolygondata.h:62
const Layer & getLayer() const noexcept
Definition boardpolygondata.h:59
const UnsignedLength & getLineWidth() const noexcept
Definition boardpolygondata.h:60
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 "draw polygon" state/tool of the board editor.
Definition boardeditorstate_drawpolygon.h:52
virtual bool processGraphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_drawpolygon.cpp:101
BoardEditorState_DrawPolygon()=delete
bool startAddPolygon(const Point &pos) noexcept
Definition boardeditorstate_drawpolygon.cpp:170
BI_Polygon * mCurrentPolygon
Definition boardeditorstate_drawpolygon.h:114
BoardEditorState_DrawPolygon(const BoardEditorState_DrawPolygon &other)=delete
void setLayer(const Layer &layer) noexcept
Definition boardeditorstate_drawpolygon.cpp:132
QSet< const Layer * > getAvailableLayers() noexcept
Definition boardeditorstate_drawpolygon.cpp:128
BoardPolygonData mCurrentProperties
Definition boardeditorstate_drawpolygon.h:110
virtual bool processGraphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_drawpolygon.cpp:107
virtual bool processAbortCommand() noexcept override
Definition boardeditorstate_drawpolygon.cpp:91
const Layer & getLayer() const noexcept
Definition boardeditorstate_drawpolygon.h:78
BoardEditorState_DrawPolygon & operator=(const BoardEditorState_DrawPolygon &rhs)=delete
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(const GraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_drawpolygon.cpp:119
bool abortCommand(bool showErrMsgBox) noexcept
Definition boardeditorstate_drawpolygon.cpp:254
const UnsignedLength & getLineWidth() const noexcept
Definition boardeditorstate_drawpolygon.h:82
bool mIsUndoCmdActive
Definition boardeditorstate_drawpolygon.h:106
void setFilled(bool filled) noexcept
Definition boardeditorstate_drawpolygon.cpp:155
virtual bool exit() noexcept override
Definition boardeditorstate_drawpolygon.cpp:78
bool addSegment(const Point &pos) noexcept
Definition boardeditorstate_drawpolygon.cpp:201
std::unique_ptr< CmdBoardPolygonEdit > mCurrentPolygonEditCmd
Definition boardeditorstate_drawpolygon.h:115
void setLineWidth(const UnsignedLength &width) noexcept
Definition boardeditorstate_drawpolygon.cpp:143
void filledChanged(bool filled)
void layerChanged(const Layer &layer)
bool getFilled() const noexcept
Definition boardeditorstate_drawpolygon.h:86
virtual ~BoardEditorState_DrawPolygon() noexcept
Definition boardeditorstate_drawpolygon.cpp:63
bool updateLastVertexPosition(const Point &pos) noexcept
Definition boardeditorstate_drawpolygon.cpp:242
void lineWidthChanged(const UnsignedLength &width)
Point mLastSegmentPos
Definition boardeditorstate_drawpolygon.h:107
virtual bool entry() noexcept override
Definition boardeditorstate_drawpolygon.cpp:70
The board editor state base class.
Definition boardeditorstate.h:60
Definition occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
FSM Context.
Definition boardeditorfsm.h:88
Definition graphicsscene.h:45