[vtkusers] actorCollection empty after an AddActor...why?

Roger Blum rogerblum at hawaii.rr.com
Thu Apr 23 03:20:53 EDT 2009


Hi Giancarlo,

I seem to recall to have had the same problem a while ago.

Have you tried calling the method GetViewProps() which is inherited to
the vtkRenderer from vtkViewport? This function returns a vtkPropCollection.

HTH,
Roger

Giancarlo Amati wrote:
> Good morning everybody,
> 
> I hope this time my question find an answer: I have this statemets:
> 
> _ren->AddActor(ImgACT1);
> _ren->AddActor(ImgACT2); wwhere ImgActX are both vtkImageActor objects.
> _ren->Render();
> 
> right after these statemets I need to collect the list of these actor from the renderer.
> So I call the GetActors() to retrieve the ActorCollection that is unfortunately EMPTY.
> Why?
> 
> Kind regards.
> Giancarlo
> 
> _________________________________________________________________
> Quante ne sai? Scoprilo con CrossWire!
> http://clk.atdmt.com/GBL/go/140630367/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list