X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FTopoDS_Solid.java;h=17c9510efb8c3010b6099420287ffa1572be29d7;hb=6c85a1331df92384baa03b3968ea6f06459a04ab;hp=efd61a80e56b6ae2ccb43d890204ad9b9b06b573;hpb=1e885c30936c7df2efda5a00bfdc127ee059dee0;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Solid.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Solid.java index efd61a80..17c9510e 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Solid.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopoDS_Solid.java @@ -1,42 +1,42 @@ -/* ---------------------------------------------------------------------------- - * 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_Solid extends TopoDS_Shape { - private long swigCPtr; - - public TopoDS_Solid(long cPtr, boolean cMemoryOwn) { - super(OccJavaJNI.TopoDS_Solid_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - public static long getCPtr(TopoDS_Solid 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_Solid(swigCPtr); - } - swigCPtr = 0; - } - super.delete(); - } - - public TopoDS_Solid() { - this(OccJavaJNI.new_TopoDS_Solid(), true); - } - -} +/* ---------------------------------------------------------------------------- + * 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_Solid extends TopoDS_Shape { + private transient long swigCPtr; + + protected TopoDS_Solid(long cPtr, boolean cMemoryOwn) { + super(OccJavaJNI.TopoDS_Solid_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(TopoDS_Solid 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_Solid(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public TopoDS_Solid() { + this(OccJavaJNI.new_TopoDS_Solid(), true); + } + +}