MCPcopy Create free account
hub / github.com/Kitware/VTK / Delete

Method Delete

Wrapping/Java/vtk/rendering/awt/vtkAwtComponent.java:78–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 public void Delete() {
79 this.lock.lock();
80
81 // We prevent any further rendering
82 inRenderCall = true;
83
84 if (this.uiComponent.getParent() != null) {
85 this.uiComponent.getParent().remove(this.uiComponent);
86 }
87 super.Delete();
88
89 // On linux we prefer to have a memory leak instead of a crash
90 if (!this.renderWindow.GetClassName().equals("vtkXOpenGLRenderWindow")) {
91 this.renderWindow = null;
92 } else {
93 System.out.println("The renderwindow has been kept around to prevent a crash");
94 }
95 this.lock.unlock();
96 vtkObject.JAVA_OBJECT_MANAGER.gc(false);
97 }
98
99 /**
100 * @return true if the graphical component has been properly set and

Callers

nothing calls this directly

Calls 7

equalsMethod · 0.80
DeleteMethod · 0.65
gcMethod · 0.65
lockMethod · 0.45
removeMethod · 0.45
GetClassNameMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected