<div dir="ltr">You use vtkImageViewer2-&gt;SetupInteractor(vtkRenderWindowInteractor)<br><br>If you don&#39;t set that it will allow you to rotate it in 3D.<br><br>From the links ,I found you are setting the interactor as interactor.SetRenderWindow()<br>
<br>Jothy<br><br><div class="gmail_quote">On Tue, Apr 13, 2010 at 4:12 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</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;">
There seems to be significant confusion about when and how to use<br>
vtkImageViewer2.<br>
<br>
This code seems to compile and run:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/ImageViewer2" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/ImageViewer2</a><br>
<br>
but it seems to allow the image to be manipulated as a 3D plane (which<br>
I can&#39;t image anyone would expect). The documentation says that it<br>
uses vtkInteractorStyleImage, so I was expecting to work more like<br>
this:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/InteractWithImage" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/InteractWithImage</a><br>
<br>
Can someone put an end to this confusion by explaining the differences<br>
between these two techniques?<br>
<br>
Thanks,<br>
<br>
David<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>