20#ifndef LIBREPCB_EDITOR_CMDBOARDPOLYGONEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDPOLYGONEDIT_H
26#include "../../undocommand.h"
63 void setIsFilled(
bool filled,
bool immediate)
noexcept;
65 void setPath(
const Path& path,
bool immediate)
noexcept;
68 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
70 bool immediate)
noexcept;
71 void mirrorLayer(
int innerLayerCount,
bool immediate)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The BI_Polygon class.
Definition: bi_polygon.h:46
The BoardPolygonData class.
Definition: boardpolygondata.h:45
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:58
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The CmdBoardPolygonEdit class.
Definition: cmdboardpolygonedit.h:49
void performRedo() override
Redo the command.
Definition: cmdboardpolygonedit.cpp:144
void mirrorLayer(int innerLayerCount, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:116
void setLayer(const Layer &layer, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:57
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:95
CmdBoardPolygonEdit()=delete
void setIsGrabArea(bool grabArea, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:80
void setIsFilled(bool filled, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:73
void performUndo() override
Undo the command.
Definition: cmdboardpolygonedit.cpp:135
void setLineWidth(const UnsignedLength &width, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:65
void mirrorGeometry(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:110
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:100
~CmdBoardPolygonEdit() noexcept
Definition: cmdboardpolygonedit.cpp:47
BI_Polygon & mPolygon
Definition: cmdboardpolygonedit.h:88
BoardPolygonData mOldData
Definition: cmdboardpolygonedit.h:89
BI_Polygon & getObj() const noexcept
Definition: cmdboardpolygonedit.h:58
CmdBoardPolygonEdit & operator=(const CmdBoardPolygonEdit &rhs)=delete
void setPath(const Path &path, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:88
CmdBoardPolygonEdit(const CmdBoardPolygonEdit &other)=delete
bool performExecute() override
Execute the command the first time.
Definition: cmdboardpolygonedit.cpp:130
void setLocked(bool locked) noexcept
Definition: cmdboardpolygonedit.cpp:121
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdboardpolygonedit.cpp:105
BoardPolygonData mNewData
Definition: cmdboardpolygonedit.h:90
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696