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