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 Geom_BSplineCurve {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
15 protected Geom_BSplineCurve(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
20 protected static long getCPtr(Geom_BSplineCurve obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
24 protected void finalize() {
28 public synchronized void delete() {
32 OccJavaJNI.delete_Geom_BSplineCurve(swigCPtr);
38 public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic, boolean CheckRational) {
39 this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_0(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic, CheckRational), true);
42 public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic) {
43 this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_1(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic), true);
46 public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree) {
47 this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_2(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree), true);
50 public void setKnot(int Index, double K) {
51 OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_0(swigCPtr, this, Index, K);
54 public void setKnot(int Index, double K, int M) {
55 OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_1(swigCPtr, this, Index, K, M);
58 public void setPeriodic() {
59 OccJavaJNI.Geom_BSplineCurve_setPeriodic(swigCPtr, this);
62 public void setNotPeriodic() {
63 OccJavaJNI.Geom_BSplineCurve_setNotPeriodic(swigCPtr, this);
66 public void setOrigin(int Index) {
67 OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_0(swigCPtr, this, Index);
70 public void setOrigin(double U, double Tol) {
71 OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_1(swigCPtr, this, U, Tol);
74 public void setPole(int Index, double[] P) {
75 OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_0(swigCPtr, this, Index, P);
78 public void setPole(int Index, double[] P, double Weight) {
79 OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_1(swigCPtr, this, Index, P, Weight);
82 public void movePoint(double U, double[] P, int Index1, int Index2, SWIGTYPE_p_int FirstModifiedPole, SWIGTYPE_p_int LastModifiedPole) {
83 OccJavaJNI.Geom_BSplineCurve_movePoint(swigCPtr, this, U, P, Index1, Index2, SWIGTYPE_p_int.getCPtr(FirstModifiedPole), SWIGTYPE_p_int.getCPtr(LastModifiedPole));
86 public void movePointAndTangent(double U, double[] P, double[] Tangent, double Tolerance, int StartingCondition, int EndingCondition) {
87 OccJavaJNI.Geom_BSplineCurve_movePointAndTangent(swigCPtr, this, U, P, Tangent, Tolerance, StartingCondition, EndingCondition);
90 public boolean isClosed() {
91 return OccJavaJNI.Geom_BSplineCurve_isClosed(swigCPtr, this);
94 public boolean isPeriodic() {
95 return OccJavaJNI.Geom_BSplineCurve_isPeriodic(swigCPtr, this);
98 public boolean isRational() {
99 return OccJavaJNI.Geom_BSplineCurve_isRational(swigCPtr, this);
102 public GeomAbs_Shape continuity() {
103 return GeomAbs_Shape.swigToEnum(OccJavaJNI.Geom_BSplineCurve_continuity(swigCPtr, this));
106 public int Degree() {
107 return OccJavaJNI.Geom_BSplineCurve_Degree(swigCPtr, this);
110 public double[] localValue(double U, int FromK1, int ToK2) {
111 return OccJavaJNI.Geom_BSplineCurve_localValue(swigCPtr, this, U, FromK1, ToK2);
114 public double[] endPoint() {
115 return OccJavaJNI.Geom_BSplineCurve_endPoint(swigCPtr, this);
118 public double[] startPoint() {
119 return OccJavaJNI.Geom_BSplineCurve_startPoint(swigCPtr, this);
122 public int nbKnots() {
123 return OccJavaJNI.Geom_BSplineCurve_nbKnots(swigCPtr, this);
126 public int nbPoles() {
127 return OccJavaJNI.Geom_BSplineCurve_nbPoles(swigCPtr, this);
130 public double[] pole(int Index) {
131 return OccJavaJNI.Geom_BSplineCurve_pole(swigCPtr, this, Index);
134 public double weight(int Index) {
135 return OccJavaJNI.Geom_BSplineCurve_weight(swigCPtr, this, Index);