[vtkusers] vtkInteractorStyleTrackballActor behavior

Muhammad Nour mnour.ai at hotmail.com
Sat Mar 21 09:49:34 EDT 2015




Hi all,I am using MS visual studio 2008 and vtk 5.10I have rendering window and set its InteractorStyle to vtkInteractorStyleTrackballActor:vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();iren->SetRenderWindow(renWin);vtkInteractorStyleTrackballActor* style = vtkInteractorStyleTrackballActor::New();iren->SetInteractorStyle(style);iren->Initialize();ren->ResetCamera();renWin->Render();
If my render window initialized with some actors, mouse interaction act like expected.If I add other actors, old actors mouse interaction still act as expected but added actors mouse interaction look like vtkInteractorStyleTrackballCamera (maybe by default):vtkActor* actorCopy = vtkActor::New();actorCopy->SetMapper(mapperCopy);actorCopy->SetPosition(newPos[0], newPos[1], newPos[2]);actorCopy->SetUserTransform(trn);ren->AddActor(actorCopy);renWin->Render();What should I do to make new actors mouse interaction look like vtkInteractorStyleTrackballActor?Thank you very much
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150321/a15695b1/attachment.html>


More information about the vtkusers mailing list