[vtkusers] vtkActorCollection how this works?

Giancarlo Amati ilferraresebono at hotmail.it
Mon Mar 30 12:03:46 EDT 2009


Hello everybody,

I'm using the class vtkPIcker to pick an object in the scene. From the class picker I'm getting the vtkActorCollection using picker->GetActors()....
and so I use 

vtkActor *act = vtkActor::New();


act = actColl->GetNextItem();

to access the list of the actors but  the pointer I get back is NULL,  while if I use pick->GetActor (without the final S) I get the pointer to the actor.
I want to apply a transformation to the sselected actor so...what's the problem with the collection?

Kind Regards.
Giancarlo

_________________________________________________________________
Portati avanti: scarica Messenger 2009!
http://clk.atdmt.com/GBL/go/136430507/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090330/3016501d/attachment.htm>


More information about the vtkusers mailing list