// java wrapper for vtkSelectionLink object // package vtk; import vtk.*; public class vtkSelectionLink extends vtkSelectionAlgorithm { private native String GetClassName_0(); public String GetClassName() { return GetClassName_0(); } private native int IsA_1(String id0); public int IsA(String id0) { return IsA_1(id0); } private native long GetSelection_2(); public vtkSelection GetSelection() { long temp = GetSelection_2(); if (temp == 0) return null; vtkSelection obj = null; java.lang.ref.WeakReference ref = (java.lang.ref.WeakReference)vtkGlobalJavaHash.PointerToReference.get(new Long(temp)); if (ref != null) { obj = (vtkSelection)ref.get(); } if (obj == null) { vtkSelection tempObj = new vtkSelection(temp); String className = tempObj.GetClassName(); try { Class c = Class.forName("vtk." + className); java.lang.reflect.Constructor cons = c.getConstructor(new Class[] {long.class} ); obj = (vtkSelection)cons.newInstance(new Object[] {new Long(temp)}); } catch (Exception e) { e.printStackTrace(); } tempObj.Delete(); } return obj; } private native void SetSelection_3(vtkSelection id0); public void SetSelection(vtkSelection id0) { SetSelection_3(id0); } private native void AddDomainMap_4(vtkTable id0); public void AddDomainMap(vtkTable id0) { AddDomainMap_4(id0); } private native void RemoveDomainMap_5(vtkTable id0); public void RemoveDomainMap(vtkTable id0) { RemoveDomainMap_5(id0); } private native void RemoveAllDomainMaps_6(); public void RemoveAllDomainMaps() { RemoveAllDomainMaps_6(); } private native int GetNumberOfDomainMaps_7(); public int GetNumberOfDomainMaps() { return GetNumberOfDomainMaps_7(); } private native long GetDomainMap_8(int id0); public vtkTable GetDomainMap(int id0) { long temp = GetDomainMap_8(id0); if (temp == 0) return null; vtkTable obj = null; java.lang.ref.WeakReference ref = (java.lang.ref.WeakReference)vtkGlobalJavaHash.PointerToReference.get(new Long(temp)); if (ref != null) { obj = (vtkTable)ref.get(); } if (obj == null) { vtkTable tempObj = new vtkTable(temp); String className = tempObj.GetClassName(); try { Class c = Class.forName("vtk." + className); java.lang.reflect.Constructor cons = c.getConstructor(new Class[] {long.class} ); obj = (vtkTable)cons.newInstance(new Object[] {new Long(temp)}); } catch (Exception e) { e.printStackTrace(); } tempObj.Delete(); } return obj; } public vtkSelectionLink() { super(); } public vtkSelectionLink(long id) { super(id); } public native long VTKInit(); }