20#ifndef LIBREPCB_EDITOR_CMDBOARDVIAEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDVIAEDIT_H
26#include "../../undocommand.h"
60 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
64 bool immediate)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The BI_Via class.
Definition bi_via.h:44
The Layer class provides all supported geometry layers.
Definition layer.h:42
The MaskConfig class defines how to add automatic stop mask or solder paste.
Definition maskconfig.h:45
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The CmdBoardViaEdit class.
Definition cmdboardviaedit.h:49
void performRedo() override
Redo the command.
Definition cmdboardviaedit.cpp:151
void setPosition(const Point &pos, bool immediate) noexcept
Definition cmdboardviaedit.cpp:76
const Layer * mNewEndLayer
Definition cmdboardviaedit.h:88
void setLayers(const Layer &startLayer, const Layer &endLayer) noexcept
Definition cmdboardviaedit.cpp:69
void translate(const Point &deltaPos, bool immediate) noexcept
Definition cmdboardviaedit.cpp:82
Point mOldPos
Definition cmdboardviaedit.h:89
const Layer * mNewStartLayer
Definition cmdboardviaedit.h:86
MaskConfig mNewExposureConfig
Definition cmdboardviaedit.h:96
void performUndo() override
Undo the command.
Definition cmdboardviaedit.cpp:143
void setExposureConfig(const MaskConfig &config) noexcept
Definition cmdboardviaedit.cpp:122
void setSize(const PositiveLength &size, bool immediate) noexcept
Definition cmdboardviaedit.cpp:108
Point mNewPos
Definition cmdboardviaedit.h:90
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition cmdboardviaedit.cpp:89
const Layer * mOldEndLayer
Definition cmdboardviaedit.h:87
void mirrorLayers(int innerLayers) noexcept
Definition cmdboardviaedit.cpp:101
MaskConfig mOldExposureConfig
Definition cmdboardviaedit.h:95
bool performExecute() override
Execute the command the first time.
Definition cmdboardviaedit.cpp:131
PositiveLength mOldSize
Definition cmdboardviaedit.h:91
BI_Via & mVia
Definition cmdboardviaedit.h:82
~CmdBoardViaEdit() noexcept
Definition cmdboardviaedit.cpp:57
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition cmdboardviaedit.cpp:94
const Layer * mOldStartLayer
Definition cmdboardviaedit.h:85
PositiveLength mNewSize
Definition cmdboardviaedit.h:92
PositiveLength mOldDrillDiameter
Definition cmdboardviaedit.h:93
PositiveLength mNewDrillDiameter
Definition cmdboardviaedit.h:94
void setDrillDiameter(const PositiveLength &diameter, bool immediate) noexcept
Definition cmdboardviaedit.cpp:115
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