<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">For 2D images, I use vtkInteractorStyleImage, this is very good for viewing 2D images and you can pan by holding down the Shift key and clicking on the image.<BR><BR>&gt;&gt;&gt; Leonardo M. Ramé &lt;l.rame@griensu.com&gt; 17/09/2010 15:45 &gt;&gt;&gt;<BR>
<DIV style="COLOR: #000000">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-&gt;GetRenderWindow()-&gt;GetInteractor()-&gt;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">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></DIV></BODY></HTML>