/* ---------------------------------------------------------------------------- * 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 Geom_Curve extends Geom_Geometry { private long swigCPtr; public Geom_Curve(long cPtr, boolean cMemoryOwn) { super(OccJavaJNI.Geom_Curve_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } public static long getCPtr(Geom_Curve obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_Geom_Curve(swigCPtr); } swigCPtr = 0; } super.delete(); } public double firstParameter() { return OccJavaJNI.Geom_Curve_firstParameter(swigCPtr, this); } public double lastParameter() { return OccJavaJNI.Geom_Curve_lastParameter(swigCPtr, this); } public boolean isClosed() { return OccJavaJNI.Geom_Curve_isClosed(swigCPtr, this); } public boolean isPeriodic() { return OccJavaJNI.Geom_Curve_isPeriodic(swigCPtr, this); } public double period() { return OccJavaJNI.Geom_Curve_period(swigCPtr, this); } }