<div dir="ltr">First Render or MyQVTKWidget->Show() and then reset the camera.<br><br>Jothy<br><br><div class="gmail_quote">On Mon, Jul 12, 2010 at 1:42 AM, Prathamesh Kulkarni <span dir="ltr"><<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><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>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>