comparison Framework/Scene2D/ZoomSceneTracker.h @ 1331:ab81ee8fce1f broker

- Viewport is not passed and stored as a shared_ptr instead of raw reference. - ViewportController can now be injected with an undo stack (not a ctor param anymore, as a preparation for the move of the undo stack to an interactor) - Added (temp) flag to disable emscripten events registration in the WebAssemblyViewport (because legacy client code deals with them directly) - Added emscripten_clear_timeout in ~WebGLViewportsRegistry - Removed GenericToolbox::HoldingRef whose responsibility is better served with proper callback un-registration.
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 30 Mar 2020 14:23:46 +0200
parents a5326ce4f24b
children
comparison
equal deleted inserted replaced
1329:8d3e669f01a2 1331:ab81ee8fce1f
31 namespace OrthancStone 31 namespace OrthancStone
32 { 32 {
33 class ZoomSceneTracker : public OneGesturePointerTracker 33 class ZoomSceneTracker : public OneGesturePointerTracker
34 { 34 {
35 public: 35 public:
36 ZoomSceneTracker(IViewport& viewport, 36 ZoomSceneTracker(boost::shared_ptr<IViewport> viewport,
37 const PointerEvent& event, 37 const PointerEvent& event,
38 unsigned int canvasHeight); 38 unsigned int canvasHeight);
39 39
40 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE; 40 virtual void PointerMove(const PointerEvent& event) ORTHANC_OVERRIDE;
41 virtual void Cancel() ORTHANC_OVERRIDE; 41 virtual void Cancel() ORTHANC_OVERRIDE;