Dear all,

I am trying to set the center of rotation of my environment w.r.t. the 3D
model I loaded.

pqView * view = pqActiveObjects::instance().activeView();
vtkSMRenderViewProxy *proxy =
vtkSMRenderViewProxy::SafeDownCast(view->getViewProxy());
...
...
proxy->GetRenderer()->AddActor(actor);
proxy->GetRenderer()->ResetCamera();
proxy->GetRenderWindow()->Render();

My problem is that when the model is loaded, it is located at the center of
the rendering window, however, when I use mouse to rotate the model, it
immediately moves w.r.t. a different center of location. In fact, I checked
the center of rotation is always 0,0,0 at "Adjust Camera" window, I thought
ResetCamera() function will adjust the center of rotation?

How do I set it the correct way so that the rotation is around my model?

Thanks a lot,

Li
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to