]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepGProp.java
3d2ea01fe4f376c8cf2cbc2679b0ef29ea3b09f9
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / BRepGProp.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 BRepGProp {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected BRepGProp(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(BRepGProp 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_BRepGProp(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
38   public static void linearProperties(TopoDS_Shape shape, GProp_GProps properties) {
39     OccJavaJNI.BRepGProp_linearProperties(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties);
40   }
41
42   public static void volumeProperties(TopoDS_Shape shape, GProp_GProps properties, boolean onlyClosed) {
43     OccJavaJNI.BRepGProp_volumeProperties__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, onlyClosed);
44   }
45
46   public static void volumeProperties(TopoDS_Shape shape, GProp_GProps properties) {
47     OccJavaJNI.BRepGProp_volumeProperties__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties);
48   }
49
50   public static double volumeProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed) {
51     return OccJavaJNI.BRepGProp_volumeProperties__SWIG_2(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed);
52   }
53
54   public static double volumeProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps) {
55     return OccJavaJNI.BRepGProp_volumeProperties__SWIG_3(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps);
56   }
57
58   public static void surfaceProperties(TopoDS_Shape shape, GProp_GProps properties) {
59     OccJavaJNI.BRepGProp_surfaceProperties__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties);
60   }
61
62   public static double surfaceProperties(TopoDS_Shape shape, GProp_GProps properties, double Eps) {
63     return OccJavaJNI.BRepGProp_surfaceProperties__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps);
64   }
65
66   public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan, boolean cgFlag, boolean iFlag) {
67     return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan, cgFlag, iFlag);
68   }
69
70   public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan, boolean cgFlag) {
71     return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan, cgFlag);
72   }
73
74   public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed, boolean isUseSpan) {
75     return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_2(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed, isUseSpan);
76   }
77
78   public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps, boolean onlyClosed) {
79     return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_3(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps, onlyClosed);
80   }
81
82   public static double volumePropertiesGK(TopoDS_Shape shape, GProp_GProps properties, double Eps) {
83     return OccJavaJNI.BRepGProp_volumePropertiesGK__SWIG_4(TopoDS_Shape.getCPtr(shape), shape, GProp_GProps.getCPtr(properties), properties, Eps);
84   }
85
86   public BRepGProp() {
87     this(OccJavaJNI.new_BRepGProp(), true);
88   }
89
90 }