Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/CreateAngleMeasureTracker.h @ 818:e42b491f1fb2
Removed typedefs to shared_ptr by making them explicit. Removed using namespace
directives to make usage more explicit, too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 May 2019 10:51:28 +0200 |
parents | 28b9e3a54200 |
children | e146743f6cdc 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
817:68f888812af4 | 818:e42b491f1fb2 |
---|---|
37 In turn, a container for these commands to store the actual measuring | 37 In turn, a container for these commands to store the actual measuring |
38 must be supplied, too | 38 must be supplied, too |
39 */ | 39 */ |
40 CreateAngleMeasureTracker( | 40 CreateAngleMeasureTracker( |
41 MessageBroker& broker, | 41 MessageBroker& broker, |
42 ViewportControllerWPtr controllerW, | 42 boost::weak_ptr<ViewportController> controllerW, |
43 const PointerEvent& e); | 43 const PointerEvent& e); |
44 | 44 |
45 ~CreateAngleMeasureTracker(); | 45 ~CreateAngleMeasureTracker(); |
46 | 46 |
47 virtual void PointerMove(const PointerEvent& e) ORTHANC_OVERRIDE; | 47 virtual void PointerMove(const PointerEvent& e) ORTHANC_OVERRIDE; |
48 virtual void PointerUp(const PointerEvent& e) ORTHANC_OVERRIDE; | 48 virtual void PointerUp(const PointerEvent& e) ORTHANC_OVERRIDE; |
49 virtual void PointerDown(const PointerEvent& e) ORTHANC_OVERRIDE; | 49 virtual void PointerDown(const PointerEvent& e) ORTHANC_OVERRIDE; |
50 | 50 |
51 private: | 51 private: |
52 CreateAngleMeasureCommandPtr GetCommand(); | 52 boost::shared_ptr<CreateAngleMeasureCommand> GetCommand(); |
53 | 53 |
54 enum State | 54 enum State |
55 { | 55 { |
56 CreatingSide1, | 56 CreatingSide1, |
57 CreatingSide2, | 57 CreatingSide2, |