[vtkusers] Interaction with the Actor

Karthik Krishnan karthik.krishnan at kitware.com
Thu Jul 24 22:04:04 EDT 2008


Look at the interactor styles.. vtkInteractorStyleTrackballCamera should 
do that for you.. You can switch to this style programmatically or 
interactively (hit 't' on your render window).

Kerry Loux wrote:
> Hello all,
>
> I'm sure there's an easy way to do this, but I haven't been able to 
> figure it out:  I would like the user to be able to rotate the object 
> on the screen by clicking and dragging - similar to most CAD 
> software.  In other words I would like the mouse clicks to control 
> orientation rather than velocity of the object.  Is there some virtual 
> function that I can overload?  Do I need to edit code that is buried 
> in VTK somewhere?  I'm using VTK with wxWidgets through a 
> wxVTKRenderWindowInteractor.  MSW, wxWidgets 2.8.7, VTK 5.0.4. 
> <http://5.0.4.>
>
> Thanks for your help!
>
> -Kerry
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   

-- 
Karthik Krishnan
R & D Engineer,
Kitware Inc,
Ph:  518 371 3971 x119
Fax: 518 371 3971




More information about the vtkusers mailing list