X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FGP_Trsf.java;h=4c5576259a3d3e1a6e5f05bbedbe9a69d1fe502e;hb=3b5c59eca31e9db10c1a1dc6d244d6fd4f3578a2;hp=85275223571503670f1c333a57aa4ef43620e40c;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GP_Trsf.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GP_Trsf.java index 85275223..4c557625 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GP_Trsf.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GP_Trsf.java @@ -1,69 +1,68 @@ -/* ---------------------------------------------------------------------------- - * 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 GP_Trsf { - private long swigCPtr; - protected boolean swigCMemOwn; - - public GP_Trsf(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(GP_Trsf obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_GP_Trsf(swigCPtr); - } - swigCPtr = 0; - } - } - - public void setValues(double[] matrix, double tolAng, double tolDist) - { - if(matrix.length!=12) - throw new IllegalArgumentException("matrix length must be 12"); - setValues( - matrix[0], matrix[1], matrix[2], matrix[3], - matrix[4], matrix[5], matrix[6], matrix[7], - matrix[8], matrix[9], matrix[10], matrix[11], - tolAng, tolDist); - } - - public GP_Trsf() { - this(OccJavaJNI.new_GP_Trsf(), true); - } - - public void setRotation(double[] A1, double Ang) { - OccJavaJNI.GP_Trsf_setRotation(swigCPtr, this, A1, Ang); - } - - public void setTranslation(double[] V) { - OccJavaJNI.GP_Trsf_setTranslation(swigCPtr, this, V); - } - - public void setValues(double a11, double a12, double a13, double a14, double a21, double a22, double a23, double a24, double a31, double a32, double a33, double a34, double Tolang, double TolDist) { - OccJavaJNI.GP_Trsf_setValues(swigCPtr, this, a11, a12, a13, a14, a21, a22, a23, a24, a31, a32, a33, a34, Tolang, TolDist); - } - - public void getValues(double[] matrix) { - OccJavaJNI.GP_Trsf_getValues(swigCPtr, this, matrix); - } - -} +/* ---------------------------------------------------------------------------- + * 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 GP_Trsf { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected GP_Trsf(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(GP_Trsf obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_GP_Trsf(swigCPtr); + } + swigCPtr = 0; + } + } + + public void setValues(double[] matrix) + { + if(matrix.length!=12) + throw new IllegalArgumentException("matrix length must be 12"); + setValues( + matrix[0], matrix[1], matrix[2], matrix[3], + matrix[4], matrix[5], matrix[6], matrix[7], + matrix[8], matrix[9], matrix[10], matrix[11]); + } + + public GP_Trsf() { + this(OccJavaJNI.new_GP_Trsf(), true); + } + + public void setRotation(double[] A1, double Ang) { + OccJavaJNI.GP_Trsf_setRotation(swigCPtr, this, A1, Ang); + } + + public void setTranslation(double[] V) { + OccJavaJNI.GP_Trsf_setTranslation(swigCPtr, this, V); + } + + public void setValues(double a11, double a12, double a13, double a14, double a21, double a22, double a23, double a24, double a31, double a32, double a33, double a34) { + OccJavaJNI.GP_Trsf_setValues(swigCPtr, this, a11, a12, a13, a14, a21, a22, a23, a24, a31, a32, a33, a34); + } + + public void getValues(double[] matrix) { + OccJavaJNI.GP_Trsf_getValues(swigCPtr, this, matrix); + } + +}