]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_BSplineCurve.java
Updated OpenCASCADE to 7.3.0
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / Geom_BSplineCurve.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.12
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package org.jcae.opencascade.jni;
10
11 public class Geom_BSplineCurve {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected Geom_BSplineCurve(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(Geom_BSplineCurve obj) {
21     return (obj == null) ? 0 : obj.swigCPtr;
22   }
23
24   protected void finalize() {
25     delete();
26   }
27
28   public synchronized void delete() {
29     if (swigCPtr != 0) {
30       if (swigCMemOwn) {
31         swigCMemOwn = false;
32         OccJavaJNI.delete_Geom_BSplineCurve(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
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);
40   }
41
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);
44   }
45
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);
48   }
49
50   public void setKnot(int Index, double K) {
51     OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_0(swigCPtr, this, Index, K);
52   }
53
54   public void setKnot(int Index, double K, int M) {
55     OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_1(swigCPtr, this, Index, K, M);
56   }
57
58   public void setPeriodic() {
59     OccJavaJNI.Geom_BSplineCurve_setPeriodic(swigCPtr, this);
60   }
61
62   public void setNotPeriodic() {
63     OccJavaJNI.Geom_BSplineCurve_setNotPeriodic(swigCPtr, this);
64   }
65
66   public void setOrigin(int Index) {
67     OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_0(swigCPtr, this, Index);
68   }
69
70   public void setOrigin(double U, double Tol) {
71     OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_1(swigCPtr, this, U, Tol);
72   }
73
74   public void setPole(int Index, double[] P) {
75     OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_0(swigCPtr, this, Index, P);
76   }
77
78   public void setPole(int Index, double[] P, double Weight) {
79     OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_1(swigCPtr, this, Index, P, Weight);
80   }
81
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));
84   }
85
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);
88   }
89
90   public boolean isClosed() {
91         return OccJavaJNI.Geom_BSplineCurve_isClosed(swigCPtr, this);
92 }
93
94   public boolean isPeriodic() {
95         return OccJavaJNI.Geom_BSplineCurve_isPeriodic(swigCPtr, this);
96 }
97
98   public boolean isRational() {
99         return OccJavaJNI.Geom_BSplineCurve_isRational(swigCPtr, this);
100 }
101
102   public GeomAbs_Shape continuity() {
103     return GeomAbs_Shape.swigToEnum(OccJavaJNI.Geom_BSplineCurve_continuity(swigCPtr, this));
104   }
105
106   public int Degree() {
107     return OccJavaJNI.Geom_BSplineCurve_Degree(swigCPtr, this);
108   }
109
110   public double[] localValue(double U, int FromK1, int ToK2) {
111         return OccJavaJNI.Geom_BSplineCurve_localValue(swigCPtr, this, U, FromK1, ToK2);
112 }
113
114   public double[] endPoint() {
115         return OccJavaJNI.Geom_BSplineCurve_endPoint(swigCPtr, this);
116 }
117
118   public double[] startPoint() {
119         return OccJavaJNI.Geom_BSplineCurve_startPoint(swigCPtr, this);
120 }
121
122   public int nbKnots() {
123     return OccJavaJNI.Geom_BSplineCurve_nbKnots(swigCPtr, this);
124   }
125
126   public int nbPoles() {
127     return OccJavaJNI.Geom_BSplineCurve_nbPoles(swigCPtr, this);
128   }
129
130   public double[] pole(int Index) {
131         return OccJavaJNI.Geom_BSplineCurve_pole(swigCPtr, this, Index);
132 }
133
134   public double weight(int Index) {
135     return OccJavaJNI.Geom_BSplineCurve_weight(swigCPtr, this, Index);
136   }
137
138 }