comparison Framework/Scene2DViewport/AngleMeasureTool.h @ 774:66ac7a2d1e3a

A few renames and cleanups + moved GUI constants to controller + start work on hit tests for measure tools and mouse hover.
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 24 May 2019 15:59:51 +0200
parents 92c400a09f1b
children e42b491f1fb2
comparison
equal deleted inserted replaced
761:07adcffba38c 774:66ac7a2d1e3a
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 #pragma once 21 #pragma once
22 22
23 #include "MeasureTools.h" 23 #include "MeasureTool.h"
24 24
25 #include "../Scene2DViewport/LayerHolder.h" 25 #include "../Scene2DViewport/LayerHolder.h"
26 #include "../Scene2D/Scene2D.h" 26 #include "../Scene2D/Scene2D.h"
27 #include "../Scene2D/ScenePoint2D.h" 27 #include "../Scene2D/ScenePoint2D.h"
28 #include "../Scene2D/PolylineSceneLayer.h" 28 #include "../Scene2D/PolylineSceneLayer.h"
45 45
46 void SetSide1End(ScenePoint2D start); 46 void SetSide1End(ScenePoint2D start);
47 void SetCenter(ScenePoint2D start); 47 void SetCenter(ScenePoint2D start);
48 void SetSide2End(ScenePoint2D start); 48 void SetSide2End(ScenePoint2D start);
49 49
50
51 virtual bool HitTest(ScenePoint2D p) const ORTHANC_OVERRIDE;
52
50 private: 53 private:
51 virtual void RefreshScene() ORTHANC_OVERRIDE; 54 virtual void RefreshScene() ORTHANC_OVERRIDE;
52 void RemoveFromScene(); 55 void RemoveFromScene();
53 56
54 private: 57 private: