]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/ShapeBuild_ReShape.java
a3754c68fc5db8c1d24f5ae42836660cc223499d
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / ShapeBuild_ReShape.java
1 /* ----------------------------------------------------------------------------\r
2  * This file was automatically generated by SWIG (http://www.swig.org).\r
3  * Version 2.0.4\r
4  *\r
5  * Do not make changes to this file unless you know what you are doing--modify\r
6  * the SWIG interface file instead.\r
7  * ----------------------------------------------------------------------------- */\r
8 \r
9 package org.jcae.opencascade.jni;\r
10 \r
11 public class ShapeBuild_ReShape {\r
12   private long swigCPtr;\r
13   protected boolean swigCMemOwn;\r
14 \r
15   public ShapeBuild_ReShape(long cPtr, boolean cMemoryOwn) {\r
16     swigCMemOwn = cMemoryOwn;\r
17     swigCPtr = cPtr;\r
18   }\r
19 \r
20   public static long getCPtr(ShapeBuild_ReShape obj) {\r
21     return (obj == null) ? 0 : obj.swigCPtr;\r
22   }\r
23 \r
24   protected void finalize() {\r
25     delete();\r
26   }\r
27 \r
28   public synchronized void delete() {\r
29     if (swigCPtr != 0) {\r
30       if (swigCMemOwn) {\r
31         swigCMemOwn = false;\r
32         OccJavaJNI.delete_ShapeBuild_ReShape(swigCPtr);\r
33       }\r
34       swigCPtr = 0;\r
35     }\r
36   }\r
37 \r
38   public ShapeBuild_ReShape() {\r
39     this(OccJavaJNI.new_ShapeBuild_ReShape(), true);\r
40   }\r
41 \r
42   public void replace(TopoDS_Shape shape, TopoDS_Shape newshape, boolean oriented) {\r
43     OccJavaJNI.ShapeBuild_ReShape_replace__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, TopoDS_Shape.getCPtr(newshape), newshape, oriented);\r
44   }\r
45 \r
46   public void replace(TopoDS_Shape shape, TopoDS_Shape newshape) {\r
47     OccJavaJNI.ShapeBuild_ReShape_replace__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, TopoDS_Shape.getCPtr(newshape), newshape);\r
48   }\r
49 \r
50   public TopoDS_Shape apply(TopoDS_Shape shape, TopAbs_ShapeEnum until) {\r
51     long cPtr = OccJavaJNI.ShapeBuild_ReShape_apply__SWIG_0(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape, until.swigValue());\r
52     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
53 }\r
54 \r
55   public TopoDS_Shape apply(TopoDS_Shape shape) {\r
56     long cPtr = OccJavaJNI.ShapeBuild_ReShape_apply__SWIG_1(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
57     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
58 }\r
59 \r
60 }\r