Salome HOME
Merge from V5_1_main 14/05/2010
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeInfoFiller.cdl
1 --  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
2 --
3 --  This library is free software; you can redistribute it and/or
4 --  modify it under the terms of the GNU Lesser General Public
5 --  License as published by the Free Software Foundation; either
6 --  version 2.1 of the License.
7 --
8 --  This library is distributed in the hope that it will be useful,
9 --  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 --  Lesser General Public License for more details.
12 --
13 --  You should have received a copy of the GNU Lesser General Public
14 --  License along with this library; if not, write to the Free Software
15 --  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 --
17 --  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 --
19
20 --  File:       GEOMAlgo_ShapeInfoFiller.cdl
21 --  Created:    Mon Apr  2 15:05:34 2007
22 --  Author:     Peter KURNEV
23 --
24 class ShapeInfoFiller from GEOMAlgo 
25     inherits Algo from GEOMAlgo 
26      
27         ---Purpose: 
28
29 uses  
30     Pln      from gp, 
31     Sphere   from gp,
32     Cylinder from gp, 
33     Cone     from gp, 
34     Torus    from gp, 
35     
36     Shape from TopoDS, 
37     Face  from TopoDS,
38     Solid from TopoDS, 
39      
40     ShapeInfo from GEOMAlgo, 
41     KindOfName from GEOMAlgo, 
42     IndexedDataMapOfShapeShapeInfo from GEOMAlgo
43
44 --raises
45
46 is  
47    
48     Create 
49         returns ShapeInfoFiller from GEOMAlgo;   
50     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_ShapeInfoFiller();"   
51     
52     SetShape(me:out; 
53             aS:Shape from TopoDS); 
54
55     Shape(me) 
56         returns Shape from TopoDS; 
57     ---C++:return const &  
58      
59     SetTolerance(me:out; 
60             aT:Real from Standard);   
61          
62     Tolerance(me) 
63         returns Real from Standard;      
64      
65     Info(me) 
66         returns ShapeInfo from GEOMAlgo; 
67     ---C++:return const & 
68
69     Info(me; 
70             aS:Shape from TopoDS) 
71         returns ShapeInfo from GEOMAlgo; 
72     ---C++:return const & 
73      
74     Perform(me:out)  
75         is redefined;      
76
77     CheckData(me:out) 
78         is redefined protected;  
79          
80     FillNbSubShapes(me:out; 
81             aS:Shape from TopoDS; 
82             aInfo: out ShapeInfo from GEOMAlgo) 
83         is protected; 
84          
85     FillSubShapes(me:out; 
86             aS:Shape from TopoDS) 
87         is protected; 
88          
89     FillShape(me:out; 
90             aS:Shape from TopoDS) 
91         is protected; 
92          
93     FillVertex(me:out; 
94             aS:Shape from TopoDS) 
95         is protected; 
96      
97     FillEdge(me:out; 
98         aS:Shape from TopoDS) 
99         is protected; 
100   
101     FillFace(me:out; 
102         aS:Shape from TopoDS) 
103         is protected; 
104          
105     FillSolid(me:out; 
106         aS:Shape from TopoDS) 
107         is protected; 
108      
109     FillContainer(me:out; 
110         aS:Shape from TopoDS) 
111         is protected; 
112
113
114     FillDetails(me:out; 
115             aF:Face from TopoDS; 
116             aPln:Pln from  gp) 
117         is protected; 
118          
119     FillDetails(me:out; 
120             aF:Face from TopoDS; 
121             aSph:Sphere from gp) 
122         is protected;  
123      
124     FillDetails(me:out; 
125             aF:Face from TopoDS; 
126             aCyl:Cylinder from gp) 
127         is protected; 
128          
129     FillDetails(me:out; 
130             aF:Face from TopoDS; 
131             aCone:Cone from gp) 
132         is protected;  
133          
134     FillDetails(me:out; 
135             aF:Face from TopoDS; 
136             aTorus:Torus from gp) 
137         is protected;  
138
139     FillDetails(me:out; 
140             aS:Solid from TopoDS) 
141         is protected;    
142         
143 fields
144     myShape     : Shape from TopoDS is protected;  
145     myEmptyInfo : ShapeInfo from GEOMAlgo is protected;  
146     myMapInfo   : IndexedDataMapOfShapeShapeInfo from GEOMAlgo is protected; 
147     myTolerance : Real from Standard is protected;
148 end ShapeInfoFiller;