]> gerrit.simantics Code Review - simantics/3d.git/blob - vtk/src/vtk/vtkObjectBase.java
539aa966be433b597de6a4648fa08e2b99349494
[simantics/3d.git] / vtk / src / vtk / vtkObjectBase.java
1 // java wrapper for vtkObjectBase object
2 //
3
4 package vtk;
5
6 public class vtkObjectBase
7 {
8
9   private native String GetClassName_0();
10   public String GetClassName()
11     { return GetClassName_0(); }
12
13   private native int IsTypeOf_1(String id0);
14   public int IsTypeOf(String id0)
15     { return IsTypeOf_1(id0); }
16
17   private native int IsA_2(String id0);
18   public int IsA(String id0)
19     { return IsA_2(id0); }
20
21   private native void FastDelete_3();
22   public void FastDelete()
23     { FastDelete_3(); }
24
25   private native void InitializeObjectBase_4();
26   public void InitializeObjectBase()
27     { InitializeObjectBase_4(); }
28
29   private native void Register_5(vtkObjectBase id0);
30   public void Register(vtkObjectBase id0)
31     { Register_5(id0); }
32
33   private native void UnRegister_6(vtkObjectBase id0);
34   public void UnRegister(vtkObjectBase id0)
35     { UnRegister_6(id0); }
36
37   private native int GetReferenceCount_7();
38   public int GetReferenceCount()
39     { return GetReferenceCount_7(); }
40
41   private native void SetReferenceCount_8(int id0);
42   public void SetReferenceCount(int id0)
43     { SetReferenceCount_8(id0); }
44
45   public static vtk.vtkJavaMemoryManager JAVA_OBJECT_MANAGER = new vtk.vtkJavaMemoryManagerImpl();
46   public vtkObjectBase() {
47     this.vtkId = this.VTKInit();
48     vtkObjectBase.JAVA_OBJECT_MANAGER.registerJavaObject(this.vtkId, this);
49 }
50
51   public vtkObjectBase(long id) {
52     super();
53     this.vtkId = id;
54     this.VTKRegister();
55     vtkObjectBase.JAVA_OBJECT_MANAGER.registerJavaObject(this.vtkId, this);
56 }
57
58   protected long vtkId;
59
60   public long GetVTKId() { return this.vtkId; }
61   public static native void VTKDeleteReference(long id);
62   public static native String VTKGetClassNameFromReference(long id);
63   protected native void VTKDelete();
64   protected native void VTKRegister();
65   public void Delete() {
66     vtkObjectBase.JAVA_OBJECT_MANAGER.unRegisterJavaObject(this.vtkId);
67     this.vtkId = 0;
68   }  public native long   VTKInit();
69   public native String Print();
70   public String toString() { return Print(); }
71
72 }