<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style style="display: none;" id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body tabindex="0" aria-label="Message body" fpstyle="1" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
Hi;<br>
<br>
I'm using vtk-6.1.0 on Windows 7. I created a view widget which has options to change camera angles, such as, Bottom, Front, Left, Right .... And the following is part of the code that handles the camera position.
<br>
<br>
dataPtr_->renderer_->GetActiveCamera()->SetPosition(newPos[0] + focalPoint[0], newPos[1] + focalPoint[1], newPos[2] + focalPoint[2]);<br>
dataPtr_->renderer_->GetActiveCamera()->SetViewUp(newPos[3], newPos[4], newPos[5]);<br>
dataPtr_->renderer_->GetActiveCamera()->SetViewAngle(30);<br>
dataPtr_->renderer_->GetActiveCamera()->OrthogonalizeViewUp();<br>
dataPtr_->renderer_->ResetCameraClippingRange();<br>
dataPtr_->renderer_->ResetCamera();<br>
dataPtr_->displayWidget_->GetRenderWindow()->Render();<br>
<br>
They work fine, but the view of the object is updated instantly like changing a slide. I wonder if there is a setting that can show the movement in slow motion, i.e. user can see the object in the scene rotate to the required camera position. I've seen some
gui applications have this feature, I don't know if VTK can do it. Any help is appreciated.<br>
<br>
<br>
Thanks<br>
Jian<br>
<br>
</div>
</body>
</html>