[vtkusers] checking visibility of a vtkActor

David Doria daviddoria+vtk at gmail.com
Thu Aug 26 14:39:20 EDT 2010


On Thu, Aug 26, 2010 at 2:35 PM, Juan Cardelino
<juan.cardelino at gmail.com> wrote:
> I've been looking for some time a way to determine if an actor is
> visible or not in a scene. So far I've been unsuccesful and I'm about
> to implement it myself, but I want to be sure before. What makes me
> doubt is the behaviour of the vtkRenderWindowInteractor. When you
> Interact with a vtkRenderWindow and you press the 'r' key, all actors
> are made visible. So it has to compute their visibility in some way.
> Can anyone give me a hint on where to look.
> Thanks in advance,
>                            Juan

What about this:

http://www.vtk.org/doc/nightly/html/classvtkProp.html#aefc4aa169365523b276c4bb44a8a11ed

vtkActor* yourActor = something...
yourActor->GetVisibility();

Thanks,

David



More information about the vtkusers mailing list