20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWPOLYGON_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWPOLYGON_H
46class CmdBoardPolygonEdit;
48class UnsignedLengthEdit;
69 virtual
bool entry() noexcept override;
70 virtual
bool exit() noexcept override;
75 QGraphicsSceneMouseEvent& e) noexcept override;
77 QGraphicsSceneMouseEvent& e) noexcept override;
79 QGraphicsSceneMouseEvent& e) noexcept override;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
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:78
The "draw polygon" state/tool of the board editor.
Definition boardeditorstate_drawpolygon.h:57
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:101
BI_Polygon * mCurrentPolygon
Definition boardeditorstate_drawpolygon.h:109
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:105
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:104
bool abortCommand(bool showErrMsgBox) noexcept
Definition boardeditorstate_drawpolygon.cpp:261
bool mIsUndoCmdActive
Definition boardeditorstate_drawpolygon.h:97
Angle mLastRotation
Definition boardeditorstate_drawpolygon.h:103
virtual bool exit() noexcept override
Definition boardeditorstate_drawpolygon.cpp:117
UnsignedLength mLastLineWidth
Definition boardeditorstate_drawpolygon.h:102
bool addSegment(const Point &pos) noexcept
Definition boardeditorstate_drawpolygon.cpp:208
void widthEditValueChanged(const UnsignedLength &value) noexcept
Definition boardeditorstate_drawpolygon.cpp:292
std::unique_ptr< CmdBoardPolygonEdit > mCurrentPolygonEditCmd
Definition boardeditorstate_drawpolygon.h:110
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:98
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:76
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
FSM Context.
Definition boardeditorfsm.h:88