Salome HOME
NPAL15298: KindOfShape(). A tool by PKV.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeInfoFiller.cdl
1 -- File:        GEOMAlgo_ShapeInfoFiller.cdl
2 -- Created:     Mon Apr  2 15:05:34 2007
3 -- Author:      Peter KURNEV
4 --              <pkv@irinox>
5 ---Copyright:    Matra Datavision 2007
6
7
8 class ShapeInfoFiller from GEOMAlgo 
9     inherits Algo from GEOMAlgo 
10      
11         ---Purpose: 
12
13 uses  
14     Pln      from gp, 
15     Sphere   from gp,
16     Cylinder from gp, 
17     Cone     from gp, 
18     Torus    from gp, 
19     
20     Shape from TopoDS, 
21     Face  from TopoDS,
22     Solid from TopoDS, 
23      
24     ShapeInfo from GEOMAlgo, 
25     KindOfName from GEOMAlgo, 
26     IndexedDataMapOfShapeShapeInfo from GEOMAlgo
27
28 --raises
29
30 is  
31    
32     Create 
33         returns ShapeInfoFiller from GEOMAlgo;   
34     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_ShapeInfoFiller();"   
35     
36     SetShape(me:out; 
37             aS:Shape from TopoDS); 
38
39     Shape(me) 
40         returns Shape from TopoDS; 
41     ---C++:return const &  
42      
43     SetTolerance(me:out; 
44             aT:Real from Standard);   
45          
46     Tolerance(me) 
47         returns Real from Standard;      
48      
49     Info(me) 
50         returns ShapeInfo from GEOMAlgo; 
51     ---C++:return const & 
52
53     Info(me; 
54             aS:Shape from TopoDS) 
55         returns ShapeInfo from GEOMAlgo; 
56     ---C++:return const & 
57      
58     Perform(me:out)  
59         is redefined;      
60
61     CheckData(me:out) 
62         is redefined protected;  
63          
64     FillNbSubShapes(me:out; 
65             aS:Shape from TopoDS; 
66             aInfo: out ShapeInfo from GEOMAlgo) 
67         is protected; 
68          
69     FillSubShapes(me:out; 
70             aS:Shape from TopoDS) 
71         is protected; 
72          
73     FillShape(me:out; 
74             aS:Shape from TopoDS) 
75         is protected; 
76          
77     FillVertex(me:out; 
78             aS:Shape from TopoDS) 
79         is protected; 
80      
81     FillEdge(me:out; 
82         aS:Shape from TopoDS) 
83         is protected; 
84   
85     FillFace(me:out; 
86         aS:Shape from TopoDS) 
87         is protected; 
88          
89     FillSolid(me:out; 
90         aS:Shape from TopoDS) 
91         is protected; 
92      
93     FillContainer(me:out; 
94         aS:Shape from TopoDS) 
95         is protected; 
96
97
98     FillDetails(me:out; 
99             aF:Face from TopoDS; 
100             aPln:Pln from  gp) 
101         is protected; 
102          
103     FillDetails(me:out; 
104             aF:Face from TopoDS; 
105             aSph:Sphere from gp) 
106         is protected;  
107      
108     FillDetails(me:out; 
109             aF:Face from TopoDS; 
110             aCyl:Cylinder from gp) 
111         is protected; 
112          
113     FillDetails(me:out; 
114             aF:Face from TopoDS; 
115             aCone:Cone from gp) 
116         is protected;  
117          
118     FillDetails(me:out; 
119             aF:Face from TopoDS; 
120             aTorus:Torus from gp) 
121         is protected;  
122
123     FillDetails(me:out; 
124             aS:Solid from TopoDS) 
125         is protected;    
126         
127 fields
128     myShape     : Shape from TopoDS is protected;  
129     myEmptyInfo : ShapeInfo from GEOMAlgo is protected;  
130     myMapInfo   : IndexedDataMapOfShapeShapeInfo from GEOMAlgo is protected; 
131     myTolerance : Real from Standard is protected;
132 end ShapeInfoFiller;