]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GP_Trsf.java
Avoid extra write transactions when opening Plant3D editor
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / GP_Trsf.java
index 85275223571503670f1c333a57aa4ef43620e40c..4c5576259a3d3e1a6e5f05bbedbe9a69d1fe502e 100644 (file)
@@ -1,69 +1,68 @@
-/* ----------------------------------------------------------------------------\r
- * This file was automatically generated by SWIG (http://www.swig.org).\r
- * Version 2.0.4\r
- *\r
- * Do not make changes to this file unless you know what you are doing--modify\r
- * the SWIG interface file instead.\r
- * ----------------------------------------------------------------------------- */\r
-\r
-package org.jcae.opencascade.jni;\r
-\r
-public class GP_Trsf {\r
-  private long swigCPtr;\r
-  protected boolean swigCMemOwn;\r
-\r
-  public GP_Trsf(long cPtr, boolean cMemoryOwn) {\r
-    swigCMemOwn = cMemoryOwn;\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(GP_Trsf obj) {\r
-    return (obj == null) ? 0 : obj.swigCPtr;\r
-  }\r
-\r
-  protected void finalize() {\r
-    delete();\r
-  }\r
-\r
-  public synchronized void delete() {\r
-    if (swigCPtr != 0) {\r
-      if (swigCMemOwn) {\r
-        swigCMemOwn = false;\r
-        OccJavaJNI.delete_GP_Trsf(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-  }\r
-\r
-       public void setValues(double[] matrix, double tolAng, double tolDist)\r
-       {\r
-               if(matrix.length!=12)\r
-                       throw new IllegalArgumentException("matrix length must be 12");\r
-               setValues(\r
-                       matrix[0], matrix[1], matrix[2], matrix[3],\r
-                       matrix[4], matrix[5], matrix[6], matrix[7],\r
-                       matrix[8], matrix[9], matrix[10], matrix[11],\r
-                       tolAng, tolDist);\r
-       }       \r
-\r
-  public GP_Trsf() {\r
-    this(OccJavaJNI.new_GP_Trsf(), true);\r
-  }\r
-\r
-  public void setRotation(double[] A1, double Ang) {\r
-    OccJavaJNI.GP_Trsf_setRotation(swigCPtr, this, A1, Ang);\r
-  }\r
-\r
-  public void setTranslation(double[] V) {\r
-    OccJavaJNI.GP_Trsf_setTranslation(swigCPtr, this, V);\r
-  }\r
-\r
-  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) {\r
-    OccJavaJNI.GP_Trsf_setValues(swigCPtr, this, a11, a12, a13, a14, a21, a22, a23, a24, a31, a32, a33, a34, Tolang, TolDist);\r
-  }\r
-\r
-  public void getValues(double[] matrix) {\r
-    OccJavaJNI.GP_Trsf_getValues(swigCPtr, this, matrix);\r
-  }\r
-\r
-}\r
+/* ----------------------------------------------------------------------------
+ * 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);
+  }
+
+}