[vtkusers] Two questions about vtkImageViewer2

baliki2 at freemail.gr baliki2 at freemail.gr
Fri Oct 23 09:59:12 EDT 2009


Hello,
2) Set image size according to the viewer size.
   Disable interactor for no interaction.

Thanos 


> Hi,
> 
> I added a QVTKWidget to the QT-GUI of my application and attached it with a
> renderer and a vtkImageViewer2. Everything works great, I can load dicom
> images and show them in the widget/viewer. But I have two problems:
> 
> 1. Everytime I call SetSlice() of the vtkImageViewer2, a second viewer pops
> up (showing the same image) as a single window?! I don't want that. How can
> I prevent vtkImageViewer2 from this behavior?
> 
> 2. When I load a dicom image and show it in the viewer, the image is shown
> too small, because the viewer zooms out. But I want the image to fit exactly
> in the viewer (like vtkImageViewer does). In addition I don't want that the
> user can zoom & pan the image like a 3D object. I want that the image is
> statically shown in the viewer without any interaction with the user and
> fits to the viewer's size. How can I do this?
> 
> looking forward to your advice,
> Michael
> 
> --001485e9a800a404ab04769a05fe
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Hi,<br><br>I added a QVTKWidget to the QT-GUI of my application and attache=
> d it
> with a renderer and a vtkImageViewer2. Everything works great, I can
> load dicom images and show them in the widget/viewer. But I have two proble=
> ms:<br><br>1. Everytime I call SetSlice() of the vtkImageViewer2, a second =
> viewer pops up (showing the same image) as a single window?! I don&#39;t wa=
> nt that. How can I prevent vtkImageViewer2 from this behavior?<br>
> <br>2. When I load a dicom image and show it in the viewer, the image is sh=
> own too small, because the viewer zooms out. But I want the image to fit ex=
> actly in the viewer (like vtkImageViewer does). In addition I don&#39;t wan=
> t that the user can zoom &amp; pan the image like a 3D object. I want that =
> the image is statically shown in the viewer without any interaction with th=
> e user and fits to the viewer&#39;s size. How can I do this?<br>
> <br>looking forward to your advice,<br>Michael<br><br>
> 
> --001485e9a800a404ab04769a05fe--
> 
> --===============0055025767==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> 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
> 
> --===============0055025767==--





More information about the vtkusers mailing list