]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_Surface.java
38bf1e53edea156e1e8a1cb354783fae1e0a55f9
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / Geom_Surface.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_Surface extends Geom_Geometry {\r
12   private long swigCPtr;\r
13 \r
14   public Geom_Surface(long cPtr, boolean cMemoryOwn) {\r
15     super(OccJavaJNI.Geom_Surface_SWIGUpcast(cPtr), cMemoryOwn);\r
16     swigCPtr = cPtr;\r
17   }\r
18 \r
19   public static long getCPtr(Geom_Surface 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_Surface(swigCPtr);\r
32       }\r
33       swigCPtr = 0;\r
34     }\r
35     super.delete();\r
36   }\r
37 \r
38   public double[] value(double U, double V) {\r
39         return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V);\r
40 }\r
41 \r
42   \r
43         /**\r
44          * Return the bounds of the parameters of the surface.\r
45          * @param bounds  an array of size 4 which will receive {Umin, Umax, Vmin, Vmax}\r
46          */\r
47         public void bounds(double[] bounds) {\r
48     OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds);\r
49   }\r
50 \r
51   \r
52         /**\r
53          * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays.\r
54          */\r
55         public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) {\r
56     OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2);\r
57   }\r
58 \r
59   public boolean isUClosed() {\r
60         return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this);\r
61 }\r
62 \r
63   public boolean isVClosed() {\r
64         return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this);\r
65 }\r
66 \r
67   public Geom_Curve uIso(double U) {\r
68     return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true);\r
69   }\r
70 \r
71   public Geom_Curve vIso(double V) {\r
72     return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true);\r
73   }\r
74 \r
75 }\r