Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
864:ae3eccd0f545 | 865:a29c13497557 |
---|---|
69 It is assumed that if the pointer position leads to this function returning | 69 It is assumed that if the pointer position leads to this function returning |
70 true, then a click at that position will return a tracker to edit the | 70 true, then a click at that position will return a tracker to edit the |
71 measuring tool | 71 measuring tool |
72 */ | 72 */ |
73 virtual bool HitTest(ScenePoint2D p) const = 0; | 73 virtual bool HitTest(ScenePoint2D p) const = 0; |
74 | |
75 /** | |
76 Will change the measuring tool to provide visual feedback on the GUI | |
77 element that is in the pointer hit zone | |
78 */ | |
79 virtual void Highlight(ScenePoint2D p) = 0; | |
80 | |
81 /** | |
82 This function must reset the visual highlighted hot zone feedback | |
83 */ | |
84 virtual void ResetHighlightState() = 0; | |
85 | |
74 protected: | 86 protected: |
75 MeasureTool(MessageBroker& broker, boost::weak_ptr<ViewportController> controllerW); | 87 MeasureTool(MessageBroker& broker, boost::weak_ptr<ViewportController> controllerW); |
76 | 88 |
77 /** | 89 /** |
78 The measuring tool may exist in a standalone fashion, without any available | 90 The measuring tool may exist in a standalone fashion, without any available |