<div dir="ltr"><br><div>Hello all,</div><div><br></div><div><br></div><div>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:</div>
<div><br></div><div>MyQVTKWidget->GetRenderWindow()->GetRenderers()->GetFirstRenderer()->ResetCamera();</div><div>MyQVTKWidget->repaint();</div><div><br></div><div>OR</div><div><br></div><div>MyRendererConnectedToMyQVTKWidget()->ResetCamera();</div>
<div><br></div><div><br></div><div>Am I missing something here? Also, even when I do MyvtkImageActorConnectedToMyRenderer()->setPickable(1); I am still able to rotate the Image.</div><div><br></div><div>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.</div>
<div><br></div><div>Any help will be highly appreciated.</div><div><br></div><div><br></div><div>Thanks,</div><div>Prathamesh</div></div>