]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Iterator.java
Avoid extra write transactions when opening Plant3D editor
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / TopoDS_Iterator.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 TopoDS_Iterator {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected TopoDS_Iterator(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(TopoDS_Iterator 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_TopoDS_Iterator(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
38   public TopoDS_Iterator() {
39     this(OccJavaJNI.new_TopoDS_Iterator__SWIG_0(), true);
40   }
41
42   public TopoDS_Iterator(TopoDS_Shape S, boolean cumOri, boolean cumLoc) {
43     this(OccJavaJNI.new_TopoDS_Iterator__SWIG_1(TopoDS_Shape.getCPtr(S), S, cumOri, cumLoc), true);
44   }
45
46   public TopoDS_Iterator(TopoDS_Shape S, boolean cumOri) {
47     this(OccJavaJNI.new_TopoDS_Iterator__SWIG_2(TopoDS_Shape.getCPtr(S), S, cumOri), true);
48   }
49
50   public TopoDS_Iterator(TopoDS_Shape S) {
51     this(OccJavaJNI.new_TopoDS_Iterator__SWIG_3(TopoDS_Shape.getCPtr(S), S), true);
52   }
53
54   public void initialize(TopoDS_Shape S, boolean cumOri, boolean cumLoc) {
55     OccJavaJNI.TopoDS_Iterator_initialize__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, cumOri, cumLoc);
56   }
57
58   public void initialize(TopoDS_Shape S, boolean cumOri) {
59     OccJavaJNI.TopoDS_Iterator_initialize__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, cumOri);
60   }
61
62   public void initialize(TopoDS_Shape S) {
63     OccJavaJNI.TopoDS_Iterator_initialize__SWIG_2(swigCPtr, this, TopoDS_Shape.getCPtr(S), S);
64   }
65
66   public boolean more() {
67         return OccJavaJNI.TopoDS_Iterator_more(swigCPtr, this);
68 }
69
70   public void next() {
71     OccJavaJNI.TopoDS_Iterator_next(swigCPtr, this);
72   }
73
74   public TopoDS_Shape value() {
75     long cPtr = OccJavaJNI.TopoDS_Iterator_value(swigCPtr, this);
76     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
77 }
78
79 }