OpenLexocad  27.0
CmdComputeKmReference.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 CmdComputeKmReference : public Core::Command
17 {
18 public:
20  explicit CmdComputeKmReference(double km);
21  explicit CmdComputeKmReference(std::shared_ptr<OpenLxApp::Element> curveElement, double km = 0);
22  CmdComputeKmReference(const std::vector<std::shared_ptr<OpenLxApp::Element>>& aElems, std::shared_ptr<OpenLxApp::Element> curveElement, double km = 0);
23  ~CmdComputeKmReference() = default;
24 
25  bool redo() override;
26  bool undo() override;
27 
28 private:
29  std::unique_ptr<Core::Command> _cmd;
30 };
31 }
Definition: CmdComputeKmReference.h:16
Definition: CmdAddCentroid.h:8
Definition: Command.h:35