/* ---------------------------------------------------------------------------- * 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 ShapeBuild_ReShape { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected ShapeBuild_ReShape(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(ShapeBuild_ReShape obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_ShapeBuild_ReShape(swigCPtr); } swigCPtr = 0; } } public ShapeBuild_ReShape() { this(OccJavaJNI.new_ShapeBuild_ReShape(), true); } public void replace(TopoDS_Shape shape, TopoDS_Shape newshape) { OccJavaJNI.ShapeBuild_ReShape_replace(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, TopoDS_Shape.getCPtr(newshape), newshape); } public TopoDS_Shape apply(TopoDS_Shape shape, TopAbs_ShapeEnum until) { long cPtr = OccJavaJNI.ShapeBuild_ReShape_apply__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, until.swigValue()); return (TopoDS_Shape)TopoDS_Shape.create(cPtr); } public TopoDS_Shape apply(TopoDS_Shape shape) { long cPtr = OccJavaJNI.ShapeBuild_ReShape_apply__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); return (TopoDS_Shape)TopoDS_Shape.create(cPtr); } }