Mercurial > hg > orthanc-stone
comparison Samples/Common/RtViewerView.h @ 1406:5d7ee14dc1eb
Mouse wheel handler is now OK in SDL and Wasm
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Thu, 30 Apr 2020 00:25:55 +0200 |
parents | 3e644f6fadd4 |
children | 15173a383a00 |
comparison
equal
deleted
inserted
replaced
1405:e4fe346c021e | 1406:5d7ee14dc1eb |
---|---|
76 void TakeScreenshot( | 76 void TakeScreenshot( |
77 const std::string& target, | 77 const std::string& target, |
78 unsigned int canvasWidth, | 78 unsigned int canvasWidth, |
79 unsigned int canvasHeight); | 79 unsigned int canvasHeight); |
80 | 80 |
81 void Scroll(int delta); | |
82 | |
81 void Invalidate(); | 83 void Invalidate(); |
82 void FitContent(); | 84 void FitContent(); |
83 void RetrieveGeometry(); | 85 void RetrieveGeometry(); |
84 void PrepareViewport(); | 86 void PrepareViewport(); |
85 void RegisterMessages(); | 87 void RegisterMessages(); |
99 } | 101 } |
100 | 102 |
101 private: | 103 private: |
102 void SetInfoDisplayMessage(std::string key, std::string value); | 104 void SetInfoDisplayMessage(std::string key, std::string value); |
103 boost::shared_ptr<RtViewerApp> GetApp(); | 105 boost::shared_ptr<RtViewerApp> GetApp(); |
104 static boost::shared_ptr<IViewport> CreateViewport(const std::string& canvasId); | 106 boost::shared_ptr<IViewport> CreateViewport(const std::string& canvasId); |
105 void DisplayInfoText(); | 107 void DisplayInfoText(); |
106 void HideInfoText(); | 108 void HideInfoText(); |
107 void DisplayFloatingCtrlInfoText(const PointerEvent& e); | 109 void DisplayFloatingCtrlInfoText(const PointerEvent& e); |
108 | 110 |
109 void SetCtVolumeSlicer(const boost::shared_ptr<IVolumeSlicer>& volume, | 111 void SetCtVolumeSlicer(const boost::shared_ptr<IVolumeSlicer>& volume, |