<div style="font-family:Verdana;font-size:14px;color:#000;">I reset it successfully, thanks David~~~~<br>
<div style="font:Verdana normal 14px;color:#000;padding:8px 0px;"><div> </div><div> </div><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "David Doria"<daviddoria@gmail.com>; </div><div><b>发送时间:</b> 2011年12月12日(星期一) 晚上8:31</div><div><b>收件人:</b> "455535440"<455535440@qq.com>; </div><div><b >抄送:</b> "vtkusers"<vtkusers@vtk.org>; </div><div><b>主题:</b> Re: [vtkusers] How can I reset the carmera</div></div><div> </div>2011/12/12 455535440 <<a target="_blank" href="mailto:455535440@qq.com">455535440@qq<wbr>.com</a>>:<br>> hello everyone:<br>> I got an actor rendered on the vtkRenderer, Then I use the Interactor move<br>> and rotate the actor, but after that I want to make the actor undo all the<br>> action so that the actor should look like it first display.<br>> I call the method vtkRenderer::ResetCamera ,The camera reposition itself<br>> to view the center point of the actors,but actually it just undo the<br>> "move",the actor didn't rotate, anyone can help me reset the carmera to the<br>> original place?<br>> thx~~~<br><br>You could use vtkCamera * vtkRenderer::GetActiveCamera () before the<br>interaction to get the camera and then SetActiveCamera(vtkCamera*) to<br>set it back when you want to reset. You could also get the matrix of<br>the camera (GetModelTransformMatrix) and then set the matrix of the<br>camera when you want to reset (SetModelTransformMatrix (vtkMatrix4x4<br>*matrix)).<br><br>(Actually I'm not sure the difference between the<br>vtkCamera::Get*Matrix functions - the documentation should be improved<br>here).<br><br>David<br><br> <!-- --><style></style></div></div>