Benoist:<br><br>The render window interactor emits an MouseMoveEvent every time the mouse cursor is moved. The display coordinates can be queried from the interactor. <br><br>Numerous widgets in VTK use this to perform various actions such as object highlighting, annotations etc. Take a look at vtkBalloonWidget and its generic superclass vtkHoverWidget It may already perform what you need. You might be able to re-derive vtkHoverWidget to tailor it to your hover based annotation needs.<br>
<br>At a later stage, you may also find it worthwhile to take a look at vtkScenePicker if your annotation/interaction starts getting too slow. More on that later.<br><br>--<br>karthik<br><br><div class="gmail_quote">On Mon, Jul 20, 2009 at 7:40 AM, Benoist Laurent <span dir="ltr">&lt;<a href="mailto:laurentbenoist@hotmail.com">laurentbenoist@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
Hi,<br><br>I would like to change the color of the nearest object of the cursor, without need to click or something.<br>So I need to have the mouse position anytime.<br>But I can&#39;t find how to do that (I know how to have the position on a move click but not &quot;on the fly&quot;).<br>
<br>Can someone help me ?<br>Thank you by advance,<br><font color="#888888"><br>Benoist<br></font><div class="hm"><br><hr>Votre correspondant a choisi Hotmail et profite d&#39;un stockage quasiment illimité. <a href="http://www.windowslive.fr/hotmail/default.asp" target="_blank"> Créez un compte Hotmail gratuitement !</a></div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>