2 * Project Info: http://jcae.sourceforge.net
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)
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
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.
18 * (C) Copyright 2007, by EADS France
21 %{ #include <ShapeUpgrade_RemoveInternalWires.hxx> %}
22 %{ #include <ShapeUpgrade_Tool.hxx> %}
23 %{ #include <ShapeUpgrade_ShapeDivideArea.hxx> %}
24 class ShapeUpgrade_Tool
26 ShapeUpgrade_Tool()=0;
29 class ShapeUpgrade_RemoveInternalWires : public ShapeUpgrade_Tool
32 %rename(perform) Perform;
33 %rename(getResult) GetResult;
34 ShapeUpgrade_RemoveInternalWires(const TopoDS_Shape& theShape);
35 Standard_Boolean Perform() ;
36 TopoDS_Shape GetResult() const;
39 %extend ShapeUpgrade_RemoveInternalWires
41 void setMinArea(double d)
48 return self->MinArea();
51 void setRemoveFaceMode(Standard_Boolean b)
53 self->RemoveFaceMode()=b;
56 Standard_Boolean getRemoveFaceMode()
58 return self->RemoveFaceMode();
62 class ShapeUpgrade_ShapeDivide
65 %rename(getResult) Result;
66 %rename(perform) Perform;
67 TopoDS_Shape Result() const;
68 Standard_Boolean Perform(const Standard_Boolean newContext = Standard_True) ;
71 class ShapeUpgrade_ShapeDivideArea : public ShapeUpgrade_ShapeDivide
74 ShapeUpgrade_ShapeDivideArea(const TopoDS_Shape& S);
77 %extend ShapeUpgrade_ShapeDivideArea
79 void setMaxArea(double d)
86 return self->MaxArea();