20#ifndef LIBREPCB_EDITOR_CMDBOARDNETPOINTEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDNETPOINTEDIT_H
26#include "../../undocommand.h"
58 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The BI_NetPoint class.
Definition: bi_netpoint.h:46
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The CmdBoardNetPointEdit class.
Definition: cmdboardnetpointedit.h:48
void performRedo() override
Redo the command.
Definition: cmdboardnetpointedit.cpp:96
void setPosition(const Point &pos, bool immediate) noexcept
Definition: cmdboardnetpointedit.cpp:56
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdboardnetpointedit.cpp:63
Point mOldPos
Definition: cmdboardnetpointedit.h:78
CmdBoardNetPointEdit(BI_NetPoint &point) noexcept
Definition: cmdboardnetpointedit.cpp:39
BI_NetPoint & mNetPoint
Definition: cmdboardnetpointedit.h:75
void performUndo() override
Undo the command.
Definition: cmdboardnetpointedit.cpp:92
~CmdBoardNetPointEdit() noexcept
Definition: cmdboardnetpointedit.cpp:46
Point mNewPos
Definition: cmdboardnetpointedit.h:79
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdboardnetpointedit.cpp:70
bool performExecute() override
Execute the command the first time.
Definition: cmdboardnetpointedit.cpp:86
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdboardnetpointedit.cpp:75
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