1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\r
5 * Do not make changes to this file unless you know what you are doing--modify
\r
6 * the SWIG interface file instead.
\r
7 * ----------------------------------------------------------------------------- */
\r
9 package org.jcae.opencascade.jni;
\r
11 public class Geom_BSplineCurve extends Geom_BoundedCurve {
\r
12 private long swigCPtr;
\r
14 public Geom_BSplineCurve(long cPtr, boolean cMemoryOwn) {
\r
15 super(OccJavaJNI.Geom_BSplineCurve_SWIGUpcast(cPtr), cMemoryOwn);
\r
19 public static long getCPtr(Geom_BSplineCurve obj) {
\r
20 return (obj == null) ? 0 : obj.swigCPtr;
\r
23 protected void finalize() {
\r
27 public synchronized void delete() {
\r
28 if (swigCPtr != 0) {
\r
30 swigCMemOwn = false;
\r
31 OccJavaJNI.delete_Geom_BSplineCurve(swigCPtr);
\r
38 public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic, boolean CheckRational) {
\r
39 this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_0(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic, CheckRational), true);
\r
42 public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic) {
\r
43 this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_1(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic), true);
\r
46 public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree) {
\r
47 this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_2(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree), true);
\r
50 public void setKnot(int Index, double K) {
\r
51 OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_0(swigCPtr, this, Index, K);
\r
54 public void setKnot(int Index, double K, int M) {
\r
55 OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_1(swigCPtr, this, Index, K, M);
\r
58 public void setPeriodic() {
\r
59 OccJavaJNI.Geom_BSplineCurve_setPeriodic(swigCPtr, this);
\r
62 public void setNotPeriodic() {
\r
63 OccJavaJNI.Geom_BSplineCurve_setNotPeriodic(swigCPtr, this);
\r
66 public void setOrigin(int Index) {
\r
67 OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_0(swigCPtr, this, Index);
\r
70 public void setOrigin(double U, double Tol) {
\r
71 OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_1(swigCPtr, this, U, Tol);
\r
74 public void setPole(int Index, double[] P) {
\r
75 OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_0(swigCPtr, this, Index, P);
\r
78 public void setPole(int Index, double[] P, double Weight) {
\r
79 OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_1(swigCPtr, this, Index, P, Weight);
\r
82 public void movePoint(double U, double[] P, int Index1, int Index2, SWIGTYPE_p_int FirstModifiedPole, SWIGTYPE_p_int LastModifiedPole) {
\r
83 OccJavaJNI.Geom_BSplineCurve_movePoint(swigCPtr, this, U, P, Index1, Index2, SWIGTYPE_p_int.getCPtr(FirstModifiedPole), SWIGTYPE_p_int.getCPtr(LastModifiedPole));
\r
86 public void movePointAndTangent(double U, double[] P, double[] Tangent, double Tolerance, int StartingCondition, int EndingCondition) {
\r
87 OccJavaJNI.Geom_BSplineCurve_movePointAndTangent(swigCPtr, this, U, P, Tangent, Tolerance, StartingCondition, EndingCondition);
\r
90 public boolean isClosed() {
\r
91 return OccJavaJNI.Geom_BSplineCurve_isClosed(swigCPtr, this);
\r
94 public boolean isPeriodic() {
\r
95 return OccJavaJNI.Geom_BSplineCurve_isPeriodic(swigCPtr, this);
\r
98 public boolean isRational() {
\r
99 return OccJavaJNI.Geom_BSplineCurve_isRational(swigCPtr, this);
\r
102 public GeomAbs_Shape continuity() {
\r
103 return GeomAbs_Shape.swigToEnum(OccJavaJNI.Geom_BSplineCurve_continuity(swigCPtr, this));
\r
106 public int Degree() {
\r
107 return OccJavaJNI.Geom_BSplineCurve_Degree(swigCPtr, this);
\r
110 public double[] localValue(double U, int FromK1, int ToK2) {
\r
111 return OccJavaJNI.Geom_BSplineCurve_localValue(swigCPtr, this, U, FromK1, ToK2);
\r
114 public double[] endPoint() {
\r
115 return OccJavaJNI.Geom_BSplineCurve_endPoint(swigCPtr, this);
\r
118 public double[] startPoint() {
\r
119 return OccJavaJNI.Geom_BSplineCurve_startPoint(swigCPtr, this);
\r
122 public int nbKnots() {
\r
123 return OccJavaJNI.Geom_BSplineCurve_nbKnots(swigCPtr, this);
\r
126 public int nbPoles() {
\r
127 return OccJavaJNI.Geom_BSplineCurve_nbPoles(swigCPtr, this);
\r
130 public double[] pole(int Index) {
\r
131 return OccJavaJNI.Geom_BSplineCurve_pole(swigCPtr, this, Index);
\r
134 public double weight(int Index) {
\r
135 return OccJavaJNI.Geom_BSplineCurve_weight(swigCPtr, this, Index);
\r