X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FGProp_GProps.java;h=fbf80167066f4570a3b574ef2ffb8043913c2c2f;hb=HEAD;hp=c2880fda02ac520947b81c51dcae65516aee0b27;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GProp_GProps.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GProp_GProps.java index c2880fda..fbf80167 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GProp_GProps.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GProp_GProps.java @@ -1,54 +1,54 @@ -/* ---------------------------------------------------------------------------- - * 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 GProp_GProps { - private long swigCPtr; - protected boolean swigCMemOwn; - - public GProp_GProps(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(GProp_GProps obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_GProp_GProps(swigCPtr); - } - swigCPtr = 0; - } - } - - public GProp_GProps() { - this(OccJavaJNI.new_GProp_GProps(), true); - } - - public double mass() { - return OccJavaJNI.GProp_GProps_mass(swigCPtr, this); - } - - public double[] centreOfMass() { - return OccJavaJNI.GProp_GProps_centreOfMass(swigCPtr, this); -} - - public double[] matrixOfInertia() { - return OccJavaJNI.GProp_GProps_matrixOfInertia(swigCPtr, this); -} - -} +/* ---------------------------------------------------------------------------- + * 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 GProp_GProps { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected GProp_GProps(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(GProp_GProps obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_GProp_GProps(swigCPtr); + } + swigCPtr = 0; + } + } + + public GProp_GProps() { + this(OccJavaJNI.new_GProp_GProps(), true); + } + + public double mass() { + return OccJavaJNI.GProp_GProps_mass(swigCPtr, this); + } + + public double[] centreOfMass() { + return OccJavaJNI.GProp_GProps_centreOfMass(swigCPtr, this); +} + + public double[] matrixOfInertia() { + return OccJavaJNI.GProp_GProps_matrixOfInertia(swigCPtr, this); +} + +}