Salome HOME
Update from BR_V5_DEV 13Feb2009
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeInfoFiller.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:       GEOMAlgo_ShapeInfoFiller.cdl
23 --  Created:    Mon Apr  2 15:05:34 2007
24 --  Author:     Peter KURNEV
25 --
26 class ShapeInfoFiller from GEOMAlgo 
27     inherits Algo from GEOMAlgo 
28      
29         ---Purpose: 
30
31 uses  
32     Pln      from gp, 
33     Sphere   from gp,
34     Cylinder from gp, 
35     Cone     from gp, 
36     Torus    from gp, 
37     
38     Shape from TopoDS, 
39     Face  from TopoDS,
40     Solid from TopoDS, 
41      
42     ShapeInfo from GEOMAlgo, 
43     KindOfName from GEOMAlgo, 
44     IndexedDataMapOfShapeShapeInfo from GEOMAlgo
45
46 --raises
47
48 is  
49    
50     Create 
51         returns ShapeInfoFiller from GEOMAlgo;   
52     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_ShapeInfoFiller();"   
53     
54     SetShape(me:out; 
55             aS:Shape from TopoDS); 
56
57     Shape(me) 
58         returns Shape from TopoDS; 
59     ---C++:return const &  
60      
61     SetTolerance(me:out; 
62             aT:Real from Standard);   
63          
64     Tolerance(me) 
65         returns Real from Standard;      
66      
67     Info(me) 
68         returns ShapeInfo from GEOMAlgo; 
69     ---C++:return const & 
70
71     Info(me; 
72             aS:Shape from TopoDS) 
73         returns ShapeInfo from GEOMAlgo; 
74     ---C++:return const & 
75      
76     Perform(me:out)  
77         is redefined;      
78
79     CheckData(me:out) 
80         is redefined protected;  
81          
82     FillNbSubShapes(me:out; 
83             aS:Shape from TopoDS; 
84             aInfo: out ShapeInfo from GEOMAlgo) 
85         is protected; 
86          
87     FillSubShapes(me:out; 
88             aS:Shape from TopoDS) 
89         is protected; 
90          
91     FillShape(me:out; 
92             aS:Shape from TopoDS) 
93         is protected; 
94          
95     FillVertex(me:out; 
96             aS:Shape from TopoDS) 
97         is protected; 
98      
99     FillEdge(me:out; 
100         aS:Shape from TopoDS) 
101         is protected; 
102   
103     FillFace(me:out; 
104         aS:Shape from TopoDS) 
105         is protected; 
106          
107     FillSolid(me:out; 
108         aS:Shape from TopoDS) 
109         is protected; 
110      
111     FillContainer(me:out; 
112         aS:Shape from TopoDS) 
113         is protected; 
114
115
116     FillDetails(me:out; 
117             aF:Face from TopoDS; 
118             aPln:Pln from  gp) 
119         is protected; 
120          
121     FillDetails(me:out; 
122             aF:Face from TopoDS; 
123             aSph:Sphere from gp) 
124         is protected;  
125      
126     FillDetails(me:out; 
127             aF:Face from TopoDS; 
128             aCyl:Cylinder from gp) 
129         is protected; 
130          
131     FillDetails(me:out; 
132             aF:Face from TopoDS; 
133             aCone:Cone from gp) 
134         is protected;  
135          
136     FillDetails(me:out; 
137             aF:Face from TopoDS; 
138             aTorus:Torus from gp) 
139         is protected;  
140
141     FillDetails(me:out; 
142             aS:Solid from TopoDS) 
143         is protected;    
144         
145 fields
146     myShape     : Shape from TopoDS is protected;  
147     myEmptyInfo : ShapeInfo from GEOMAlgo is protected;  
148     myMapInfo   : IndexedDataMapOfShapeShapeInfo from GEOMAlgo is protected; 
149     myTolerance : Real from Standard is protected;
150 end ShapeInfoFiller;