<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I know what a breakpoint is but I wasn't sure what you meant.<br><br>I used the well known method of the "print Hello" which is less attractive than the breakpoint method but quite rapid !!<br>My first observation was that the mouseMoved: method is never called.<br>It's quite interesting because the OnMouseMove methode of my InteractorStyle is called when you move the mouse AND click in the same time<br>but the mouseMoved method of the vtkCocoaGLView like I said is never called.<br><br>My vtkCocoaGLView therefore doesn't handle the device events.<br>Wrong.<br>The same "print Hello" in the keyUp method works well (idem for the other events).<br>So every event works except the mouseMove event ?!!<br><br>After a more specific search, a interesting link was found which explain that mouse move events are deactivated by default in Cocoa (in a performance matter).<br> <a href="http://serenity.uncc.edu/web/ADC/2005/Developer_DVD_Series/April/ADC%20Reference%20Library/documentation/Cocoa/Conceptual/BasicEventHandling/Tasks/HandlingMouseEvents.html" class="external free" title="http://serenity.uncc.edu/web/ADC/2005/Developer_DVD_Series/April/ADC%20Reference%20Library/documentation/Cocoa/Conceptual/BasicEventHandling/Tasks/HandlingMouseEvents.html" rel="nofollow">http://serenity.uncc.edu/web/ADC/2005/Developer_DVD_Series/April/ADC%20Reference%20Library/documentation/Cocoa/Conceptual/BasicEventHandling/Tasks/HandlingMouseEvents.html</a><br><br>The answer is :<br> [window setAcceptsMouseMovedEvents:YES];<br><br>It's that simple but I've not see it elsewhere before.<br><br><br>Thank you very much for your help.<br>Best regards,<br>Ben<br><br><br><br><br><br>> From: sean@rogue-research.com<br>> To: laurentbenoist@hotmail.com; vtkusers@vtk.org<br>> Subject: Re: [vtkusers] MouseMoveEvent bug in Cocoa<br>> Date: Thu, 6 Aug 2009 10:33:07 -0400<br>> <br>> Are you asking me what a breakpoint is? If so, see:<a title="Envoyer" href="javascript:;" onclick="if(window.ComposeContactPicker)return Control.invokeStatic('ComposeContactPicker', 'sendMessagePrep', event, null);" id="SendMessage"><span class="Label"></span></a><br>> <http://en.wikipedia.org/wiki/Breakpoint><br>> <br>> I'm not suggesting you modify vtkCocoaGLView.mm, I'm suggesting you<br>> investigate your issue by starting with a breakpoint at the beginning of<br>> the mouseMoved: method.<br>> <br>> Sean<br>> <br>> On 8/6/09 1:17 PM, Benoist Laurent said:<br>> <br>> >No.<br>> >What do you mean exactly ?<br>> >I should modify the code of vtkCocoaGLView.mm ?<br>> ><br>> ><br>> >> From: sean@rogue-research.com<br>> >> To: laurentbenoist@hotmail.com; vtkusers@vtk.org<br>> >> Subject: Re: [vtkusers] MouseMoveEvent bug in Cocoa<br>> >> Date: Wed, 5 Aug 2009 11:12:38 -0400<br>> >> <br>> >> On 8/5/09 2:39 PM, Benoist Laurent said:<br>> >> <br>> >> >Thank you for your answer.<br>> >> >I don't think that's important but actually I'm using a personnal class<br>> >> >which inherits from vtkInteractorStyleTrackballCamera.<br>> >> >I don't know if I need to do something special in the constructor of<br>> >> >this class.<br>> >> >For the moment, I just initialize the class member variables.<br>> >> ><br>> >> >So to answer your question, I tried to making my InteractorStyle<br>> >> >inheriting from another InteractorStyle without being successfull.<br>> >> >If you have any idea I take it !.<br>> >> <br>> >> Have you put a breakpoint in mouseMoved: in vtkCocoaGLView.mm?<br>> >> <br>> >> -- <br>> >> ____________________________________________________________<br>> >> Sean McBride, B. Eng sean@rogue-research.com<br>> >> Rogue Research www.rogue-research.com <br>> >> Mac Software Developer Montréal, Québec, Canada<br>> >> <br>> >> <br>> ><br>> >_________________________________________________________________<br>> >Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger !<br>> >http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx<br>> <br>> <br><br /><hr />Découvrez toutes les possibilités de communication <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>avec vos proches</a></body>
</html>