<!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> </DIV>
<DIV><FONT face=Arial size=2>I had the same question before and did not get any
helpful response. Finally I used GetPosition to store the initial camera
position and SetPosition to restore its initial position. In addition, you
need SetRoll( ) to set the initial roll angle. Hope this helps.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Chen</FONT> </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 <<A
href="mailto:shady_shidfar@yahoo.com">shady_shidfar@yahoo.com</A>><BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> Dominik Szczerba <<A
href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</A>>; VTKUsers
<<A href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A>><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 the rendering object say left
mouse click 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> </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
<dominik@itis.ethz.ch><BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> Shady Shidfar
<shady_shidfar@yahoo.com><BR><B><SPAN
style="FONT-WEIGHT: bold">Cc:</SPAN></B> VTKUsers
<vtkusers@vtk.org><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>
ren1->ResetCamera();<BR><BR>Dominik<BR><BR>Shady Shidfar wrote:<BR>>
<BR>> <BR>> Hi everyone, I need to reset the camera in my rendering
window so that<BR>> the modifications done by rotating the rendering
objects will be reset.<BR>> (So the objects are viewed in their initial
size and position).<BR>> <BR>> <BR>> <BR>> If you
check<BR>> <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>> someone with exactly the same problem as mine and someone
is suggesting<BR>> resetting to camera's initial position. That still only
resets to the<BR>> initial rendered object size but the rotation is still
there.<BR>> <BR>> <BR>> <BR>> Can someone please help me
with this?<BR>> <BR>> Thanks<BR>> <BR>> Shaadi<BR>> <BR>>
<BR>> <BR>>
------------------------------------------------------------------------<BR>>
<BR>> _______________________________________________<BR>> This is the
private VTK discussion list.<BR>> 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>> Follow this link to
subscribe/unsubscribe:<BR>> <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>