[vtkusers] recovering vtkSpheereSource from vtkAssemply, HOW?!

kent williams nkwmailinglists at gmail.com
Thu May 28 15:03:10 EDT 2009


I don't know what you mean by 'change the allocated spheres.'  If you
mean e.g. change the radius of a sphere in the assembly, if you keep a
pointer to the SphereSource, you can change its radius and call Update
and I believe it will propogate the fact that it has changed up the
pipeline, triggering re-rendering of the view.

If you mean set the actors to use new, different geometry, then you
use vtkCollection::NewIterator() to step through the actors and do
whatever you want to with them.

On Wed, May 27, 2009 at 4:27 AM, Giancarlo Amati
<ilferraresebono at hotmail.it> wrote:
> Hello vtkUsers,
>
> I have a vtkAssembly with 6 actors. each actor refers to a vtkSphereSource.
> Now,
> the AddPart of vtkAssemply takes as input an actor, so i wonder if there is
> any way to recover
> the correspondent vtkSphereSource object allocated, passing through the
> property collection I can get from the vtkAssembly.
> that's because I need to change the allocated spheres.
>
> am I complicating my life or is there any other way to do it?
>
> very kind regards.
> GC
>
> ________________________________
> Scrivi, parla e gioca con i tuoi amici! Scarica Messenger 2009!
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list