X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FGeom_Surface.java;h=2500c733cc379e8f6b0911c71f9b25c2b092f482;hb=6c85a1331df92384baa03b3968ea6f06459a04ab;hp=38bf1e53edea156e1e8a1cb354783fae1e0a55f9;hpb=1e885c30936c7df2efda5a00bfdc127ee059dee0;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_Surface.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_Surface.java index 38bf1e53..2500c733 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_Surface.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_Surface.java @@ -1,75 +1,75 @@ -/* ---------------------------------------------------------------------------- - * 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 Geom_Surface extends Geom_Geometry { - private long swigCPtr; - - public Geom_Surface(long cPtr, boolean cMemoryOwn) { - super(OccJavaJNI.Geom_Surface_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - public static long getCPtr(Geom_Surface obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_Geom_Surface(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public double[] value(double U, double V) { - return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V); -} - - - /** - * Return the bounds of the parameters of the surface. - * @param bounds an array of size 4 which will receive {Umin, Umax, Vmin, Vmax} - */ - public void bounds(double[] bounds) { - OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds); - } - - - /** - * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays. - */ - public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) { - OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2); - } - - public boolean isUClosed() { - return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this); -} - - public boolean isVClosed() { - return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this); -} - - public Geom_Curve uIso(double U) { - return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true); - } - - public Geom_Curve vIso(double V) { - return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true); - } - -} +/* ---------------------------------------------------------------------------- + * 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 Geom_Surface { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected Geom_Surface(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Geom_Surface obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_Geom_Surface(swigCPtr); + } + swigCPtr = 0; + } + } + + public double[] value(double U, double V) { + return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V); +} + + + /** + * Return the bounds of the parameters of the surface. + * @param bounds an array of size 4 which will receive {Umin, Umax, Vmin, Vmax} + */ + public void bounds(double[] bounds) { + OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds); + } + + + /** + * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays. + */ + public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) { + OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2); + } + + public boolean isUClosed() { + return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this); +} + + public boolean isVClosed() { + return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this); +} + + public Geom_Curve uIso(double U) { + return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true); + } + + public Geom_Curve vIso(double V) { + return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true); + } + +}