[vtkusers] Fw: Resetting the Camera

Hua-Mei Chen huameichen0523 at gmail.com
Thu Oct 30 13:49:05 EDT 2008


Shady,

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.

Chen 
  ----- Original Message ----- 
  From: Shady Shidfar 
  To: VTKUsers 
  Sent: Thursday, October 30, 2008 11:29 AM
  Subject: [vtkusers] Fw: Resetting the Camera






  ----- Forwarded Message ----
  From: Shady Shidfar <shady_shidfar at yahoo.com>
  To: Dominik Szczerba <dominik at itis.ethz.ch>; VTKUsers <vtkusers at vtk.org>
  Sent: Wednesday, 29 October, 2008 15:16:38
  Subject: Re: [vtkusers] Resetting the Camera


  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.

  Thanks
  Shaadi




------------------------------------------------------------------------------
  From: Dominik Szczerba <dominik at itis.ethz.ch>
  To: Shady Shidfar <shady_shidfar at yahoo.com>
  Cc: VTKUsers <vtkusers at vtk.org>
  Sent: Wednesday, 29 October, 2008 13:25:52
  Subject: Re: [vtkusers] Resetting the Camera

  -----BEGIN PGP SIGNED MESSAGE-----
  Hash: SHA1

  I do:

      ren1->ResetCamera();

  Dominik

  Shady Shidfar wrote:
  > 
  > 
  > Hi everyone, I need to reset the camera in my rendering window so that
  > the modifications done by rotating the rendering objects will be reset.
  > (So the objects are viewed in their initial size and position).
  > 
  >  
  > 
  > If you check
  > http://www.vtk.org/pipermail/vtkusers/2003-August/069312.html , there is
  > someone with exactly the same problem as mine and someone is suggesting
  > resetting to camera's initial position. That still only resets to the
  > initial rendered object size but the rotation is still there.
  > 
  >  
  > 
  > Can someone please help me with this?
  > 
  > Thanks
  > 
  > Shaadi
  > 
  > 
  > 
  > ------------------------------------------------------------------------
  > 
  > _______________________________________________
  > 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

  - --
  Dominik Szczerba, Ph.D.
  Computational Physics Group
  Foundation for Research on IT in Society
  http://www.itis.ethz.ch
  -----BEGIN PGP SIGNATURE-----
  Version: GnuPG v2.0.4-svn0 (GNU/Linux)
  Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

  iD8DBQFJCGRg/EBMh9bUuzIRAhotAKDp4u2ISOaKswqOyZJPch2n4kmoMQCghYi2
  PWl3EjK1M5j/Z+ujMjhapyg=
  =6aH/
  -----END PGP SIGNATURE-----







------------------------------------------------------------------------------


  _______________________________________________
  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/20081030/b472f658/attachment.htm>


More information about the vtkusers mailing list