1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package org.jcae.opencascade.jni;
11 public class BRepOffsetAPI_ThruSections extends BRepBuilderAPI_MakeShape {
12 private transient long swigCPtr;
14 protected BRepOffsetAPI_ThruSections(long cPtr, boolean cMemoryOwn) {
15 super(OccJavaJNI.BRepOffsetAPI_ThruSections_SWIGUpcast(cPtr), cMemoryOwn);
19 protected static long getCPtr(BRepOffsetAPI_ThruSections obj) {
20 return (obj == null) ? 0 : obj.swigCPtr;
23 protected void finalize() {
27 public synchronized void delete() {
31 OccJavaJNI.delete_BRepOffsetAPI_ThruSections(swigCPtr);
38 public BRepOffsetAPI_ThruSections(boolean isSolid, boolean ruled, double pres3d) {
39 this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_0(isSolid, ruled, pres3d), true);
42 public BRepOffsetAPI_ThruSections(boolean isSolid, boolean ruled) {
43 this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_1(isSolid, ruled), true);
46 public BRepOffsetAPI_ThruSections(boolean isSolid) {
47 this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_2(isSolid), true);
50 public BRepOffsetAPI_ThruSections() {
51 this(OccJavaJNI.new_BRepOffsetAPI_ThruSections__SWIG_3(), true);
54 public void addWire(TopoDS_Wire wire) {
55 OccJavaJNI.BRepOffsetAPI_ThruSections_addWire(swigCPtr, this, TopoDS_Wire.getCPtr(wire), wire);
58 public void checkCompatibility(boolean check) {
59 OccJavaJNI.BRepOffsetAPI_ThruSections_checkCompatibility__SWIG_0(swigCPtr, this, check);
62 public void checkCompatibility() {
63 OccJavaJNI.BRepOffsetAPI_ThruSections_checkCompatibility__SWIG_1(swigCPtr, this);
66 public TopoDS_Shape shape() {
67 long cPtr = OccJavaJNI.BRepOffsetAPI_ThruSections_shape(swigCPtr, this);
68 return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
71 public void init(boolean isSolid, boolean ruled, double pres3d) {
72 OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_0(swigCPtr, this, isSolid, ruled, pres3d);
75 public void init(boolean isSolid, boolean ruled) {
76 OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_1(swigCPtr, this, isSolid, ruled);
79 public void init(boolean isSolid) {
80 OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_2(swigCPtr, this, isSolid);
84 OccJavaJNI.BRepOffsetAPI_ThruSections_init__SWIG_3(swigCPtr, this);
87 public void addVertex(TopoDS_Vertex aVertex) {
88 OccJavaJNI.BRepOffsetAPI_ThruSections_addVertex(swigCPtr, this, TopoDS_Vertex.getCPtr(aVertex), aVertex);
92 OccJavaJNI.BRepOffsetAPI_ThruSections_build(swigCPtr, this);