20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORSTATE_DRAWCIRCLE_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORSTATE_DRAWCIRCLE_H
40class CircleGraphicsItem;
62 bool entry() noexcept override;
63 bool exit() noexcept override;
The Circle class.
Definition circle.h:46
bool isFilled() const noexcept
Definition circle.h:77
const Layer & getLayer() const noexcept
Definition circle.h:75
const UnsignedLength & getLineWidth() const noexcept
Definition circle.h:76
bool isGrabArea() const noexcept
Definition circle.h:78
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 CircleGraphicsItem class.
Definition circlegraphicsitem.h:48
The CmdCircleEdit class.
Definition cmdcircleedit.h:51
The SymbolEditorState_DrawCircle class.
Definition symboleditorstate_drawcircle.h:50
bool processGraphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept override
Definition symboleditorstate_drawcircle.cpp:89
bool updateCircleDiameter(const Point &pos) noexcept
Definition symboleditorstate_drawcircle.cpp:196
std::shared_ptr< Circle > mCurrentCircle
Definition symboleditorstate_drawcircle.h:107
bool getGrabArea() const noexcept
Definition symboleditorstate_drawcircle.h:84
~SymbolEditorState_DrawCircle() noexcept
Definition symboleditorstate_drawcircle.cpp:61
void setLayer(const Layer &layer) noexcept
Definition symboleditorstate_drawcircle.cpp:126
bool startAddCircle(const Point &pos) noexcept
Definition symboleditorstate_drawcircle.cpp:171
bool processGraphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept override
Definition symboleditorstate_drawcircle.cpp:99
bool processAbortCommand() noexcept override
Definition symboleditorstate_drawcircle.cpp:109
const Layer & getLayer() const noexcept
Definition symboleditorstate_drawcircle.h:74
SymbolEditorState_DrawCircle()=delete
bool abortAddCircle() noexcept
Definition symboleditorstate_drawcircle.cpp:226
QSet< const Layer * > getAvailableLayers() const noexcept
Definition symboleditorstate_drawcircle.cpp:121
SymbolEditorState_DrawCircle & operator=(const SymbolEditorState_DrawCircle &rhs)=delete
const UnsignedLength & getLineWidth() const noexcept
Definition symboleditorstate_drawcircle.h:78
std::shared_ptr< CircleGraphicsItem > mCurrentGraphicsItem
Definition symboleditorstate_drawcircle.h:108
void setFilled(bool filled) noexcept
Definition symboleditorstate_drawcircle.cpp:147
bool exit() noexcept override
Definition symboleditorstate_drawcircle.cpp:75
std::unique_ptr< CmdCircleEdit > mCurrentEditCmd
Definition symboleditorstate_drawcircle.h:106
bool finishAddCircle(const Point &pos) noexcept
Definition symboleditorstate_drawcircle.cpp:207
void setGrabArea(bool grabArea) noexcept
Definition symboleditorstate_drawcircle.cpp:157
Circle mCurrentProperties
Definition symboleditorstate_drawcircle.h:104
void setLineWidth(const UnsignedLength &width) noexcept
Definition symboleditorstate_drawcircle.cpp:136
void filledChanged(bool filled)
void grabAreaChanged(bool grabArea)
void layerChanged(const Layer &layer)
bool getFilled() const noexcept
Definition symboleditorstate_drawcircle.h:82
void lineWidthChanged(const UnsignedLength &width)
bool entry() noexcept override
Definition symboleditorstate_drawcircle.cpp:69
SymbolEditorState_DrawCircle(const SymbolEditorState_DrawCircle &other)=delete
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition symboleditorstate.h:56
Definition occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
Definition graphicsscene.h:45
Definition symboleditorfsm.h:75