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