<div dir="ltr">Yes, I am calling RenderWindowInteractor->SetInteractorStyle(myStyle). Here's the snippet:<br><br>InteractorStyle = (INTERACTOR_STYLE *)INTERACTOR_STYLE::New();// actual return type is vtkInteractorStyleTrackballCamera<br>
SetInteractorStyle(InteractorStyle);<br><br>called within the constructor of my RenderWindowInteractor (it's actually derived from wxVTKRenderWindowInteractor).<br><br>I did solve the scroll wheel problem by adding a SetFocus() to the top of the OnButtonUp function in the wxVTKRenderWindowInteractor.<br>
<br>Thanks,<br><br>Kerry<br><br><div class="gmail_quote">On Sun, Aug 3, 2008 at 9:57 PM, Karthik Krishnan <span dir="ltr"><<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>></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><div></div><div class="Wj3C7c">Kerry Loux wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
<br>
I've got two questions today: First, I'm having a difficult time figuring out why my mouse scroll events are not being captured. When I start my app, everything works fine, but if I select another control, then select the render window interactor again, I loose my scroll events. Any ideas? It's probably worth mentioning that I'm using a wxVTKRenderWindowInteractor (MSW, wx 2.8.7, and vtk 5.0.4).<br>
<br>
Second, I derived a class from vtkInteractorStyleTrackballCamera and I overloaded some of the event handling functions (OnButtonDown, etc.). My overloaded functions are not being called. When I step through the app. in debug, it just goes right to the vtk functions. Am I missing something? Is it more complicated than just overloading the function?<br>
</blockquote></div></div>
Silly question, but just to check: You are setting an instance of your derived interactor style on the RenderWindowInteractor being used as in:<br>
renderWindow->GetInteractor()->SetInteractorStyle(myStyle);<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks,<br>
<br>
Kerry<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>
<br>
</blockquote></div><br></div>