[vtkusers] vtkInteractorStyle in vtkImageViewer

Jothy jothybasu at gmail.com
Mon Sep 20 05:33:01 EDT 2010


Have a look at

http://www.cmake.org/Wiki/VTK/Examples/Cxx#Qt


Jothy

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

> Yes!, I'm using it and it's working wonderfully.
>
> What I can't do right now is setting the vtkImageViewer2 render window
> to a QVTKWidget's render window.
>
> Any hint?
>
> On 2010-09-17 16:13:21 +0100, Jothy wrote:
> > 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
> > >
>
> --
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100920/928cdc10/attachment.htm>


More information about the vtkusers mailing list