/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.4 * * 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 ShapeFix_Root { private long swigCPtr; protected boolean swigCMemOwn; public ShapeFix_Root(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } public static long getCPtr(ShapeFix_Root obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_ShapeFix_Root(swigCPtr); } swigCPtr = 0; } } public void setPrecision(double preci) { OccJavaJNI.ShapeFix_Root_setPrecision(swigCPtr, this, preci); } public double getPrecision() { return OccJavaJNI.ShapeFix_Root_getPrecision(swigCPtr, this); } public void setContext(ShapeBuild_ReShape context) { OccJavaJNI.ShapeFix_Root_setContext(swigCPtr, this, ShapeBuild_ReShape.getCPtr(context), context); } public ShapeBuild_ReShape getContext() { long cPtr = OccJavaJNI.ShapeFix_Root_getContext(swigCPtr, this); return (cPtr == 0) ? null : new ShapeBuild_ReShape(cPtr, false); } }