[vtkusers] rotation problem

Hossein Nazem hossein.nazem at gmail.com
Fri Mar 1 08:22:58 EST 2013


hi
i have volume(ct sliceses) i rendered it but when i tried to rotate it it
was moving wrongly( for example when i drag the mouse to right it rotates
to left and when i drag up it rotates down) , so i set the interactor style
to
vtkInteractorStyleTrackballCamera and did some modification on its member
function rotate. everything was ok. then i added a vtkAnnotatedCubeActor
after that when i drag mouse,  volume was rotating correctly but cube
rotating inversely, i tried to set widget interactor style
like this:
camstyle = vtkInteractorStyleTrackballCamera::New();
widget->GetInteractor()->SetInteractorStyle(camstyle);
but it didnt work,
any idea appreciated
hossein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130301/2658f41d/attachment.htm>


More information about the vtkusers mailing list