]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GP_Trsf.java
Remove dependencies on log4j
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / GP_Trsf.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.12
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package org.jcae.opencascade.jni;
10
11 public class GP_Trsf {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected GP_Trsf(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(GP_Trsf obj) {
21     return (obj == null) ? 0 : obj.swigCPtr;
22   }
23
24   protected void finalize() {
25     delete();
26   }
27
28   public synchronized void delete() {
29     if (swigCPtr != 0) {
30       if (swigCMemOwn) {
31         swigCMemOwn = false;
32         OccJavaJNI.delete_GP_Trsf(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
38         public void setValues(double[] matrix)
39         {
40                 if(matrix.length!=12)
41                         throw new IllegalArgumentException("matrix length must be 12");
42                 setValues(
43                         matrix[0], matrix[1], matrix[2], matrix[3],
44                         matrix[4], matrix[5], matrix[6], matrix[7],
45                         matrix[8], matrix[9], matrix[10], matrix[11]);
46         }       
47
48   public GP_Trsf() {
49     this(OccJavaJNI.new_GP_Trsf(), true);
50   }
51
52   public void setRotation(double[] A1, double Ang) {
53     OccJavaJNI.GP_Trsf_setRotation(swigCPtr, this, A1, Ang);
54   }
55
56   public void setTranslation(double[] V) {
57     OccJavaJNI.GP_Trsf_setTranslation(swigCPtr, this, V);
58   }
59
60   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) {
61     OccJavaJNI.GP_Trsf_setValues(swigCPtr, this, a11, a12, a13, a14, a21, a22, a23, a24, a31, a32, a33, a34);
62   }
63
64   public void getValues(double[] matrix) {
65     OccJavaJNI.GP_Trsf_getValues(swigCPtr, this, matrix);
66   }
67
68 }