]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_BSplineCurve.java
Avoid extra write transactions when opening Plant3D editor
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / Geom_BSplineCurve.java
index 72391142d4044eda155c6b54e0510ef401ad7525..dc8ec525b06451287949288e5d0ad61e7c622e3f 100644 (file)
-/* ----------------------------------------------------------------------------\r
- * This file was automatically generated by SWIG (http://www.swig.org).\r
- * Version 2.0.4\r
- *\r
- * Do not make changes to this file unless you know what you are doing--modify\r
- * the SWIG interface file instead.\r
- * ----------------------------------------------------------------------------- */\r
-\r
-package org.jcae.opencascade.jni;\r
-\r
-public class Geom_BSplineCurve extends Geom_BoundedCurve {\r
-  private long swigCPtr;\r
-\r
-  public Geom_BSplineCurve(long cPtr, boolean cMemoryOwn) {\r
-    super(OccJavaJNI.Geom_BSplineCurve_SWIGUpcast(cPtr), cMemoryOwn);\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(Geom_BSplineCurve obj) {\r
-    return (obj == null) ? 0 : obj.swigCPtr;\r
-  }\r
-\r
-  protected void finalize() {\r
-    delete();\r
-  }\r
-\r
-  public synchronized void delete() {\r
-    if (swigCPtr != 0) {\r
-      if (swigCMemOwn) {\r
-        swigCMemOwn = false;\r
-        OccJavaJNI.delete_Geom_BSplineCurve(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-    super.delete();\r
-  }\r
-\r
-  public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic, boolean CheckRational) {\r
-    this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_0(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic, CheckRational), true);\r
-  }\r
-\r
-  public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree, boolean Periodic) {\r
-    this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_1(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree, Periodic), true);\r
-  }\r
-\r
-  public Geom_BSplineCurve(double[] Poles, double[] Weights, double[] Knots, SWIGTYPE_p_TColStd_Array1OfInteger Multiplicities, int Degree) {\r
-    this(OccJavaJNI.new_Geom_BSplineCurve__SWIG_2(Poles, Weights, Knots, SWIGTYPE_p_TColStd_Array1OfInteger.getCPtr(Multiplicities), Degree), true);\r
-  }\r
-\r
-  public void setKnot(int Index, double K) {\r
-    OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_0(swigCPtr, this, Index, K);\r
-  }\r
-\r
-  public void setKnot(int Index, double K, int M) {\r
-    OccJavaJNI.Geom_BSplineCurve_setKnot__SWIG_1(swigCPtr, this, Index, K, M);\r
-  }\r
-\r
-  public void setPeriodic() {\r
-    OccJavaJNI.Geom_BSplineCurve_setPeriodic(swigCPtr, this);\r
-  }\r
-\r
-  public void setNotPeriodic() {\r
-    OccJavaJNI.Geom_BSplineCurve_setNotPeriodic(swigCPtr, this);\r
-  }\r
-\r
-  public void setOrigin(int Index) {\r
-    OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_0(swigCPtr, this, Index);\r
-  }\r
-\r
-  public void setOrigin(double U, double Tol) {\r
-    OccJavaJNI.Geom_BSplineCurve_setOrigin__SWIG_1(swigCPtr, this, U, Tol);\r
-  }\r
-\r
-  public void setPole(int Index, double[] P) {\r
-    OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_0(swigCPtr, this, Index, P);\r
-  }\r
-\r
-  public void setPole(int Index, double[] P, double Weight) {\r
-    OccJavaJNI.Geom_BSplineCurve_setPole__SWIG_1(swigCPtr, this, Index, P, Weight);\r
-  }\r
-\r
-  public void movePoint(double U, double[] P, int Index1, int Index2, SWIGTYPE_p_int FirstModifiedPole, SWIGTYPE_p_int LastModifiedPole) {\r
-    OccJavaJNI.Geom_BSplineCurve_movePoint(swigCPtr, this, U, P, Index1, Index2, SWIGTYPE_p_int.getCPtr(FirstModifiedPole), SWIGTYPE_p_int.getCPtr(LastModifiedPole));\r
-  }\r
-\r
-  public void movePointAndTangent(double U, double[] P, double[] Tangent, double Tolerance, int StartingCondition, int EndingCondition) {\r
-    OccJavaJNI.Geom_BSplineCurve_movePointAndTangent(swigCPtr, this, U, P, Tangent, Tolerance, StartingCondition, EndingCondition);\r
-  }\r
-\r
-  public boolean isClosed() {\r
-       return OccJavaJNI.Geom_BSplineCurve_isClosed(swigCPtr, this);\r
-}\r
-\r
-  public boolean isPeriodic() {\r
-       return OccJavaJNI.Geom_BSplineCurve_isPeriodic(swigCPtr, this);\r
-}\r
-\r
-  public boolean isRational() {\r
-       return OccJavaJNI.Geom_BSplineCurve_isRational(swigCPtr, this);\r
-}\r
-\r
-  public GeomAbs_Shape continuity() {\r
-    return GeomAbs_Shape.swigToEnum(OccJavaJNI.Geom_BSplineCurve_continuity(swigCPtr, this));\r
-  }\r
-\r
-  public int Degree() {\r
-    return OccJavaJNI.Geom_BSplineCurve_Degree(swigCPtr, this);\r
-  }\r
-\r
-  public double[] localValue(double U, int FromK1, int ToK2) {\r
-       return OccJavaJNI.Geom_BSplineCurve_localValue(swigCPtr, this, U, FromK1, ToK2);\r
-}\r
-\r
-  public double[] endPoint() {\r
-       return OccJavaJNI.Geom_BSplineCurve_endPoint(swigCPtr, this);\r
-}\r
-\r
-  public double[] startPoint() {\r
-       return OccJavaJNI.Geom_BSplineCurve_startPoint(swigCPtr, this);\r
-}\r
-\r
-  public int nbKnots() {\r
-    return OccJavaJNI.Geom_BSplineCurve_nbKnots(swigCPtr, this);\r
-  }\r
-\r
-  public int nbPoles() {\r
-    return OccJavaJNI.Geom_BSplineCurve_nbPoles(swigCPtr, this);\r
-  }\r
-\r
-  public double[] pole(int Index) {\r
-       return OccJavaJNI.Geom_BSplineCurve_pole(swigCPtr, this, Index);\r
-}\r
-\r
-  public double weight(int Index) {\r
-    return OccJavaJNI.Geom_BSplineCurve_weight(swigCPtr, this, Index);\r
-  }\r
-\r
-}\r
+/* ----------------------------------------------------------------------------
+ * 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);
+  }
+
+}