[vtkusers] Swap vtkRenderers in a vtkRenderWindow
Clinton Stimpson
clinton at elemtech.com
Mon Dec 19 15:33:50 EST 2011
On Monday, December 19, 2011 10:35:55 am Federico Milano wrote:
> Hi,
>
> I'm trying to swap a vtkRenderer from a vtkRenderWindow to another
> vtkRenderWindow. The problem is that when I call the Remove method from the
> first vtkRenderWindow, it completely destroys my renderer. Is these any
> other way to do this?
That's probably because the reference count goes to zero when you remove it.
Try incrementing/decrementing the reference count when you swap them.
>
> The objective of this "swap" is to be able to change what the user is
> visualizing in each QVTKWidget.
Another option is to swap the vtkRenderWindow instead, if that fits what you're
trying to do.
--
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
More information about the vtkusers
mailing list