]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepOffsetAPI_ThruSections.java
44aa0d71f030f23e68b45fb1476df886cc4aab68
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / BRepOffsetAPI_ThruSections.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 BRepOffsetAPI_ThruSections extends BRepBuilderAPI_MakeShape {
12   private transient long swigCPtr;
13
14   protected BRepOffsetAPI_ThruSections(long cPtr, boolean cMemoryOwn) {
15     super(OccJavaJNI.BRepOffsetAPI_ThruSections_SWIGUpcast(cPtr), cMemoryOwn);
16     swigCPtr = cPtr;
17   }
18
19   protected static long getCPtr(BRepOffsetAPI_ThruSections obj) {
20     return (obj == null) ? 0 : obj.swigCPtr;
21   }
22
23   protected void finalize() {
24     delete();
25   }
26
27   public synchronized void delete() {
28     if (swigCPtr != 0) {
29       if (swigCMemOwn) {
30         swigCMemOwn = false;
31         OccJavaJNI.delete_BRepOffsetAPI_ThruSections(swigCPtr);
32       }
33       swigCPtr = 0;
34     }
35     super.delete();
36   }
37
38   public BRepOffsetAPI_ThruSections(boolean isSolid, boolean ruled, double pres3d) {
39     this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_0(isSolid, ruled, pres3d), true);
40   }
41
42   public BRepOffsetAPI_ThruSections(boolean isSolid, boolean ruled) {
43     this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_1(isSolid, ruled), true);
44   }
45
46   public BRepOffsetAPI_ThruSections(boolean isSolid) {
47     this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_2(isSolid), true);
48   }
49
50   public BRepOffsetAPI_ThruSections() {
51     this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_3(), true);
52   }
53
54   public void addWire(TopoDS_Wire wire) {
55     OccJavaJNI.BRepOffsetAPI_ThruSections_addWire(swigCPtr, this, TopoDS_Wire.getCPtr(wire), wire);
56   }
57
58   public void checkCompatibility(boolean check) {
59     OccJavaJNI.BRepOffsetAPI_ThruSections_checkCompatibility__SWIG_0(swigCPtr, this, check);
60   }
61
62   public void checkCompatibility() {
63     OccJavaJNI.BRepOffsetAPI_ThruSections_checkCompatibility__SWIG_1(swigCPtr, this);
64   }
65
66   public TopoDS_Shape shape() {
67     long cPtr = OccJavaJNI.BRepOffsetAPI_ThruSections_shape(swigCPtr, this);
68     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
69 }
70
71   public void init(boolean isSolid, boolean ruled, double pres3d) {
72     OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_0(swigCPtr, this, isSolid, ruled, pres3d);
73   }
74
75   public void init(boolean isSolid, boolean ruled) {
76     OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_1(swigCPtr, this, isSolid, ruled);
77   }
78
79   public void init(boolean isSolid) {
80     OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_2(swigCPtr, this, isSolid);
81   }
82
83   public void init() {
84     OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_3(swigCPtr, this);
85   }
86
87   public void addVertex(TopoDS_Vertex aVertex) {
88     OccJavaJNI.BRepOffsetAPI_ThruSections_addVertex(swigCPtr, this, TopoDS_Vertex.getCPtr(aVertex), aVertex);
89   }
90
91   public void build() {
92     OccJavaJNI.BRepOffsetAPI_ThruSections_build(swigCPtr, this);
93   }
94
95 }