[vtkusers] Can a vtkActor be added to more than one renderer

Anka Kochanowska anka at bic.mni.mcgill.ca
Thu May 21 07:40:53 EDT 2009


Hi!
I was doing the same thing and was instructed not to add the same actor 
to multiple renderers.

http://public.kitware.com/pipermail/vtkusers/2007-January/089248.html

Kall, Bruce A. wrote:
> I seem to be able to add some type of actors to multiple renderers 
> (lines, image
> volumes etc), but not all.
>
> In particular, if I create axial, sagittal and coronal actors like in 
> Medical3.cxx and
> add them all to the same rendered they work fine.  If I add each one 
> to a different
> renderer, they all work fine.  But if I attach any one of them more 
> than once,
> the displayed 'plane' shows up as all white on any renderers after the 
> first
> one using it is rendered (e.g, if I attach the three image actors in 2 
> or more renderers,
> they all display fine on the first renderer, but show up as an 
> all-white plane on
> any other renderers).  Is there a way to use an image-type actor like 
> these on more
> than one renderer at a time?
>
> Any suggestions?
>
> Thanks,
> Bruce
>
>
> kent williams wrote:
>> Subject line says it all.
>>
>> What I want to do:  I have multiple views in separate windows.  In one
>> view I have one or more vtkSeedWidgets. I want to display the points
>> from the SeedWidgets in the other views.
>>
>> What it looks like I have to do is create some geometry, add it to a
>> mapper, add the mapper to the actor, add the actor to the renderer for
>> each views.
>>
>> Can one actor be added to more than one renderer?
>> _______________________________________________
>> 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
>>
>>   
> _______________________________________________
> 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