X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FBnd_Box.java;h=e8235f4ecf74da75f60a629cc6f1acd78e1b4661;hb=refs%2Fchanges%2F60%2F3660%2F1;hp=b7ae7656e06d8d92c97ad4a20f6c7ab58a132190;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Bnd_Box.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Bnd_Box.java index b7ae7656..e8235f4e 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Bnd_Box.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Bnd_Box.java @@ -1,60 +1,60 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package org.jcae.opencascade.jni; - -public class Bnd_Box { - private long swigCPtr; - protected boolean swigCMemOwn; - - public Bnd_Box(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(Bnd_Box obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_Bnd_Box(swigCPtr); - } - swigCPtr = 0; - } - } - - /** - * Return the array { Xmin, Ymin, Zmin, Xmax, Ymax, Zmax } - */ - public double[] get() - { - double[] toReturn=new double[6]; - get(toReturn); - return toReturn; - } - - public Bnd_Box() { - this(OccJavaJNI.new_Bnd_Box(), true); - } - - public boolean isVoid() { - return OccJavaJNI.Bnd_Box_isVoid(swigCPtr, this); -} - - public void get(double[] box) { - OccJavaJNI.Bnd_Box_get(swigCPtr, this, box); - } - -} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 3.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.jcae.opencascade.jni; + +public class Bnd_Box { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected Bnd_Box(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Bnd_Box obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_Bnd_Box(swigCPtr); + } + swigCPtr = 0; + } + } + + /** + * Return the array { Xmin, Ymin, Zmin, Xmax, Ymax, Zmax } + */ + public double[] get() + { + double[] toReturn=new double[6]; + get(toReturn); + return toReturn; + } + + public Bnd_Box() { + this(OccJavaJNI.new_Bnd_Box(), true); + } + + public boolean isVoid() { + return OccJavaJNI.Bnd_Box_isVoid(swigCPtr, this); +} + + public void get(double[] box) { + OccJavaJNI.Bnd_Box_get(swigCPtr, this, box); + } + +}