X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=vtk%2Fsrc%2Fvtk%2FvtkPointLocator.java;fp=vtk%2Fsrc%2Fvtk%2FvtkPointLocator.java;h=00e1fc5359d9725eb92e26c8704fcf800db79589;hb=0f1acf557db4515528bc452c037db0831fd34ecf;hp=0000000000000000000000000000000000000000;hpb=12e21051bd57248b39831d79d68d455077047cdb;p=simantics%2F3d.git diff --git a/vtk/src/vtk/vtkPointLocator.java b/vtk/src/vtk/vtkPointLocator.java new file mode 100644 index 00000000..00e1fc53 --- /dev/null +++ b/vtk/src/vtk/vtkPointLocator.java @@ -0,0 +1,135 @@ +// java wrapper for vtkPointLocator object +// + +package vtk; +import vtk.*; + +public class vtkPointLocator extends vtkIncrementalPointLocator +{ + + private native int IsTypeOf_0(String id0); + public int IsTypeOf(String id0) + { return IsTypeOf_0(id0); } + + private native int IsA_1(String id0); + public int IsA(String id0) + { return IsA_1(id0); } + + private native void SetDivisions_2(int id0,int id1,int id2); + public void SetDivisions(int id0,int id1,int id2) + { SetDivisions_2(id0,id1,id2); } + + private native void SetDivisions_3(int id0[]); + public void SetDivisions(int id0[]) + { SetDivisions_3(id0); } + + private native int[] GetDivisions_4(); + public int[] GetDivisions() + { return GetDivisions_4(); } + + private native void SetNumberOfPointsPerBucket_5(int id0); + public void SetNumberOfPointsPerBucket(int id0) + { SetNumberOfPointsPerBucket_5(id0); } + + private native int GetNumberOfPointsPerBucketMinValue_6(); + public int GetNumberOfPointsPerBucketMinValue() + { return GetNumberOfPointsPerBucketMinValue_6(); } + + private native int GetNumberOfPointsPerBucketMaxValue_7(); + public int GetNumberOfPointsPerBucketMaxValue() + { return GetNumberOfPointsPerBucketMaxValue_7(); } + + private native int GetNumberOfPointsPerBucket_8(); + public int GetNumberOfPointsPerBucket() + { return GetNumberOfPointsPerBucket_8(); } + + private native int FindClosestPoint_9(double id0[]); + public int FindClosestPoint(double id0[]) + { return FindClosestPoint_9(id0); } + + private native int InitPointInsertion_10(vtkPoints id0,double id1[]); + public int InitPointInsertion(vtkPoints id0,double id1[]) + { return InitPointInsertion_10(id0,id1); } + + private native int InitPointInsertion_11(vtkPoints id0,double id1[],int id2); + public int InitPointInsertion(vtkPoints id0,double id1[],int id2) + { return InitPointInsertion_11(id0,id1,id2); } + + private native void InsertPoint_12(int id0,double id1[]); + public void InsertPoint(int id0,double id1[]) + { InsertPoint_12(id0,id1); } + + private native int InsertNextPoint_13(double id0[]); + public int InsertNextPoint(double id0[]) + { return InsertNextPoint_13(id0); } + + private native int IsInsertedPoint_14(double id0,double id1,double id2); + public int IsInsertedPoint(double id0,double id1,double id2) + { return IsInsertedPoint_14(id0,id1,id2); } + + private native int IsInsertedPoint_15(double id0[]); + public int IsInsertedPoint(double id0[]) + { return IsInsertedPoint_15(id0); } + + private native int FindClosestInsertedPoint_16(double id0[]); + public int FindClosestInsertedPoint(double id0[]) + { return FindClosestInsertedPoint_16(id0); } + + private native void FindClosestNPoints_17(int id0,double id1[],vtkIdList id2); + public void FindClosestNPoints(int id0,double id1[],vtkIdList id2) + { FindClosestNPoints_17(id0,id1,id2); } + + private native void FindDistributedPoints_18(int id0,double id1[],vtkIdList id2,int id3); + public void FindDistributedPoints(int id0,double id1[],vtkIdList id2,int id3) + { FindDistributedPoints_18(id0,id1,id2,id3); } + + private native void FindDistributedPoints_19(int id0,double id1,double id2,double id3,vtkIdList id4,int id5); + public void FindDistributedPoints(int id0,double id1,double id2,double id3,vtkIdList id4,int id5) + { FindDistributedPoints_19(id0,id1,id2,id3,id4,id5); } + + private native void FindPointsWithinRadius_20(double id0,double id1[],vtkIdList id2); + public void FindPointsWithinRadius(double id0,double id1[],vtkIdList id2) + { FindPointsWithinRadius_20(id0,id1,id2); } + + private native long GetPointsInBucket_21(double id0[],int id1[]); + public vtkIdList GetPointsInBucket(double id0[],int id1[]) { + long temp = GetPointsInBucket_21(id0,id1); + + if (temp == 0) return null; + return (vtkIdList)vtkObjectBase.JAVA_OBJECT_MANAGER.getJavaObject(temp); +} + + private native long GetPoints_22(); + public vtkPoints GetPoints() { + long temp = GetPoints_22(); + + if (temp == 0) return null; + return (vtkPoints)vtkObjectBase.JAVA_OBJECT_MANAGER.getJavaObject(temp); +} + + private native void Initialize_23(); + public void Initialize() + { Initialize_23(); } + + private native void FreeSearchStructure_24(); + public void FreeSearchStructure() + { FreeSearchStructure_24(); } + + private native void BuildLocator_25(); + public void BuildLocator() + { BuildLocator_25(); } + + private native void GenerateRepresentation_26(int id0,vtkPolyData id1); + public void GenerateRepresentation(int id0,vtkPolyData id1) + { GenerateRepresentation_26(id0,id1); } + + private native int FindClosestPoint_27(double id0,double id1,double id2); + public int FindClosestPoint(double id0,double id1,double id2) + { return FindClosestPoint_27(id0,id1,id2); } + + public vtkPointLocator() { super(); } + + public vtkPointLocator(long id) { super(id); } + public native long VTKInit(); + +}