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 ShapeBuild_ReShape {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
15 protected ShapeBuild_ReShape(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
20 protected static long getCPtr(ShapeBuild_ReShape obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
24 protected void finalize() {
28 public synchronized void delete() {
32 OccJavaJNI.delete_ShapeBuild_ReShape(swigCPtr);
38 public ShapeBuild_ReShape() {
39 this(OccJavaJNI.new_ShapeBuild_ReShape(), true);
42 public void replace(TopoDS_Shape shape, TopoDS_Shape newshape) {
43 OccJavaJNI.ShapeBuild_ReShape_replace(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, TopoDS_Shape.getCPtr(newshape), newshape);
46 public TopoDS_Shape apply(TopoDS_Shape shape, TopAbs_ShapeEnum until) {
47 long cPtr = OccJavaJNI.ShapeBuild_ReShape_apply__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, until.swigValue());
48 return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
51 public TopoDS_Shape apply(TopoDS_Shape shape) {
52 long cPtr = OccJavaJNI.ShapeBuild_ReShape_apply__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);
53 return (TopoDS_Shape)TopoDS_Shape.create(cPtr);