1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package org.jcae.opencascade.jni;
11 public class GP_Trsf {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
15 protected GP_Trsf(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
20 protected static long getCPtr(GP_Trsf obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
24 protected void finalize() {
28 public synchronized void delete() {
32 OccJavaJNI.delete_GP_Trsf(swigCPtr);
38 public void setValues(double[] matrix)
41 throw new IllegalArgumentException("matrix length must be 12");
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]);
49 this(OccJavaJNI.new_GP_Trsf(), true);
52 public void setRotation(double[] A1, double Ang) {
53 OccJavaJNI.GP_Trsf_setRotation(swigCPtr, this, A1, Ang);
56 public void setTranslation(double[] V) {
57 OccJavaJNI.GP_Trsf_setTranslation(swigCPtr, this, V);
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);
64 public void getValues(double[] matrix) {
65 OccJavaJNI.GP_Trsf_getValues(swigCPtr, this, matrix);