X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FTopExp_Explorer.java;h=8a6be5182f1d4d95ae24f7d81b6c0d81c459ae98;hb=6c85a1331df92384baa03b3968ea6f06459a04ab;hp=7df24f8c294362d81ab22bd2f92ce0ac3072ccf2;hpb=1e885c30936c7df2efda5a00bfdc127ee059dee0;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp_Explorer.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp_Explorer.java index 7df24f8c..8a6be518 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp_Explorer.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp_Explorer.java @@ -1,71 +1,71 @@ -/* ---------------------------------------------------------------------------- - * 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 TopExp_Explorer { - private long swigCPtr; - protected boolean swigCMemOwn; - - public TopExp_Explorer(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(TopExp_Explorer obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_TopExp_Explorer(swigCPtr); - } - swigCPtr = 0; - } - } - - public TopExp_Explorer() { - this(OccJavaJNI.new_TopExp_Explorer__SWIG_0(), true); - } - - public TopExp_Explorer(TopoDS_Shape S, TopAbs_ShapeEnum ToFind, TopAbs_ShapeEnum ToAvoid) { - this(OccJavaJNI.new_TopExp_Explorer__SWIG_1(TopoDS_Shape.getCPtr(S), S, ToFind.swigValue(), ToAvoid.swigValue()), true); - } - - public TopExp_Explorer(TopoDS_Shape S, TopAbs_ShapeEnum ToFind) { - this(OccJavaJNI.new_TopExp_Explorer__SWIG_2(TopoDS_Shape.getCPtr(S), S, ToFind.swigValue()), true); - } - - public void init(TopoDS_Shape S, TopAbs_ShapeEnum ToFind, TopAbs_ShapeEnum ToAvoid) { - OccJavaJNI.TopExp_Explorer_init__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, ToFind.swigValue(), ToAvoid.swigValue()); - } - - public void init(TopoDS_Shape S, TopAbs_ShapeEnum ToFind) { - OccJavaJNI.TopExp_Explorer_init__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, ToFind.swigValue()); - } - - public boolean more() { - return OccJavaJNI.TopExp_Explorer_more(swigCPtr, this); -} - - public void next() { - OccJavaJNI.TopExp_Explorer_next(swigCPtr, this); - } - - public TopoDS_Shape current() { - long cPtr = OccJavaJNI.TopExp_Explorer_current(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 TopExp_Explorer { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected TopExp_Explorer(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(TopExp_Explorer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_TopExp_Explorer(swigCPtr); + } + swigCPtr = 0; + } + } + + public TopExp_Explorer() { + this(OccJavaJNI.new_TopExp_Explorer__SWIG_0(), true); + } + + public TopExp_Explorer(TopoDS_Shape S, TopAbs_ShapeEnum ToFind, TopAbs_ShapeEnum ToAvoid) { + this(OccJavaJNI.new_TopExp_Explorer__SWIG_1(TopoDS_Shape.getCPtr(S), S, ToFind.swigValue(), ToAvoid.swigValue()), true); + } + + public TopExp_Explorer(TopoDS_Shape S, TopAbs_ShapeEnum ToFind) { + this(OccJavaJNI.new_TopExp_Explorer__SWIG_2(TopoDS_Shape.getCPtr(S), S, ToFind.swigValue()), true); + } + + public void init(TopoDS_Shape S, TopAbs_ShapeEnum ToFind, TopAbs_ShapeEnum ToAvoid) { + OccJavaJNI.TopExp_Explorer_init__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, ToFind.swigValue(), ToAvoid.swigValue()); + } + + public void init(TopoDS_Shape S, TopAbs_ShapeEnum ToFind) { + OccJavaJNI.TopExp_Explorer_init__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, ToFind.swigValue()); + } + + public boolean more() { + return OccJavaJNI.TopExp_Explorer_more(swigCPtr, this); +} + + public void next() { + OccJavaJNI.TopExp_Explorer_next(swigCPtr, this); + } + + public TopoDS_Shape current() { + long cPtr = OccJavaJNI.TopExp_Explorer_current(swigCPtr, this); + return (TopoDS_Shape)TopoDS_Shape.create(cPtr); +} + +}