<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
many thanks....that was the problem, although I can recover each actor now, I don't see any effect in applying a matrix transformation using the vtkTransformFilter...to each dataset linked to the actor...that's weird.<br><br>GC&gt;<br><br>&gt; Date: Mon, 30 Mar 2009 12:14:29 -0400<br>&gt; From: francois.bertel@kitware.com<br>&gt; To: vtkusers@vtk.org<br>&gt; Subject: Re: [vtkusers] vtkActorCollection how this works?<br>&gt; <br>&gt; Did you use InitTraversal()?<br>&gt; <br>&gt; Typically, iterating over a vtkCollection should look like that:<br>&gt; <br>&gt; <br>&gt; vtkCollection *c;<br>&gt; vtkObject *o;<br>&gt; <br>&gt; c-&gt;InitTraversal();<br>&gt; o=c-&gt;GetNextItem();<br>&gt; while(o!=0)<br>&gt;   {<br>&gt;   // process o<br>&gt;   // ...<br>&gt; <br>&gt;   // next step<br>&gt;   o=c-&gt;GetNextItem();<br>&gt;   }<br>&gt; <br>&gt; <br>&gt; On Mon, Mar 30, 2009 at 12:03 PM, Giancarlo Amati<br>&gt; &lt;ilferraresebono@hotmail.it&gt; wrote:<br>&gt; &gt; Hello everybody,<br>&gt; &gt;<br>&gt; &gt; I'm using the class vtkPIcker to pick an object in the scene. From the class<br>&gt; &gt; picker I'm getting the vtkActorCollection using picker-&gt;GetActors()....<br>&gt; &gt; and so I use<br>&gt; &gt;<br>&gt; &gt; vtkActor *act = vtkActor::New();<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; act = actColl-&gt;GetNextItem();<br>&gt; &gt;<br>&gt; &gt; to access the list of the actors but&nbsp; the pointer I get back is NULL,&nbsp; while<br>&gt; &gt; if I use pick-&gt;GetActor (without the final S) I get the pointer to the<br>&gt; &gt; actor.<br>&gt; &gt; I want to apply a transformation to the sselected actor so...what's the<br>&gt; &gt; problem with the collection?<br>&gt; &gt;<br>&gt; &gt; Kind Regards.<br>&gt; &gt; Giancarlo<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Scopri tutte le novità. Scarica Messenger 2009!<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; François Bertel, PhD  | Kitware Inc. Suite 204<br>&gt; 1 (518) 371 3971 x113 | 28 Corporate Drive<br>&gt;                       | Clifton Park NY 12065, USA<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt; <br>&gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>&gt; <br>&gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.vtk.org/mailman/listinfo/vtkusers<br><br /><hr />Scopri tutte le novità. <a href='http://clk.atdmt.com/GBL/go/136422322/direct/01/' target='_new'>Scarica Messenger 2009!</a></body>
</html>