Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/IFlexiblePointerTracker.h @ 700:059e1fd05fd6 refactor-viewport-controller
Introduced the ViewportController that sits between the application and the
Scene2D to handle the trackers and measuring tools. This is a work in progress.
The Scene2D is no longer an observable. Message sending is managed by the
ViewportController.
Move some refs to shared and weak to prevent lifetime issues.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 19 May 2019 16:26:17 +0200 |
parents | 8b6adfb62a2f |
children | 28b9e3a54200 |
comparison
equal
deleted
inserted
replaced
699:5c551f078c18 | 700:059e1fd05fd6 |
---|---|
59 /** | 59 /** |
60 This method will be repeatedly called by the tracker owner (for instance, | 60 This method will be repeatedly called by the tracker owner (for instance, |
61 the application) to check whether the tracker must keep on receiving | 61 the application) to check whether the tracker must keep on receiving |
62 interaction or if its job is done and it should be deleted. | 62 interaction or if its job is done and it should be deleted. |
63 */ | 63 */ |
64 virtual bool IsActive() const = 0; | 64 virtual bool IsAlive() const = 0; |
65 | 65 |
66 /** | 66 /** |
67 This will be called if the tracker needs to be dismissed without committing | 67 This will be called if the tracker needs to be dismissed without committing |
68 its changes to the underlying model. If the model has been modified during | 68 its changes to the underlying model. If the model has been modified during |
69 tracker lifetime, it must be restored to its initial value | 69 tracker lifetime, it must be restored to its initial value |