]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src/BRepAlgoAPI.i
PipeRun reverse action
[simantics/3d.git] / org.jcae.opencascade / src / BRepAlgoAPI.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 2005, by EADS CRC
19  */
20
21 %{#include <BRepAlgoAPI_BooleanOperation.hxx>%}
22 %{#include <BRepAlgoAPI_Fuse.hxx>%}
23 %{#include <BRepAlgoAPI_Common.hxx>%}
24 %{#include <BRepAlgoAPI_Cut.hxx>%}
25 %{#include <BRepAlgoAPI_Section.hxx>%}
26
27 class BRepAlgoAPI_BooleanOperation: public BRepBuilderAPI_MakeShape
28 {
29         %rename(modified) Modified;
30         %rename(isDeleted) IsDeleted;
31         %rename(modified) Modified;
32         %rename(generated) Generated;
33         %rename(hasModified) HasModified;
34         %rename(hasGenerated) HasGenerated;
35         %rename(hasDeleted) HasDeleted;
36         BRepAlgoAPI_BooleanOperation()=0;
37         public:
38         virtual const TopTools_ListOfShape& Modified(const TopoDS_Shape& aS) ;
39         virtual Standard_Boolean IsDeleted(const TopoDS_Shape& aS) ;
40         //virtual const TopTools_ListOfShape& Modified2(const TopoDS_Shape& aS) ;
41         virtual const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
42         virtual Standard_Boolean HasModified() const;
43         virtual Standard_Boolean HasGenerated() const;
44         virtual Standard_Boolean HasDeleted() const;
45 };
46
47 class BRepAlgoAPI_Fuse: public BRepAlgoAPI_BooleanOperation
48 {
49         public:
50         BRepAlgoAPI_Fuse(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
51 };
52
53 class BRepAlgoAPI_Common: public BRepAlgoAPI_BooleanOperation
54 {
55         public:
56         BRepAlgoAPI_Common(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
57 };
58
59 class BRepAlgoAPI_Cut: public BRepAlgoAPI_BooleanOperation
60 {
61         public:
62         BRepAlgoAPI_Cut(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
63 };
64
65 class BRepAlgoAPI_Section: public BRepAlgoAPI_BooleanOperation
66 {
67         public:
68         BRepAlgoAPI_Section(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
69 };
70