[vtkusers] retrieving the dataset from actor

David Doria daviddoria+vtk at gmail.com
Thu Feb 25 12:04:58 EST 2010


On Thu, Feb 25, 2010 at 10:30 AM, Giancarlo Amati <
ilferraresebono at hotmail.it> wrote:

>  Hello guys,
>
> I'm developing my software and I'm a kinda of OK to keep a vector of actors
> for managing the properties of visibility, color and renderings.
> But In case I need to apply a filter to a visualized dataset and I have
> just the list of actors, is there any way to:
>
> 1) determine the type of dataset which that actor is visualising,
> 2) retrieving that dataset.
>
> Many Thanks.
> Giancarlo
>
>
try:

actor->GetMapper()->GetInput()

This will give you the data set. You can then find the type with

result->GetClassName()

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100225/f23eb5cd/attachment.htm>


More information about the vtkusers mailing list