<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>Thanks for your prompt answer.<br>Unfortunately, the widgets doesn't seem to be the most appropriate method in this case.<br>However, why  my InteractorStyle OnMouseMove() method of is called only on drag events ?<br><br>For information I'm running on Mac OS X 10.5 (Cocoa).<br>I'm using vtkInteractorStyleTrackballCamera.<br><br><br><hr id="stopSpelling">Date: Mon, 20 Jul 2009 08:24:58 -0400<br>Subject: Re: [vtkusers] Mouse position anytime<br>From: karthik.krishnan@kitware.com<br>To: laurentbenoist@hotmail.com<br>CC: vtkusers@vtk.org<br><br>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="EC_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="EC_gmail_quote" style="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't find how to do that (I know how to have the position on a move click but not "on the fly").<br>
<br>Can someone help me ?<br>Thank you by advance,<br><font color="#888888"><br>Benoist<br></font><div class="EC_hm"><br><hr>Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. <a href="http://www.windowslive.fr/hotmail/default.asp"> Créez un compte Hotmail gratuitement !</a></div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br /><hr />Discutez sur Messenger où que vous soyez ! <a href='http://www.messengersurvotremobile.com/' target='_new'>Mettez Messenger sur votre mobile !</a></body>
</html>