[vtkusers] same camera on different viewpoints
Luca Pallozzi Lavorante
lplavorante at gmail.com
Wed Jan 9 08:42:17 EST 2008
Sicilia,
if you work in C++, let's say you have two viewports, with two corresponding
instances of vtkRenderer, ren1 and ren2. Say that you want to modify ren2´s
camera according to whatever interaction you perform on ren1 (via a
vtkRenderWindowInteractor). The command to accomplish that is :
ren2->SetActiveCamera(ren1->GetActiveCamera());
Hope this help
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080109/fc0ff94b/attachment.htm>
More information about the vtkusers
mailing list