[vtkusers] checking visibility of a vtkActor
Juan Cardelino
juan.cardelino at gmail.com
Thu Aug 26 14:41:59 EDT 2010
Oh well, it was my bad, I forgot to look up in the hierarchy of
classes, and not only in vtkActor. It is pretty obvious that this
method should be inherited from vtkProp.
Sorry for the silly question.
Thanks for your help.
Regards,
Juan
On Thu, Aug 26, 2010 at 3:39 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> 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