Salome HOME
aa149f7a5b9b9de1fa6fe949eb22d4eaad75fe0d
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Splitter1.cdl
1 --  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 --
3 --  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 --  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 --
6 --  This library is free software; you can redistribute it and/or
7 --  modify it under the terms of the GNU Lesser General Public
8 --  License as published by the Free Software Foundation; either
9 --  version 2.1 of the License.
10 --
11 --  This library is distributed in the hope that it will be useful,
12 --  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 --  Lesser General Public License for more details.
15 --
16 --  You should have received a copy of the GNU Lesser General Public
17 --  License along with this library; if not, write to the Free Software
18 --  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 --
20 --  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 --
22 -- File:        NMTAlgo_Splitter1.cdl
23 -- Created:     Wed Feb 11 14:23:25 2004
24 -- Author:      Peter KURNEV
25 --              <pkv@irinox>
26
27
28 class Splitter1 from NMTAlgo  
29     inherits Splitter from NMTAlgo 
30
31         ---Purpose: 
32
33 uses
34     ShapeEnum from TopAbs,  
35     Shape from TopoDS,
36     DataMapOfShapeInteger from TopTools
37
38 --raises
39
40 is
41     Create 
42         returns Splitter1 from NMTAlgo;  
43     ---C++: alias "Standard_EXPORT virtual ~NMTAlgo_Splitter1();"  
44      
45     Clear (me:out) 
46         is redefined; 
47      
48     AddShape (me:out;  
49             aS : Shape from TopoDS) 
50         is redefined; 
51          
52      
53     AddTool(me:out;  
54             aS : Shape from TopoDS) 
55         is redefined; 
56         
57          
58     SetMaterial (me:out;  
59         aS : Shape from TopoDS; 
60         aM : Integer from Standard=0);  
61      
62     SetRemoveWebs(me:out; 
63         bFlag:Boolean from Standard); 
64          
65     RemoveWebs(me) 
66         returns  Boolean from Standard; 
67          
68     GetMaterialTable(me) 
69         returns DataMapOfShapeInteger from TopTools; 
70     ---C++:  return const &      
71      
72     Build (me:out; 
73         Limit:ShapeEnum from TopAbs=TopAbs_SHAPE) 
74         is redefined; 
75
76     --  protected block   
77     TreatSolids (me:out) 
78         is protected; 
79      
80     TreatWebs (me:out) 
81         is protected; 
82
83     RestParts (me:out) 
84         is protected; 
85         
86     
87 fields 
88     myRemoveWebs :  Boolean from Standard is protected;   
89     myMapSWM     :  DataMapOfShapeInteger from TopTools is protected;
90     myMapSWMOut  :  DataMapOfShapeInteger from TopTools is protected;
91     myRestParts  :  Shape from TopoDS is protected; 
92     
93 end Splitter1;