[vtkusers] reset camera not working with QVTKWidget
Prathamesh Kulkarni
prathameshmkulkarni at gmail.com
Sun Jul 11 20:42:08 EDT 2010
Hello all,
I am trying to use the QVTKWidget to display an image and reset its view at
the click of a button. I tried many ways but it only resets the translation
and does not affect rotation. Following is what I am using:
MyQVTKWidget->GetRenderWindow()->GetRenderers()->GetFirstRenderer()->ResetCamera();
MyQVTKWidget->repaint();
OR
MyRendererConnectedToMyQVTKWidget()->ResetCamera();
Am I missing something here? Also, even when I do
MyvtkImageActorConnectedToMyRenderer()->setPickable(1); I am still able to
rotate the Image.
I want to be able to turn off rotation of the vtkImageActor in some way and
let it only scale and drag using the default mouse actions.
Any help will be highly appreciated.
Thanks,
Prathamesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100711/a1d55753/attachment.htm>
More information about the vtkusers
mailing list