[vtkusers] Rendering layers

John Biddiscombe john.biddiscombe at mirada-solutions.com
Mon Oct 13 07:08:48 EDT 2003


You have to call Render on the renderwindow, which in turn calls render
on the underlying renderers and then Frame to copy the result to screen.

 

JB

 

 

-----Original Message-----
From: Vidyadhar [mailto:vidyadhar at lucidindia.net] 
Sent: 13 October 2003 03:27
To: vtkusers at vtk.org
Subject: [vtkusers] Rendering layers

 

From

Vidyadhar

 

I use Windows2000 with VC++ 6.0.

I needed a zoom window facility. I found suitable code in TCL from which
I converted code to C++. I have subclassed vtkInteractorStyle to create
new style for my purpose. It works fine. I have fairly large volume data
and in its presence the render call from style
(this->Interactor->Render()) is very slow. So I tried something like
this.

I created two renderers for same render window and they share camera
too. I added my actual data in layer 0 renderer and nothing is added to
layer 1 renderer. I checked that in style code, PokedRenderer turns out
to be the one on layer 1 and it is to this that my style code will add
its actor. My idea is to render just the top layer and leave the slower
rendering actual data alone. I tried using Render() methods of both
vtkRenderer and vtkActor. Each executes without problem but the screen
is not updated. Which method should I use and what else I need to do so
the render window gets selectively updated.

Thanks for listening to me.

Any guidance will be appreciated.

Yours

Vidyadhar

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


More information about the vtkusers mailing list