Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/CreateLineMeasureCommand.h @ 1305:a5326ce4f24b broker
Trackers and measuring tools now use the viewport instead of ViewportController, so that proper locks can be used
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 04 Mar 2020 09:45:38 +0100 |
parents | 7ec8fea061b9 |
children | ab81ee8fce1f |
comparison
equal
deleted
inserted
replaced
1304:b7fa67bf87fa | 1305:a5326ce4f24b |
---|---|
25 { | 25 { |
26 class CreateLineMeasureCommand : public CreateMeasureCommand | 26 class CreateLineMeasureCommand : public CreateMeasureCommand |
27 { | 27 { |
28 public: | 28 public: |
29 CreateLineMeasureCommand( | 29 CreateLineMeasureCommand( |
30 boost::weak_ptr<ViewportController> controllerW, | 30 IViewport& viewport, |
31 ScenePoint2D point); | 31 ScenePoint2D point); |
32 | 32 |
33 // the starting position is set in the ctor | 33 // the starting position is set in the ctor |
34 void SetEnd(ScenePoint2D scenePos); | 34 void SetEnd(ScenePoint2D scenePos); |
35 | 35 |