[vtkusers] How to pivot camera around point?
Bertrand de Boisdeffre
bertrand.boisdeffre at gmail.com
Thu Aug 19 13:10:22 EDT 2010
Did you watched vtkInteractorStyleTrackballActor ?
This class enables rotations for each actor in your renderer. When you
point the camera on one actor (A), you can use the trackball on actor A. If
you point your camera on a second actor (B), you can use the trackball on
actor B,...etc.
Anyway, if this solution isn't well for you, you can create your own
interactor style class. I made that a short time ago.
You have to subclass a vtkInteractorSlyle class ("vtkInteractorStyle" being
the basic class). But it can become a little bit complicated.
2010/8/19 Raúl Ferriz <raul at torresyvalero.com>
> Oh, many thanks for this pdf! It may be usefull to me.
>
> What I was searching is for a class (interactor) that automatically set
> focal point on center of actor, and then mouse events pivot or move camera
> around that focal point or actor, I think that
> vtkInteractorStyleTrackballCamera don't has this features.
>
> The only way I can do is manually on my own class?
> Many thanks.
>
--
Bertrand de Boisdeffre
Etudiant 2A SICOM Phelma Grenoble-INP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100819/2fb9cb70/attachment.htm>
More information about the vtkusers
mailing list