[vtkusers] Show/hide actors efficiently

Nicolas Rannou Nicolas_Rannou at hms.harvard.edu
Wed Sep 1 18:20:01 EDT 2010


Thanks I will dig a little bit into that and let you know how it works.

It could be a solution but I guess that the next question is:
How do you update each assembly efficiently when you move the plane/ 
box..?

Let's say that while moving the plane/box an actor moves from in front  
of the plane to behind the plane. (hide->show)
How would you just move this single actor from an assembly to the  
other without going through the whole assemblies?

How long does it take to show/hide an assembly of 1000 actors?

I couldn't find any solution yet to only update the visibility of the  
actors that the "state" is changing.

Thanks

     Nicolas

On Sep 1, 2010, at 4:29 PM, Bertrand de Boisdeffre wrote:

> If you know at the beginning where actors are positionned ( behind  
> or in front of plane ) , so you can divide your actors in 2  
> assemblies. In this case, look at this class : "vtkAssembly". This  
> class allows to change properties for all actors belonging to the  
> assembly.
> If you try to check if the actor is behind/front of a plane and then  
> change the properties, I don't have solution.
>
> 2010/8/31 Nicolas Rannou <nicolas_rannou at hms.harvard.edu>
> Hi all,
>
> I would like to show/hide actors which are:
>  - behind or in front of a plane widget
>  - inside or outside a box widget
> and to be able to interact with the widgets in real time to modify  
> the visibility of the actors.
>
> My main issue is that I am working with thousands of actors and  
> checking the bounding box of each actor appears not to be efficient  
> enough...
>
> Would somebody know a good way to deal with high number of actors?
>
> Thanks,
>
>    Nicolas
> _______________________________________________
> 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
>
>
>
> -- 
> Bertrand de Boisdeffre
> Etudiant 2A  SICOM Phelma Grenoble-INP
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100901/5c7dbad4/attachment.htm>


More information about the vtkusers mailing list