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