<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi John,<br>
<br>
Have u tried to reset the camera by pressing 'r'. To do this in code, I
believe its something like:<br>
viewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
<br>
Hope that works.<br>
<br>
Cheers<br>
Shakes<br>
<br>
John Smith wrote:
<blockquote cite="mid:218787.10559.qm@web31904.mail.mud.yahoo.com"
 type="cite">
  <style type="text/css"><!-- DIV {margin:0px;} --></style>
  <div
 style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
  <div>Hi,<br>
  <br>
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-&gt;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?<br>
  <br>
Thanks,<br>
  <br>
J.<br>
  <br>
MS VisualStudio 9.0 (2008)<br>
Windows XP SP3<br>
VTK5<br>
  <br>
  </div>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
<br>
</body>
</html>