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