<div dir="ltr">Use vtkImageViewer2, it comes with the functionality you need with out need to setup interactor style.<br><br>Jothy<br><br><div class="gmail_quote">On Fri, Sep 17, 2010 at 3:51 PM, Leonardo M. Ramé <span dir="ltr"><<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, I'm new to vtk and I'm trying to create a simple 2D Dicom image<br>
viewer. With vtkImageViewer I can do window/level and zoom, but I'd like<br>
to add more interactions, like "pan".<br>
<br>
I thought it was possible by changing the interactor style, but it<br>
doesn't work.<br>
<br>
Here is what I did:<br>
<br>
myImageViewer->GetRenderWindow()->GetInteractor()->SetInteractorStyle(vtkInteractorStyleTrackball::New());<br>
<br>
Any hint?<br>
<br>
--<br>
Leonardo M. Ramé<br>
Medical IT - Griensu S.A.<br>
Av. Colón 636 - Piso 8 Of. A<br>
X5000EPT -- Córdoba<br>
Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979<br>
Cel.: +54(351)5394365<br>
<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>
</blockquote></div><br></div>