Dear all,
I created a renderwindow (in a view, so it is separated from the
multiwidget) where I would like to show a specific camera view of my scene.

How can I change the position or orientation of the camera and update the
view accordingly?

I tried to control the vtk camera directly:
vtkCamera* camera = renderer->GetVtkRenderer()->GetActiveCamera();
double * p = camera->GetPosition();
for(int i=0; i<10; i++) {
   camera->SetPosition(p[0],p[1],p[2]+i);
   vtkRenderer->ResetCameraClippingRange();
}

But it's not working. The guide really says to use an interactor for the
cameracontroller but it's bit scary at first :)

Thanks and regards,

Mario

-- 
Mario Ceresa, PhD Ing.
SIMBioSys group
Universidad Pompeu Fabra
55.107 - DTIC Building
c/Roc Boronat, 138
08018 Barcelona
Web: http://simbiosys.upf.edu/
Ln:  <http://es.linkedin.com/in/>http://es.linkedin.com/in/marioceresa
Tel.: (+34) 93 542 13 48
Fax: (+34) 93 542 25 17
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to