Salome HOME
Update from BR_V5_DEV 13Feb2009
[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
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;