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