X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FTopoDS_Iterator.java;h=a8e00605d2ba0ddfef50bdaa9430053af8456cbd;hb=d7128a534435161910ce5865db60c7874091df74;hp=e407f1916c288631edf7086f79a382adfa9a1562;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Iterator.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Iterator.java index e407f191..a8e00605 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Iterator.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Iterator.java @@ -1,79 +1,79 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 - * - * 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 TopoDS_Iterator { - private long swigCPtr; - protected boolean swigCMemOwn; - - public TopoDS_Iterator(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(TopoDS_Iterator obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_TopoDS_Iterator(swigCPtr); - } - swigCPtr = 0; - } - } - - public TopoDS_Iterator() { - this(OccJavaJNI.new_TopoDS_Iterator__SWIG_0(), true); - } - - public TopoDS_Iterator(TopoDS_Shape S, boolean cumOri, boolean cumLoc) { - this(OccJavaJNI.new_TopoDS_Iterator__SWIG_1(TopoDS_Shape.getCPtr(S), S, cumOri, cumLoc), true); - } - - public TopoDS_Iterator(TopoDS_Shape S, boolean cumOri) { - this(OccJavaJNI.new_TopoDS_Iterator__SWIG_2(TopoDS_Shape.getCPtr(S), S, cumOri), true); - } - - public TopoDS_Iterator(TopoDS_Shape S) { - this(OccJavaJNI.new_TopoDS_Iterator__SWIG_3(TopoDS_Shape.getCPtr(S), S), true); - } - - public void initialize(TopoDS_Shape S, boolean cumOri, boolean cumLoc) { - OccJavaJNI.TopoDS_Iterator_initialize__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, cumOri, cumLoc); - } - - public void initialize(TopoDS_Shape S, boolean cumOri) { - OccJavaJNI.TopoDS_Iterator_initialize__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, cumOri); - } - - public void initialize(TopoDS_Shape S) { - OccJavaJNI.TopoDS_Iterator_initialize__SWIG_2(swigCPtr, this, TopoDS_Shape.getCPtr(S), S); - } - - public boolean more() { - return OccJavaJNI.TopoDS_Iterator_more(swigCPtr, this); -} - - public void next() { - OccJavaJNI.TopoDS_Iterator_next(swigCPtr, this); - } - - public TopoDS_Shape value() { - long cPtr = OccJavaJNI.TopoDS_Iterator_value(swigCPtr, this); - return (TopoDS_Shape)TopoDS_Shape.create(cPtr); -} - -} +/* ---------------------------------------------------------------------------- + * 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 TopoDS_Iterator { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected TopoDS_Iterator(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(TopoDS_Iterator obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_TopoDS_Iterator(swigCPtr); + } + swigCPtr = 0; + } + } + + public TopoDS_Iterator() { + this(OccJavaJNI.new_TopoDS_Iterator__SWIG_0(), true); + } + + public TopoDS_Iterator(TopoDS_Shape S, boolean cumOri, boolean cumLoc) { + this(OccJavaJNI.new_TopoDS_Iterator__SWIG_1(TopoDS_Shape.getCPtr(S), S, cumOri, cumLoc), true); + } + + public TopoDS_Iterator(TopoDS_Shape S, boolean cumOri) { + this(OccJavaJNI.new_TopoDS_Iterator__SWIG_2(TopoDS_Shape.getCPtr(S), S, cumOri), true); + } + + public TopoDS_Iterator(TopoDS_Shape S) { + this(OccJavaJNI.new_TopoDS_Iterator__SWIG_3(TopoDS_Shape.getCPtr(S), S), true); + } + + public void initialize(TopoDS_Shape S, boolean cumOri, boolean cumLoc) { + OccJavaJNI.TopoDS_Iterator_initialize__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, cumOri, cumLoc); + } + + public void initialize(TopoDS_Shape S, boolean cumOri) { + OccJavaJNI.TopoDS_Iterator_initialize__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, cumOri); + } + + public void initialize(TopoDS_Shape S) { + OccJavaJNI.TopoDS_Iterator_initialize__SWIG_2(swigCPtr, this, TopoDS_Shape.getCPtr(S), S); + } + + public boolean more() { + return OccJavaJNI.TopoDS_Iterator_more(swigCPtr, this); +} + + public void next() { + OccJavaJNI.TopoDS_Iterator_next(swigCPtr, this); + } + + public TopoDS_Shape value() { + long cPtr = OccJavaJNI.TopoDS_Iterator_value(swigCPtr, this); + return (TopoDS_Shape)TopoDS_Shape.create(cPtr); +} + +}