comparison Framework/Scene2DViewport/MeasureTrackers.h @ 722:28b9e3a54200

Undo mechanism implemented (not connected to UI yet). Undo stack and measuring tools are now handled by the ViewportController. Multi-touch does not crash trackers anymore.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 21 May 2019 10:27:54 +0200
parents 059e1fd05fd6
children c0fcb2757b0a
comparison
equal deleted inserted replaced
721:af0aa0c149fa 722:28b9e3a54200
35 { 35 {
36 public: 36 public:
37 virtual void Cancel() ORTHANC_OVERRIDE; 37 virtual void Cancel() ORTHANC_OVERRIDE;
38 virtual bool IsAlive() const ORTHANC_OVERRIDE; 38 virtual bool IsAlive() const ORTHANC_OVERRIDE;
39 protected: 39 protected:
40 CreateMeasureTracker( 40 CreateMeasureTracker(ViewportControllerWPtr controllerW);
41 ViewportControllerWPtr controllerW,
42 std::vector<TrackerCommandPtr>& undoStack,
43 std::vector<MeasureToolPtr>& measureTools);
44 41
45 ~CreateMeasureTracker(); 42 ~CreateMeasureTracker();
46 43
47 protected: 44 protected:
48 CreateMeasureCommandPtr command_; 45 CreateMeasureCommandPtr command_;
49 ViewportControllerWPtr controllerW_; 46 ViewportControllerWPtr controllerW_;
50 bool alive_; 47 bool alive_;
51 Scene2DPtr GetScene(); 48 Scene2DPtr GetScene();
52 49
53 private: 50 private:
54 std::vector<TrackerCommandPtr>& undoStack_;
55 std::vector<MeasureToolPtr>& measureTools_;
56 bool commitResult_; 51 bool commitResult_;
57 }; 52 };
58 } 53 }
59 54