[vtkusers] checking visibility of a vtkActor

Eric E. Monson emonson at cs.duke.edu
Thu Aug 26 14:44:12 EDT 2010


Just so you know, the thing I always use is the "List of all members" link on each of the documentation pages. That shows all inherited members, too, so you don't have to look down the tree manually.

-Eric


On Aug 26, 2010, at 2:41 PM, Juan Cardelino wrote:

> 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
>> 
> _______________________________________________
> 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