]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepTools_WireExplorer.java
f054e68a7e72580f4fc7bcbaa61c5cd92953f58e
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / BRepTools_WireExplorer.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 BRepTools_WireExplorer {\r
12   private long swigCPtr;\r
13   protected boolean swigCMemOwn;\r
14 \r
15   public BRepTools_WireExplorer(long cPtr, boolean cMemoryOwn) {\r
16     swigCMemOwn = cMemoryOwn;\r
17     swigCPtr = cPtr;\r
18   }\r
19 \r
20   public static long getCPtr(BRepTools_WireExplorer obj) {\r
21     return (obj == null) ? 0 : obj.swigCPtr;\r
22   }\r
23 \r
24   protected void finalize() {\r
25     delete();\r
26   }\r
27 \r
28   public synchronized void delete() {\r
29     if (swigCPtr != 0) {\r
30       if (swigCMemOwn) {\r
31         swigCMemOwn = false;\r
32         OccJavaJNI.delete_BRepTools_WireExplorer(swigCPtr);\r
33       }\r
34       swigCPtr = 0;\r
35     }\r
36   }\r
37 \r
38   public BRepTools_WireExplorer() {\r
39     this(OccJavaJNI.new_BRepTools_WireExplorer__SWIG_0(), true);\r
40   }\r
41 \r
42   public BRepTools_WireExplorer(TopoDS_Wire W) {\r
43     this(OccJavaJNI.new_BRepTools_WireExplorer__SWIG_1(TopoDS_Wire.getCPtr(W), W), true);\r
44   }\r
45 \r
46   public BRepTools_WireExplorer(TopoDS_Wire W, TopoDS_Face F) {\r
47     this(OccJavaJNI.new_BRepTools_WireExplorer__SWIG_2(TopoDS_Wire.getCPtr(W), W, TopoDS_Face.getCPtr(F), F), true);\r
48   }\r
49 \r
50   public void init(TopoDS_Wire W) {\r
51     OccJavaJNI.BRepTools_WireExplorer_init__SWIG_0(swigCPtr, this, TopoDS_Wire.getCPtr(W), W);\r
52   }\r
53 \r
54   public void init(TopoDS_Wire W, TopoDS_Face F) {\r
55     OccJavaJNI.BRepTools_WireExplorer_init__SWIG_1(swigCPtr, this, TopoDS_Wire.getCPtr(W), W, TopoDS_Face.getCPtr(F), F);\r
56   }\r
57 \r
58   public boolean more() {\r
59         return OccJavaJNI.BRepTools_WireExplorer_more(swigCPtr, this);\r
60 }\r
61 \r
62   public void next() {\r
63     OccJavaJNI.BRepTools_WireExplorer_next(swigCPtr, this);\r
64   }\r
65 \r
66   public TopoDS_Edge current() {\r
67     return new TopoDS_Edge(OccJavaJNI.BRepTools_WireExplorer_current(swigCPtr, this), false);\r
68   }\r
69 \r
70   public TopAbs_Orientation orientation() {\r
71     return TopAbs_Orientation.swigToEnum(OccJavaJNI.BRepTools_WireExplorer_orientation(swigCPtr, this));\r
72   }\r
73 \r
74   public TopoDS_Vertex currentVertex() {\r
75     return new TopoDS_Vertex(OccJavaJNI.BRepTools_WireExplorer_currentVertex(swigCPtr, this), false);\r
76   }\r
77 \r
78   public void clear() {\r
79     OccJavaJNI.BRepTools_WireExplorer_clear(swigCPtr, this);\r
80   }\r
81 \r
82 }\r