20#ifndef LIBREPCB_EDITOR_CMDBOARDZONEEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDZONEEDIT_H
26#include "../../undocommand.h"
59 void setRules(
Zone::Rules rules,
bool immediate) noexcept;
63 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
65 bool immediate) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The BI_Zone class.
Definition bi_zone.h:46
The BoardZoneData class.
Definition boardzonedata.h:44
The Layer class provides all supported geometry layers.
Definition layer.h:42
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition path.h:57
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 CmdBoardZoneEdit class.
Definition cmdboardzoneedit.h:49
void performRedo() override
Redo the command.
Definition cmdboardzoneedit.cpp:126
void translate(const Point &deltaPos, bool immediate) noexcept
Definition cmdboardzoneedit.cpp:76
CmdBoardZoneEdit()=delete
BoardZoneData mOldData
Definition cmdboardzoneedit.h:84
void performUndo() override
Undo the command.
Definition cmdboardzoneedit.cpp:119
void setOutline(const Path &path, bool immediate) noexcept
Definition cmdboardzoneedit.cpp:70
void mirrorGeometry(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition cmdboardzoneedit.cpp:91
void setRules(Zone::Rules rules, bool immediate) noexcept
Definition cmdboardzoneedit.cpp:64
~CmdBoardZoneEdit() noexcept
Definition cmdboardzoneedit.cpp:47
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition cmdboardzoneedit.cpp:81
void mirrorLayers(int innerLayers, bool immediate)
Definition cmdboardzoneedit.cpp:97
bool performExecute() override
Execute the command the first time.
Definition cmdboardzoneedit.cpp:114
void setLocked(bool locked) noexcept
Definition cmdboardzoneedit.cpp:105
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition cmdboardzoneedit.cpp:86
BI_Zone & mZone
Definition cmdboardzoneedit.h:83
CmdBoardZoneEdit(const CmdBoardZoneEdit &other)=delete
void setLayers(const QSet< const Layer * > &layers, bool immediate)
Definition cmdboardzoneedit.cpp:57
BoardZoneData mNewData
Definition cmdboardzoneedit.h:85
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810