20 #ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWPOLYGON_H 21 #define LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWPOLYGON_H 44 class CmdBoardPolygonEdit;
46 class UnsignedLengthEdit;
67 virtual bool entry() noexcept
override;
68 virtual bool exit() noexcept
override;
73 QGraphicsSceneMouseEvent& e) noexcept
override;
75 QGraphicsSceneMouseEvent& e) noexcept
override;
77 QGraphicsSceneMouseEvent& e) noexcept
override;
virtual ~BoardEditorState_DrawPolygon() noexcept
Definition: boardeditorstate_drawpolygon.cpp:66
FSM Context.
Definition: boardeditorfsm.h:88
virtual bool processSwitchToBoard(int index) noexcept override
Definition: boardeditorstate_drawpolygon.cpp:165
bool updateLastVertexPosition(const Point &pos) noexcept
Definition: boardeditorstate_drawpolygon.cpp:249
void filledCheckBoxCheckedChanged(bool checked) noexcept
Definition: boardeditorstate_drawpolygon.cpp:300
BI_Polygon * mCurrentPolygon
Definition: boardeditorstate_drawpolygon.h:107
Definition: occmodel.cpp:77
bool abortCommand(bool showErrMsgBox) noexcept
Definition: boardeditorstate_drawpolygon.cpp:261
The Layer class provides all supported geometry layers.
Definition: layer.h:40
virtual bool exit() noexcept override
Definition: boardeditorstate_drawpolygon.cpp:117
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_drawpolygon.cpp:160
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_drawpolygon.cpp:142
bool mIsUndoCmdActive
Definition: boardeditorstate_drawpolygon.h:95
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
Point mLastSegmentPos
Definition: boardeditorstate_drawpolygon.h:96
QScopedPointer< CmdBoardPolygonEdit > mCurrentPolygonEditCmd
Definition: boardeditorstate_drawpolygon.h:108
bool addSegment(const Point &pos) noexcept
Definition: boardeditorstate_drawpolygon.cpp:208
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_drawpolygon.cpp:148
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:79
The "draw polygon" state/tool of the board editor.
Definition: boardeditorstate_drawpolygon.h:55
void widthEditValueChanged(const UnsignedLength &value) noexcept
Definition: boardeditorstate_drawpolygon.cpp:292
bool mLastIsGrabArea
Definition: boardeditorstate_drawpolygon.h:103
Angle mLastRotation
Definition: boardeditorstate_drawpolygon.h:101
bool startAddPolygon(const Point &pos) noexcept
Definition: boardeditorstate_drawpolygon.cpp:174
bool mLastIsFilled
Definition: boardeditorstate_drawpolygon.h:102
BoardEditorState_DrawPolygon()=delete
void layerComboBoxLayerChanged(const Layer &layer) noexcept
Definition: boardeditorstate_drawpolygon.cpp:283
virtual bool entry() noexcept override
Definition: boardeditorstate_drawpolygon.cpp:73
UnsignedLength mLastLineWidth
Definition: boardeditorstate_drawpolygon.h:100
The BI_Polygon class.
Definition: bi_polygon.h:46
virtual bool processAbortCommand() noexcept override
Definition: boardeditorstate_drawpolygon.cpp:132
const Layer * mLastLayer
Definition: boardeditorstate_drawpolygon.h:99
The board editor state base class.
Definition: boardeditorstate.h:59
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
BoardEditorState_DrawPolygon & operator=(const BoardEditorState_DrawPolygon &rhs)=delete