20#ifndef LIBREPCB_EDITOR_CMDCIRCLEEDIT_H
21#define LIBREPCB_EDITOR_CMDCIRCLEEDIT_H
26#include "../undocommand.h"
62 void setIsFilled(
bool filled,
bool immediate) noexcept;
68 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
70 bool immediate) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The Circle class.
Definition circle.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 CmdCircleEdit class.
Definition cmdcircleedit.h:51
void performRedo() override
Redo the command.
Definition cmdcircleedit.cpp:163
bool mNewIsFilled
Definition cmdcircleedit.h:99
void setDiameter(const PositiveLength &dia, bool immediate) noexcept
Definition cmdcircleedit.cpp:91
CmdCircleEdit(const CmdCircleEdit &other)=delete
void setLayer(const Layer &layer, bool immediate) noexcept
Definition cmdcircleedit.cpp:66
Point mNewCenter
Definition cmdcircleedit.h:105
void translate(const Point &deltaPos, bool immediate) noexcept
Definition cmdcircleedit.cpp:104
void setIsGrabArea(bool grabArea, bool immediate) noexcept
Definition cmdcircleedit.cpp:85
void setIsFilled(bool filled, bool immediate) noexcept
Definition cmdcircleedit.cpp:79
void setCenter(const Point &pos, bool immediate) noexcept
Definition cmdcircleedit.cpp:98
void performUndo() override
Undo the command.
Definition cmdcircleedit.cpp:154
void setLineWidth(const UnsignedLength &width, bool immediate) noexcept
Definition cmdcircleedit.cpp:72
bool mOldIsGrabArea
Definition cmdcircleedit.h:100
void mirrorGeometry(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition cmdcircleedit.cpp:124
bool mNewIsGrabArea
Definition cmdcircleedit.h:101
PositiveLength mNewDiameter
Definition cmdcircleedit.h:103
Circle & mCircle
Definition cmdcircleedit.h:91
PositiveLength mOldDiameter
Definition cmdcircleedit.h:102
UnsignedLength mOldLineWidth
Definition cmdcircleedit.h:96
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition cmdcircleedit.cpp:110
const Layer * mNewLayer
Definition cmdcircleedit.h:95
~CmdCircleEdit() noexcept
Definition cmdcircleedit.cpp:56
void mirrorLayer(bool immediate) noexcept
Definition cmdcircleedit.cpp:134
UnsignedLength mNewLineWidth
Definition cmdcircleedit.h:97
bool mOldIsFilled
Definition cmdcircleedit.h:98
bool performExecute() override
Execute the command the first time.
Definition cmdcircleedit.cpp:142
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition cmdcircleedit.cpp:115
const Layer * mOldLayer
Definition cmdcircleedit.h:94
Point mOldCenter
Definition cmdcircleedit.h:104
The CmdListElementInsert class.
Definition cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition cmdlistelementsswap.h:46
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
CmdListElementInsert< Circle, CircleListNameProvider, Circle::Event > CmdCircleInsert
Definition cmdcircleedit.h:113
CmdListElementsSwap< Circle, CircleListNameProvider, Circle::Event > CmdCirclesSwap
Definition cmdcircleedit.h:117
CmdListElementRemove< Circle, CircleListNameProvider, Circle::Event > CmdCircleRemove
Definition cmdcircleedit.h:115
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694