[vtkusers] how to disable deletion of reference counted objects?

Bruce.Lamond at ed.ac.uk Bruce.Lamond at ed.ac.uk
Mon Mar 17 06:48:22 EST 2003


Hi,
I've written a vtkLight subclass and added instances of it to a renderer via a
new vtkImporter subclass. I'm trying to access the extra information in the
lights added to the renderer later in the program via the renderer, but I can
only get at the information held in the last light to be added to the renderer.
I suspect this is because the light objects are deleted after being added to the
renderer. Is there any way to override this deletion? I see that a
SetDeleteMethod() is commented out in the Render() method of subclasses of vtkLight.
cheers
Bruce 


             ################################################
             # Bruce Lamond                                 #
             # Edinburgh Virtual Environment Centre (EdVEC) #
             # University of Edinburgh                      #
             # JCMB room 2403                               #
             # The King's Buildings                         #
             # West Mains Road                              #
             # Edinburgh EH9 3JZ                            # 
             # UK                                           #
             # Tel. (00 44 ) (0)131 650 4981                #
             ################################################



More information about the vtkusers mailing list