/* ---------------------------------------------------------------------------- * 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); } }