[vtkusers] Delete() usage
Jean-Hugues Royer
jhroyer at joher.com
Wed Oct 10 10:55:35 EDT 2012
Hi,
Tracking memory leaks...
As far as I read we are supposed to call the Delete() method each time
we issue a New() object.
Are we also supposed to call Delete() on objects we received from Get*()
functions ?
Example:
vtkPolyData pd =
vtkContourWidget.GetContourRepresentation().GetContourRepresentationAsPolyData()
Do I have to call pd.Delete() to free it or will vtkContourWidget free
it when deleted ?
And regarding Set*() functions, example:
vtkPlaneCollection pc = vtkPlaneCollection.New();
vtkSmartVolumeMapper.SetClippingPlanes(pc);
Do I have to call pd.Delete() to free the plane collection or will it be
freed when the vtkSmartVolumeMapper will be deleted ?
Thanks.
More information about the vtkusers
mailing list