/* ---------------------------------------------------------------------------- * 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 BRepTools_WireExplorer { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected BRepTools_WireExplorer(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(BRepTools_WireExplorer obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_BRepTools_WireExplorer(swigCPtr); } swigCPtr = 0; } } public BRepTools_WireExplorer() { this(OccJavaJNI.new_BRepTools_WireExplorer__SWIG_0(), true); } public BRepTools_WireExplorer(TopoDS_Wire W) { this(OccJavaJNI.new_BRepTools_WireExplorer__SWIG_1(TopoDS_Wire.getCPtr(W), W), true); } public BRepTools_WireExplorer(TopoDS_Wire W, TopoDS_Face F) { this(OccJavaJNI.new_BRepTools_WireExplorer__SWIG_2(TopoDS_Wire.getCPtr(W), W, TopoDS_Face.getCPtr(F), F), true); } public void init(TopoDS_Wire W) { OccJavaJNI.BRepTools_WireExplorer_init__SWIG_0(swigCPtr, this, TopoDS_Wire.getCPtr(W), W); } public void init(TopoDS_Wire W, TopoDS_Face F) { OccJavaJNI.BRepTools_WireExplorer_init__SWIG_1(swigCPtr, this, TopoDS_Wire.getCPtr(W), W, TopoDS_Face.getCPtr(F), F); } public boolean more() { return OccJavaJNI.BRepTools_WireExplorer_more(swigCPtr, this); } public void next() { OccJavaJNI.BRepTools_WireExplorer_next(swigCPtr, this); } public TopoDS_Edge current() { return new TopoDS_Edge(OccJavaJNI.BRepTools_WireExplorer_current(swigCPtr, this), false); } public TopAbs_Orientation orientation() { return TopAbs_Orientation.swigToEnum(OccJavaJNI.BRepTools_WireExplorer_orientation(swigCPtr, this)); } public TopoDS_Vertex currentVertex() { return new TopoDS_Vertex(OccJavaJNI.BRepTools_WireExplorer_currentVertex(swigCPtr, this), false); } public void clear() { OccJavaJNI.BRepTools_WireExplorer_clear(swigCPtr, this); } }