[vtkusers] Problem with vtkImageViewer2 Class
Shakes
Shekhar.Chandra at sci.monash.edu.au
Wed Oct 29 04:52:06 EDT 2008
Hi John,
Have u tried to reset the camera by pressing 'r'. To do this in code, I
believe its something like:
viewer->GetRenderer()->ResetCamera();
Hope that works.
Cheers
Shakes
John Smith wrote:
> Hi,
>
> I hope that I'm not disturbing you with my mails recently. Anyway, I
> have a small problem with vtkImagViewer2 Class. It works fine and
> shows the image. The only problem is that the image is zoomed in too
> much and I have to zoom it out manually. I want to adjust the view
> automatically when opening the image. I try to use
> "imageViewer2->UpdateDisplayExtent()" but it says that cannot access
> protected member. It's not wirtten there that it is protected and I
> don't know the problem. On the other hand, if no one knows how to
> solve this, does anyone know another way to adjust the size of the
> image automatically when showing the image for first time?
>
> Thanks,
>
> J.
>
> MS VisualStudio 9.0 (2008)
> Windows XP SP3
> VTK5
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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/20081029/a4a1b53a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shekhar_Chandra.vcf
Type: text/x-vcard
Size: 247 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081029/a4a1b53a/attachment.vcf>
More information about the vtkusers
mailing list