[vtkusers] vtkObject and Observers

Jiro Inoue inoue at cs.queensu.ca
Tue Aug 21 16:09:57 EDT 2001


Hi,
I'm trying to use observers on vtkObjects in order to implement a 
testing suite for my vtk applications, but having some problems with the  
automatic deletion of vtkCommands in the vtkObserver destructor. This is a
bit disconcerting since I the vtkCommand being deleted is created
elsewhere with a New(). It would also be very useful to me if the
vtkCommand would persists beyond the lifetime of a watched object.  So, my
question is: Is there a reason why the vtkCommand is being deleted in
vtkObserver, and could this be changed so that it is not deleted?

Thanks,
Jiro





More information about the vtkusers mailing list