OpenLexocad  27.1
CmdReverseCurve.h
Go to the documentation of this file.
1 #pragma once
2 #include <Core/Command.h>
3 #include <OpenLxApp/Element.h>
4 
5 #include <memory>
6 #include <vector>
7 
8 namespace OpenLxCmd
9 {
16 class LX_OPENLXCMD_EXPORT CmdReverseCurve : public Core::Command
17 {
18 public:
20  explicit CmdReverseCurve(const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElems);
21  ~CmdReverseCurve() = default;
22 
23  bool redo() override;
24  bool undo() override;
25 
26 private:
27  std::unique_ptr<Core::Command> _cmd;
28 };
29 }
Definition: CmdReverseCurve.h:16
bool undo(int id=0)
Will UNDO one step, returns False if no undo was done (Undos == 0).
bool redo(int id=0)
Will REDO one step, returns False if no redo was done (Redos == 0).
Definition: CmdAddBolt.h:7
Definition: Command.h:34