CreatePointCommandObject.hpp
1 #pragma once
2 #include <Curve/Palette/CommandObjects/CurveCommandObjectBase.hpp>
3 
4 #include <vector>
5 
6 namespace score
7 {
8 class CommandStackFacade;
9 }
10 
11 namespace Curve
12 {
13 struct SegmentData;
14 class Presenter;
15 
16 class SCORE_PLUGIN_CURVE_EXPORT CreatePointCommandObject final : public CommandObjectBase
17 {
18 public:
20  const Model& model, Presenter* presenter, const score::CommandStackFacade& stack);
21  virtual ~CreatePointCommandObject();
22 
23  void on_press() override;
24 
25  void move();
26 
27  void release();
28 
29  void cancel();
30 
31 private:
32  void createPoint(std::vector<SegmentData>& segments);
33 };
34 }
Definition: CurveCommandObjectBase.hpp:49
Definition: CreatePointCommandObject.hpp:17
Definition: CurveModel.hpp:25
Definition: CurvePresenter.hpp:32
A small abstraction layer over the score::CommandStack.
Definition: CommandStackFacade.hpp:20
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Base toolkit upon which the software is built.
Definition: Application.cpp:90