[vtkusers] Should I use one actor per renderer/renderwindow or can they share the same actor?

Bryn Lloyd lloyd at itis.ethz.ch
Tue Nov 1 11:56:10 EDT 2011


Hi again,

 

Actually, could I copy an actor using ShallowCopy in order to create
separate actors for each renderer?

 

Else, how can I transfer (or even synchronize) the actor parameters in a
simple but complete way? I am thinking of general vtkProp(s), not just
vtkActor.

 

Thanks for any advice.

 

--

Bryn

 

 

 

 

 

 

 

 

From: Karthik Krishnan [mailto:karthik.krishnan at kitware.com] 
Sent: Tuesday, November 01, 2011 3:58 PM
To: Bryn Lloyd
Cc: vtk
Subject: Re: [vtkusers] Should I use one actor per renderer/renderwindow or
can they share the same actor?

 

Even if it did work, it'd be quite fragile. I can imagine timestamp checks
going wrong (these are used in the mapper to rebuild the geometric
primitives etc). 

 

I can see LODActors getting messed up, when computing last render time from
a renderer, not realizing that its not the same renderer they rendered on
previously. 

 

Its best to create an actor per render window.

 

--

karthik

On Tue, Nov 1, 2011 at 4:24 PM, Bryn Lloyd <lloyd at itis.ethz.ch> wrote:

Hi

 

I am working on an application with multiple render windows.

 

Is it SAFE to use the same actor for each renderer/window, or should I
create an actor per renderer?

 

BTW. Currently it is OK if I have the same parameters (color, visibility,
etc) in each renderer.

Thanks for any suggestions

 

Bryn

 


_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111101/02d05d20/attachment.htm>


More information about the vtkusers mailing list