[vtkusers] vtkInteractorStyle in vtkImageViewer

Jothy jothybasu at gmail.com
Fri Sep 17 11:13:21 EDT 2010


Use vtkImageViewer2, it comes with the functionality you need with out need
to setup interactor style.

Jothy

On Fri, Sep 17, 2010 at 3:51 PM, Leonardo M. Ramé <l.rame at griensu.com>wrote:

> Hi, I'm new to vtk and I'm trying to create a simple 2D Dicom image
> viewer. With vtkImageViewer I can do window/level and zoom, but I'd like
> to add more interactions, like "pan".
>
> I thought it was possible by changing the interactor style, but it
> doesn't work.
>
> Here is what I did:
>
>
> myImageViewer->GetRenderWindow()->GetInteractor()->SetInteractorStyle(vtkInteractorStyleTrackball::New());
>
> Any hint?
>
> --
> Leonardo M. Ramé
> Medical IT - Griensu S.A.
> Av. Colón 636 - Piso 8 Of. A
> X5000EPT -- Córdoba
> Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979
> Cel.: +54(351)5394365
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100917/9051e769/attachment.htm>


More information about the vtkusers mailing list