<div dir="ltr">Have a look at <br><br><a href="http://www.cmake.org/Wiki/VTK/Examples/Cxx#Qt">http://www.cmake.org/Wiki/VTK/Examples/Cxx#Qt</a><br><br><br>Jothy<br><br><div class="gmail_quote">On Fri, Sep 17, 2010 at 9:18 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;">Yes!, I'm using it and it's working wonderfully.<br>
<br>
What I can't do right now is setting the vtkImageViewer2 render window<br>
to a QVTKWidget's render window.<br>
<br>
Any hint?<br>
<div class="im"><br>
On 2010-09-17 16:13:21 +0100, Jothy wrote:<br>
</div><div><div></div><div class="h5">> Use vtkImageViewer2, it comes with the functionality you need with out need<br>
> to setup interactor style.<br>
><br>
> Jothy<br>
><br>
> On Fri, Sep 17, 2010 at 3:51 PM, Leonardo M. Ramé <<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>>wrote:<br>
><br>
> > 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>
> ><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<br>
> > <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:<br>
> > <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>
> ><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">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>
</div></div></blockquote></div><br></div>