/* ---------------------------------------------------------------------------- * 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); } }