[vtkusers] moving camera and updating the rendering

Giancarlo Amati ilferraresebono at hotmail.it
Fri Mar 12 08:14:34 EST 2010


Hello vtkUsers,

I'm back with, I'm sure, a "so-many-times-asked" question:

I've a camera and a file with a sequence of postions that the camera takes.
Now, I'm using the QVTKWidget for rendering my scene.

I call:

vtkSmartPointer<vtkCamera>tmpCam = this->mp_VTKwidget->GetRenderWindow()->GetRenderers()->GetFirstRenderer()->GetActiveCamera();
        tmpCam->SetViewUp((*mI_vtkCamera)->GetViewUp());
        tmpCam->SetPosition((*mI_vtkCamera)->GetPosition());
        tmpCam->SetFocalPoint((*mI_vtkCamera)->GetFocalPoint());

to update the current renderer camera position.
But What I'm not seeing is an update of the view untile I click with the mouse inside the QVTKWidget (mp_VTKwidget).
so my question is HOW to update/refresh the view automatically?

I tried the method Render() of the vtkRenderer but it's apparently unseccessful.

Many thanks.
Giancarlo
 		 	   		  
_________________________________________________________________
Più spazio per le tue esigenze. Hotmail va oltre i 5GB
http://www.windowslive.it/hotmail/SpazioDisponibile.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100312/4f91149b/attachment.htm>


More information about the vtkusers mailing list