X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FBRepGProp.java;h=3d2ea01fe4f376c8cf2cbc2679b0ef29ea3b09f9;hb=6c85a1331df92384baa03b3968ea6f06459a04ab;hp=8e0870f4b8385b5529d5d82790057e1ced7b9853;hpb=1e885c30936c7df2efda5a00bfdc127ee059dee0;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepGProp.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepGProp.java index 8e0870f4..3d2ea01f 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepGProp.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepGProp.java @@ -1,90 +1,90 @@ -/* ---------------------------------------------------------------------------- - * 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 BRepGProp { - private long swigCPtr; - protected boolean swigCMemOwn; - - public BRepGProp(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(BRepGProp obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_BRepGProp(swigCPtr); - } - swigCPtr = 0; - } - } - - public static void linearProperties(TopoDS_Shape shape, GProp_GProps properties) { - OccJavaJNI.BRepGProp_linearProperties(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties); - } - - public static void volumeProperties(TopoDS_Shape shape, GProp_GProps properties, boolean onlyClosed) { - OccJavaJNI.BRepGProp_volumeProperties__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, onlyClosed); - } - - public static void volumeProperties(TopoDS_Shape shape, GProp_GProps properties) { - OccJavaJNI.BRepGProp_volumeProperties__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties); - } - - public static double volumeProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed) { - return OccJavaJNI.BRepGProp_volumeProperties__SWIG_2(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed); - } - - public static double volumeProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps) { - return OccJavaJNI.BRepGProp_volumeProperties__SWIG_3(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps); - } - - public static void surfaceProperties(TopoDS_Shape shape, GProp_GProps properties) { - OccJavaJNI.BRepGProp_surfaceProperties__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties); - } - - public static double surfaceProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps) { - return OccJavaJNI.BRepGProp_surfaceProperties__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps); - } - - public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan, boolean cgFlag, boolean iFlag) { - return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan, cgFlag, iFlag); - } - - public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan, boolean cgFlag) { - return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan, cgFlag); - } - - public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan) { - return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_2(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan); - } - - public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed) { - return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_3(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed); - } - - public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps) { - return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_4(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps); - } - - public BRepGProp() { - this(OccJavaJNI.new_BRepGProp(), true); - } - -} +/* ---------------------------------------------------------------------------- + * 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 BRepGProp { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected BRepGProp(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(BRepGProp obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_BRepGProp(swigCPtr); + } + swigCPtr = 0; + } + } + + public static void linearProperties(TopoDS_Shape shape, GProp_GProps properties) { + OccJavaJNI.BRepGProp_linearProperties(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties); + } + + public static void volumeProperties(TopoDS_Shape shape, GProp_GProps properties, boolean onlyClosed) { + OccJavaJNI.BRepGProp_volumeProperties__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, onlyClosed); + } + + public static void volumeProperties(TopoDS_Shape shape, GProp_GProps properties) { + OccJavaJNI.BRepGProp_volumeProperties__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties); + } + + public static double volumeProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed) { + return OccJavaJNI.BRepGProp_volumeProperties__SWIG_2(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed); + } + + public static double volumeProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps) { + return OccJavaJNI.BRepGProp_volumeProperties__SWIG_3(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps); + } + + public static void surfaceProperties(TopoDS_Shape shape, GProp_GProps properties) { + OccJavaJNI.BRepGProp_surfaceProperties__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties); + } + + public static double surfaceProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps) { + return OccJavaJNI.BRepGProp_surfaceProperties__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps); + } + + public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan, boolean cgFlag, boolean iFlag) { + return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan, cgFlag, iFlag); + } + + public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan, boolean cgFlag) { + return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan, cgFlag); + } + + public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan) { + return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_2(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan); + } + + public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed) { + return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_3(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed); + } + + public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps) { + return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_4(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps); + } + + public BRepGProp() { + this(OccJavaJNI.new_BRepGProp(), true); + } + +}