/* ---------------------------------------------------------------------------- * 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 Geom_BSplineCurve { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected Geom_BSplineCurve(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(Geom_BSplineCurve 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_BSplineCurve(swigCPtr); } swigCPtr = 0; } } public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic, boolean CheckRational) { this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_0(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic, CheckRational), true); } public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic) { this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_1(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic), true); } public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree) { this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_2(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree), true); } public void setKnot(int Index, double K) { OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_0(swigCPtr, this, Index, K); } public void setKnot(int Index, double K, int M) { OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_1(swigCPtr, this, Index, K, M); } public void setPeriodic() { OccJavaJNI.Geom_BSplineCurve_setPeriodic(swigCPtr, this); } public void setNotPeriodic() { OccJavaJNI.Geom_BSplineCurve_setNotPeriodic(swigCPtr, this); } public void setOrigin(int Index) { OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_0(swigCPtr, this, Index); } public void setOrigin(double U, double Tol) { OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_1(swigCPtr, this, U, Tol); } public void setPole(int Index, double[] P) { OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_0(swigCPtr, this, Index, P); } public void setPole(int Index, double[] P, double Weight) { OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_1(swigCPtr, this, Index, P, Weight); } public void movePoint(double U, double[] P, int Index1, int Index2, SWIGTYPE_p_int FirstModifiedPole, SWIGTYPE_p_int LastModifiedPole) { OccJavaJNI.Geom_BSplineCurve_movePoint(swigCPtr, this, U, P, Index1, Index2, SWIGTYPE_p_int.getCPtr(FirstModifiedPole), SWIGTYPE_p_int.getCPtr(LastModifiedPole)); } public void movePointAndTangent(double U, double[] P, double[] Tangent, double Tolerance, int StartingCondition, int EndingCondition) { OccJavaJNI.Geom_BSplineCurve_movePointAndTangent(swigCPtr, this, U, P, Tangent, Tolerance, StartingCondition, EndingCondition); } public boolean isClosed() { return OccJavaJNI.Geom_BSplineCurve_isClosed(swigCPtr, this); } public boolean isPeriodic() { return OccJavaJNI.Geom_BSplineCurve_isPeriodic(swigCPtr, this); } public boolean isRational() { return OccJavaJNI.Geom_BSplineCurve_isRational(swigCPtr, this); } public GeomAbs_Shape continuity() { return GeomAbs_Shape.swigToEnum(OccJavaJNI.Geom_BSplineCurve_continuity(swigCPtr, this)); } public int Degree() { return OccJavaJNI.Geom_BSplineCurve_Degree(swigCPtr, this); } public double[] localValue(double U, int FromK1, int ToK2) { return OccJavaJNI.Geom_BSplineCurve_localValue(swigCPtr, this, U, FromK1, ToK2); } public double[] endPoint() { return OccJavaJNI.Geom_BSplineCurve_endPoint(swigCPtr, this); } public double[] startPoint() { return OccJavaJNI.Geom_BSplineCurve_startPoint(swigCPtr, this); } public int nbKnots() { return OccJavaJNI.Geom_BSplineCurve_nbKnots(swigCPtr, this); } public int nbPoles() { return OccJavaJNI.Geom_BSplineCurve_nbPoles(swigCPtr, this); } public double[] pole(int Index) { return OccJavaJNI.Geom_BSplineCurve_pole(swigCPtr, this, Index); } public double weight(int Index) { return OccJavaJNI.Geom_BSplineCurve_weight(swigCPtr, this, Index); } }