20#ifndef LIBREPCB_EDITOR_CMDSCHEMATICNETPOINTEDIT_H
21#define LIBREPCB_EDITOR_CMDSCHEMATICNETPOINTEDIT_H
26#include "../../undocommand.h"
57 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
58 void mirror(Qt::Orientation orientation,
const Point& center,
59 bool immediate)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The SI_NetPoint class.
Definition: si_netpoint.h:44
The CmdSchematicNetPointEdit class.
Definition: cmdschematicnetpointedit.h:48
void performRedo() override
Redo the command.
Definition: cmdschematicnetpointedit.cpp:99
void setPosition(const Point &pos, bool immediate) noexcept
Definition: cmdschematicnetpointedit.cpp:56
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdschematicnetpointedit.cpp:63
Point mOldPos
Definition: cmdschematicnetpointedit.h:79
SI_NetPoint & mNetPoint
Definition: cmdschematicnetpointedit.h:76
void performUndo() override
Undo the command.
Definition: cmdschematicnetpointedit.cpp:95
CmdSchematicNetPointEdit(SI_NetPoint &point) noexcept
Definition: cmdschematicnetpointedit.cpp:39
Point mNewPos
Definition: cmdschematicnetpointedit.h:80
void mirror(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdschematicnetpointedit.cpp:77
~CmdSchematicNetPointEdit() noexcept
Definition: cmdschematicnetpointedit.cpp:46
bool performExecute() override
Execute the command the first time.
Definition: cmdschematicnetpointedit.cpp:89
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdschematicnetpointedit.cpp:70
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77