]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src/ShapeUpgrade.i
PipeRun reverse action
[simantics/3d.git] / org.jcae.opencascade / src / ShapeUpgrade.i
1 /*
2  * Project Info:  http://jcae.sourceforge.net
3  * 
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 2.1 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17  *
18  * (C) Copyright 2007, by EADS France
19  */
20
21 %{ #include <ShapeUpgrade_RemoveInternalWires.hxx> %}
22 %{ #include <ShapeUpgrade_Tool.hxx> %}
23 %{ #include <ShapeUpgrade_ShapeDivideArea.hxx> %}
24 class ShapeUpgrade_Tool
25 {
26         ShapeUpgrade_Tool()=0;
27 };
28
29 class ShapeUpgrade_RemoveInternalWires : public ShapeUpgrade_Tool
30 {
31         public:
32         %rename(perform) Perform;
33         %rename(getResult) GetResult;
34         ShapeUpgrade_RemoveInternalWires(const TopoDS_Shape& theShape);
35         Standard_Boolean Perform() ;
36         TopoDS_Shape GetResult() const; 
37 };
38
39 %extend ShapeUpgrade_RemoveInternalWires
40 {
41         void setMinArea(double d)
42         {
43                 self->MinArea()=d;
44         }
45
46         double getMinArea()
47         {
48                 return self->MinArea();
49         }
50
51         void setRemoveFaceMode(Standard_Boolean b)
52         {
53                 self->RemoveFaceMode()=b;
54         }
55         
56         Standard_Boolean getRemoveFaceMode()
57         {
58                 return self->RemoveFaceMode();
59         }
60 };
61
62 class ShapeUpgrade_ShapeDivide
63 {
64         public:
65         %rename(getResult) Result;
66         %rename(perform) Perform;
67         TopoDS_Shape Result() const;
68         Standard_Boolean Perform(const Standard_Boolean newContext = Standard_True) ;
69 };
70
71 class ShapeUpgrade_ShapeDivideArea : public ShapeUpgrade_ShapeDivide
72 {
73         public:
74         ShapeUpgrade_ShapeDivideArea(const TopoDS_Shape& S);  
75 };
76
77 %extend ShapeUpgrade_ShapeDivideArea
78 {
79         void setMaxArea(double d)
80         {
81                 self->MaxArea()=d;
82         }
83
84         double getMaxArea()
85         {
86                 return self->MaxArea();
87         }
88 };
89