<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><br><br>> Date: Mon, 30 Mar 2009 12:14:29 -0400<br>> From: francois.bertel@kitware.com<br>> To: vtkusers@vtk.org<br>> Subject: Re: [vtkusers] vtkActorCollection how this works?<br>> <br>> Did you use InitTraversal()?<br>> <br>> Typically, iterating over a vtkCollection should look like that:<br>> <br>> <br>> vtkCollection *c;<br>> vtkObject *o;<br>> <br>> c->InitTraversal();<br>> o=c->GetNextItem();<br>> while(o!=0)<br>> {<br>> // process o<br>> // ...<br>> <br>> // next step<br>> o=c->GetNextItem();<br>> }<br>> <br>> <br>> On Mon, Mar 30, 2009 at 12:03 PM, Giancarlo Amati<br>> <ilferraresebono@hotmail.it> wrote:<br>> > Hello everybody,<br>> ><br>> > I'm using the class vtkPIcker to pick an object in the scene. From the class<br>> > picker I'm getting the vtkActorCollection using picker->GetActors()....<br>> > and so I use<br>> ><br>> > vtkActor *act = vtkActor::New();<br>> ><br>> ><br>> > act = actColl->GetNextItem();<br>> ><br>> > to access the list of the actors but the pointer I get back is NULL, while<br>> > if I use pick->GetActor (without the final S) I get the pointer to the<br>> > actor.<br>> > I want to apply a transformation to the sselected actor so...what's the<br>> > problem with the collection?<br>> ><br>> > Kind Regards.<br>> > Giancarlo<br>> ><br>> > ________________________________<br>> > Scopri tutte le novità. Scarica Messenger 2009!<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the VTK FAQ at:<br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.vtk.org/mailman/listinfo/vtkusers<br>> ><br>> ><br>> <br>> <br>> <br>> -- <br>> François Bertel, PhD | Kitware Inc. Suite 204<br>> 1 (518) 371 3971 x113 | 28 Corporate Drive<br>> | Clifton Park NY 12065, USA<br>> _______________________________________________<br>> Powered by www.kitware.com<br>> <br>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>> <br>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>> <br>> Follow this link to subscribe/unsubscribe:<br>> 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>