public static void DeleteAll() {
Iterator iter = PointerToReference.values().iterator();
synchronized (PointerToReference) {
while (iter.hasNext()) {
WeakReference value = (WeakReference)iter.next();
vtkObjectBase obj = (vtkObjectBase)value.get();
if (obj != null) {
obj.Delete();
}
}
}
}