/// <summary> /// Initializes a new <see cref="VtkSceneGraph"/>. /// </summary> /// <param name="owner">The owner <see cref="IVtkPresentationImage"/> of the scene graph.</param> protected VtkSceneGraph(IVtkPresentationImage owner) { Platform.CheckForNullReference(owner, "owner"); Owner = owner; _vtkObjectsList = new VtkObjectsList(); }
/// <summary> /// Called when the scene graph is disposed or finalized. /// </summary> /// <param name="disposing">True if the graph is being disposed; False otherwise.</param> protected virtual void Dispose(bool disposing) { Disposed = true; Owner = null; if (disposing && _vtkObjectsList != null) { _vtkObjectsList.Dispose(); _vtkObjectsList = null; } }