Salome HOME
Merge from BR_Dev_For_4_0 branch (from tag mergeto_BR_QT4_Dev_17Jan08)
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_BuilderShape.cdl
1 -- Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 -- 
4 -- This library is free software; you can redistribute it and/or
5 -- modify it under the terms of the GNU Lesser General Public
6 -- License as published by the Free Software Foundation; either 
7 -- version 2.1 of the License.
8 -- 
9 -- This library is distributed in the hope that it will be useful 
10 -- but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 -- Lesser General Public License for more details.
13 --
14 -- You should have received a copy of the GNU Lesser General Public  
15 -- License along with this library; if not, write to the Free Software 
16 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 --
18 -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 -- 
20 -- File:        GEOMAlgo_BuilderShape.cdl
21 -- Created:     
22 -- Author:      Peter KURNEV 
23
24
25
26 deferred class BuilderShape from GEOMAlgo 
27         inherits Algo from GEOMAlgo  
28
29         ---Purpose: Root class for algorithms that has shape as result     
30
31 uses
32     Shape from TopoDS, 
33     ListOfShape from TopTools, 
34     MapOfShape  from TopTools, 
35     IndexedDataMapOfShapeListOfShape from TopTools 
36     
37 --raises
38
39 is 
40     Initialize 
41         ---Purpose: Empty constructor    
42         returns BuilderShape from GEOMAlgo; 
43     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_BuilderShape();" 
44      
45     Shape(me)  
46         ---Purpose:  Returns the result of algorithm
47         returns Shape from TopoDS; 
48     ---C++: return const &       
49     
50
51     ------------------------------------------------------------------
52     --- The following methods are not implemented at this level.
53     --  An empty list is returned.
54     --- They are optional and can be redefined. 
55     ------------------------------------------------------------------
56     Generated (me:out;  
57             theS : Shape from TopoDS)
58         ---Purpose: Returns the list of shapes generated from the
59         --          shape theS. 
60         returns ListOfShape from TopTools
61         is virtual;
62         ---C++: return const & 
63
64     Modified (me:out;  
65             theS : Shape from TopoDS)
66         ---Purpose: Returns the list of shapes modified from the  
67         --          shape theS. 
68         returns ListOfShape from TopTools
69         is virtual;
70         ---C++: return const & 
71
72     IsDeleted (me:out;  
73             theS : Shape from TopoDS) 
74         ---Purpose: Returns true if the shape theS has been deleted.
75         returns Boolean from Standard  
76         is virtual; 
77          
78     HasDeleted (me)  
79         ---Purpose: Returns true if the at least one shape(or subshape) 
80         --          of arguments has been deleted.
81         returns Boolean from Standard;  
82          
83     HasGenerated (me)  
84         ---Purpose: Returns true if the at least one shape(or subshape) 
85         --          of arguments has generated shapes.
86         returns Boolean from Standard;    
87
88     HasModified (me)  
89         ---Purpose: Returns true if the at least one shape(or subshape) 
90         --          of arguments has modified shapes.
91         returns Boolean from Standard;  
92
93     PrepareHistory (me:out) 
94         ---Purpose:  Prepare information for history support  
95         is virtual protected;     
96         
97 --modified by NIZNHY-PKV Thu Dec  7 11:13:17 2006f 
98     ImagesResult(me) 
99          returns IndexedDataMapOfShapeListOfShape from TopTools; 
100     ---C++: return const &  
101 --modified by NIZNHY-PKV Thu Dec  7 11:13:20 2006t
102 fields
103     myShape      : Shape from TopoDS is protected; 
104     -- 
105     myHistShapes   : ListOfShape from TopTools is protected; 
106     myMapShape     : MapOfShape  from TopTools is protected; 
107     myHasDeleted   : Boolean     from Standard is protected; 
108     myHasGenerated : Boolean     from Standard is protected; 
109     myHasModified  : Boolean     from Standard is protected; 
110 --modified by NIZNHY-PKV Thu Dec  7 11:13:10 2006f
111     myImagesResult : IndexedDataMapOfShapeListOfShape from TopTools is protected; 
112 --modified by NIZNHY-PKV Thu Dec  7 11:13:13 2006t
113 end BuilderShape; 
114