[vtkusers] Best way to store multiple vtkActors using C++
David Doria
daviddoria at gmail.com
Tue Jan 6 08:57:37 EST 2015
On Tue, Jan 6, 2015 at 5:53 AM, Student Life <lifestudent37 at gmail.com>
wrote:
> Hi,
>
> I basically want to store multiple vtkActors within my render window so
> that the user can interact with them. I also want to group some vtkActors
> together
>
> I was thinking of using a linkedlist, to store each vtkActor.
>
> I was also thinking of grouping multiple vtkActors so that they can be
> interacted with and rotated in unison. I was thinking of doing this using a
> vtkAssembly, but I'm not too sure.
>
> I am new to VTK and would greatly appreciate some help/advice.
>
> Many thanks
>
Yes, a vtkAssembly is what you want:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/Assembly
Couple this with the vtkInteractorStyleTrackballActor:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MoveActor
and you should be in business.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150106/28663359/attachment.html>
More information about the vtkusers
mailing list