<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Shady,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I had the same question before and did not get any 
helpful response. Finally I used&nbsp;GetPosition to store the initial camera 
position and SetPosition to restore&nbsp;its initial position. In addition, you 
need SetRoll( ) to set the initial roll angle. Hope this helps.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Chen</FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=shady_shidfar@yahoo.com href="mailto:shady_shidfar@yahoo.com">Shady 
  Shidfar</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">VTKUsers</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 30, 2008 11:29 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Fw: Resetting the 
  Camera</DIV>
  <DIV><BR></DIV>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
  <DIV><BR></DIV>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT 
  face=Tahoma size=2>----- Forwarded Message ----<BR><B><SPAN 
  style="FONT-WEIGHT: bold">From:</SPAN></B> Shady Shidfar &lt;<A 
  href="mailto:shady_shidfar@yahoo.com">shady_shidfar@yahoo.com</A>&gt;<BR><B><SPAN 
  style="FONT-WEIGHT: bold">To:</SPAN></B> Dominik Szczerba &lt;<A 
  href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</A>&gt;; VTKUsers 
  &lt;<A href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A>&gt;<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, 29 October, 2008 
  15:16:38<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: 
  [vtkusers] Resetting the Camera<BR></FONT><BR>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
  <DIV>That doesn't work. If you rotate&nbsp;the rendering object say&nbsp;left 
  mouse click&nbsp;and then reset the camera It won't display the object in it's 
  originial position. It eliminates operations done by zooming ofcourse but not 
  rotating.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks</DIV>
  <DIV>Shaadi<BR></DIV>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
  <DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT 
  face=Tahoma size=2>
  <HR SIZE=1>
  <B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Dominik Szczerba 
  &lt;dominik@itis.ethz.ch&gt;<BR><B><SPAN 
  style="FONT-WEIGHT: bold">To:</SPAN></B> Shady Shidfar 
  &lt;shady_shidfar@yahoo.com&gt;<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Cc:</SPAN></B> VTKUsers 
  &lt;vtkusers@vtk.org&gt;<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, 29 October, 2008 
  13:25:52<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: 
  [vtkusers] Resetting the Camera<BR></FONT><BR>-----BEGIN PGP SIGNED 
  MESSAGE-----<BR>Hash: SHA1<BR><BR>I do:<BR><BR>&nbsp;&nbsp;&nbsp; 
  ren1-&gt;ResetCamera();<BR><BR>Dominik<BR><BR>Shady Shidfar wrote:<BR>&gt; 
  <BR>&gt; <BR>&gt; Hi everyone, I need to reset the camera in my rendering 
  window so that<BR>&gt; the modifications done by rotating the rendering 
  objects will be reset.<BR>&gt; (So the objects are viewed in their initial 
  size and position).<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; If you 
  check<BR>&gt; <A 
  href="http://www.vtk.org/pipermail/vtkusers/2003-August/069312.html" 
  target=_blank 
  rel=nofollow>http://www.vtk.org/pipermail/vtkusers/2003-August/069312.html</A> 
  , there is<BR>&gt; someone with exactly the same problem as mine and someone 
  is suggesting<BR>&gt; resetting to camera's initial position. That still only 
  resets to the<BR>&gt; initial rendered object size but the rotation is still 
  there.<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; Can someone please help me 
  with this?<BR>&gt; <BR>&gt; Thanks<BR>&gt; <BR>&gt; Shaadi<BR>&gt; <BR>&gt; 
  <BR>&gt; <BR>&gt; 
  ------------------------------------------------------------------------<BR>&gt; 
  <BR>&gt; _______________________________________________<BR>&gt; This is the 
  private VTK discussion list.<BR>&gt; Please keep messages on-topic. Check the 
  FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank 
  rel=nofollow>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>&gt; Follow this link to 
  subscribe/unsubscribe:<BR>&gt; <A 
  href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank 
  rel=nofollow>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR>- 
  --<BR>Dominik Szczerba, Ph.D.<BR>Computational Physics Group<BR>Foundation for 
  Research on IT in Society<BR><A href="http://www.itis.ethz.ch/" target=_blank 
  rel=nofollow>http://www.itis.ethz.ch</A><BR>-----BEGIN PGP 
  SIGNATURE-----<BR>Version: GnuPG v2.0.4-svn0 (GNU/Linux)<BR>Comment: Using 
  GnuPG with SUSE - <A href="http://enigmail.mozdev.org/" target=_blank 
  rel=nofollow>http://enigmail.mozdev.org</A><BR><BR>iD8DBQFJCGRg/EBMh9bUuzIRAhotAKDp4u2ISOaKswqOyZJPch2n4kmoMQCghYi2<BR>PWl3EjK1M5j/Z+ujMjhapyg=<BR>=6aH/<BR>-----END 
  PGP SIGNATURE-----<BR></DIV></DIV></DIV><BR></DIV></DIV></DIV><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>This is the private 
  VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at: 
  http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to 
  subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>