20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWZONE_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWZONE_H
46class CmdBoardZoneEdit;
66 virtual
bool entry() noexcept override;
67 virtual
bool exit() noexcept override;
72 QGraphicsSceneMouseEvent& e) noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
76 QGraphicsSceneMouseEvent& e) noexcept override;
The BI_Zone class.
Definition bi_zone.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 Zone class.
Definition zone.h:43
The "draw zone" state/tool of the board editor.
Definition boardeditorstate_drawzone.h:55
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_drawzone.cpp:170
virtual ~BoardEditorState_DrawZone() noexcept
Definition boardeditorstate_drawzone.cpp:62
const Layer * mLastLayer
Definition boardeditorstate_drawzone.h:92
Point mLastVertexPos
Definition boardeditorstate_drawzone.h:94
virtual bool processSwitchToBoard(int index) noexcept override
Definition boardeditorstate_drawzone.cpp:193
virtual bool processAbortCommand() noexcept override
Definition boardeditorstate_drawzone.cpp:160
BoardEditorState_DrawZone(const BoardEditorState_DrawZone &other)=delete
BI_Zone * mCurrentZone
Definition boardeditorstate_drawzone.h:98
std::unique_ptr< CmdBoardZoneEdit > mCurrentZoneEditCmd
Definition boardeditorstate_drawzone.h:99
BoardEditorState_DrawZone()=delete
bool abortCommand(bool showErrMsgBox) noexcept
Definition boardeditorstate_drawzone.cpp:292
bool mIsUndoCmdActive
Definition boardeditorstate_drawzone.h:91
virtual bool exit() noexcept override
Definition boardeditorstate_drawzone.cpp:145
bool addSegment(const Point &pos) noexcept
Definition boardeditorstate_drawzone.cpp:235
bool startAddZone(const Point &pos) noexcept
Definition boardeditorstate_drawzone.cpp:202
Zone::Rules mLastRules
Definition boardeditorstate_drawzone.h:93
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_drawzone.cpp:176
bool updateLastVertexPosition(const Point &pos) noexcept
Definition boardeditorstate_drawzone.cpp:280
virtual bool entry() noexcept override
Definition boardeditorstate_drawzone.cpp:69
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_drawzone.cpp:188
The board editor state base class.
Definition boardeditorstate.h:59
The CmdBoardZoneEdit class.
Definition cmdboardzoneedit.h:49
Definition occmodel.cpp:76
FSM Context.
Definition boardeditorfsm.h:88