If you want to reset your camera to an initial state (or view, however you want to look at it), why not just save the camera state and restore it when you reset the camera? You can use vtkCamera.GetPosition(), GetFocalPoint(), and GetViewUp() to get the basic camera state and there are corresponding methods SetPosition(), SetFocalPoint(), and SetViewUp() that you can use to restore the camera state.<br>
<br>Hope that helps,<br>Cory<br><br><div class="gmail_quote">On Sun, Nov 9, 2008 at 8:57 AM, Shady Shidfar <span dir="ltr">&lt;<a href="mailto:shady_shidfar@yahoo.com">shady_shidfar@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Dear all VTK users,</div>
<div>I have a problem and I have emailed the forum several times but rarely got any reply. I&#39;m really stuck with it. I simply need to reset the camera. I use the vtkRenderer.ResetCamera().</div>
<div>The problem is the actors if zoomed, are restored to there initial situation but the rotation of the actor won&#39;t be reset. Please can someone help me with this. you can simply try the example in </div>
<div>Examples\Rendering\TclCylinder.tcl. I guess pressing &quot;r&quot; does the ResetCamera action. If you rotate the object and press &quot;r&quot;, it won&#39;t be restored to it&#39;s initial position. can please someone help </div>

<div>me with this issue.</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>Shaadi</div></div><br>



      </div><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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Cory Quammen<br>Center for Computer Integrated Systems for Microscopy and Manipulation (CISMM)<br>Department of Computer Science<br>University of North Carolina at Chapel Hill<br>
<a href="http://www.cs.unc.edu/~cquammen">http://www.cs.unc.edu/~cquammen</a><br>