X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=vtk%2Fsrc%2Fvtk%2FvtkSelectionLink.java;fp=vtk%2Fsrc%2Fvtk%2FvtkSelectionLink.java;h=0000000000000000000000000000000000000000;hb=12e21051bd57248b39831d79d68d455077047cdb;hp=5f3b2296e66522d93d1b0c94a4b5c166279c38ab;hpb=58ebeb2baac48f9066c1395a9071f99745574ef9;p=simantics%2F3d.git diff --git a/vtk/src/vtk/vtkSelectionLink.java b/vtk/src/vtk/vtkSelectionLink.java deleted file mode 100644 index 5f3b2296..00000000 --- a/vtk/src/vtk/vtkSelectionLink.java +++ /dev/null @@ -1,93 +0,0 @@ -// 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(); - -}