Mercurial > hg > orthanc-stone
diff Samples/Common/MeasureTools.h @ 644:f939f449482c
Ongoing tracker work.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 10 May 2019 16:15:55 +0200 |
parents | 500c3f70b6c2 |
children | 1e9ed656318e |
line wrap: on
line diff
--- a/Samples/Common/MeasureTools.h Thu May 09 14:54:12 2019 +0200 +++ b/Samples/Common/MeasureTools.h Fri May 10 16:15:55 2019 +0200 @@ -25,6 +25,7 @@ #include <Framework/Scene2D/TextSceneLayer.h> #include <boost/shared_ptr.hpp> +#include <boost/weak_ptr.hpp> #include <vector> #include <cmath> @@ -50,7 +51,7 @@ void Disable(); protected: - MeasureTool(Scene2D& scene) + MeasureTool(Scene2D& scene) : scene_(scene) , enabled_(true) { @@ -65,7 +66,6 @@ */ virtual void RefreshScene() = 0; - Scene2D& GetScene() { return scene_;