Mercurial > hg > orthanc-stone
diff Framework/Scene2DViewport/MeasureTool.h @ 865:a29c13497557
Added operators to ScenePoint2D + highlight support on MouseOver for measuring tools
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 25 Jun 2019 15:24:13 +0200 |
parents | e42b491f1fb2 |
children | c71ef52602a0 |
line wrap: on
line diff
--- a/Framework/Scene2DViewport/MeasureTool.h Mon Jun 24 19:07:34 2019 +0200 +++ b/Framework/Scene2DViewport/MeasureTool.h Tue Jun 25 15:24:13 2019 +0200 @@ -71,6 +71,18 @@ measuring tool */ virtual bool HitTest(ScenePoint2D p) const = 0; + + /** + Will change the measuring tool to provide visual feedback on the GUI + element that is in the pointer hit zone + */ + virtual void Highlight(ScenePoint2D p) = 0; + + /** + This function must reset the visual highlighted hot zone feedback + */ + virtual void ResetHighlightState() = 0; + protected: MeasureTool(MessageBroker& broker, boost::weak_ptr<ViewportController> controllerW);