[vtkusers] Which object picked ?

Kamran Iranpour kamran.iranpour at gmail.com
Tue Aug 29 13:51:52 EDT 2006


Hi,

I have a few objects in a window and use picker->GetActor() to get the
actor of the object just picked inside the callback function. Now I
need to know which of those objects I  have picked. One of those is a
vtkCubeSource and wondered  how to "recast" this back to a
vtkCubeSource so I could manipulate some of its properties (change
size ...). Is there a way to know the type of the picked object from
the given actor or recast somehow from the actor to the object ? If my
question sounds way off it is because I have very little knowledge
about vtk, apologize.

Thanks in advance

Kamran



More information about the vtkusers mailing list