Mercurial > hg > orthanc-stone
diff Samples/Sdl/TrackerSampleApp.h @ 761:07adcffba38c
truncation warning fixes + CRLF -> LF + random measuring tool creation (keyb
shortcut: 'm')
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Thu, 23 May 2019 10:25:48 +0200 |
parents | 4d69256d2a46 |
children | 66ac7a2d1e3a |
line wrap: on
line diff
--- a/Samples/Sdl/TrackerSampleApp.h Wed May 22 18:34:06 2019 +0200 +++ b/Samples/Sdl/TrackerSampleApp.h Thu May 23 10:25:48 2019 +0200 @@ -65,6 +65,7 @@ void DisableTracker(); Scene2DPtr GetScene(); + Scene2DConstPtr GetScene() const; void HandleApplicationEvent(const SDL_Event& event); @@ -77,7 +78,13 @@ private: void SelectNextTool(); + void CreateRandomMeasureTool(); + /** + This returns a random point in the canvas part of the scene, but in + scene coordinates + */ + ScenePoint2D GetRandomPointInScene() const; FlexiblePointerTrackerPtr TrackerHitTest(const PointerEvent& e);