Salome HOME
b7a60b138b2eda6fe2a8fc95b1275c204cd3263f
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_PassKeyShape.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_PassKeyShape.cdl
23 -- Created:     
24 -- Author:      Peter KURNEV
25 --              <pkv@irinox>
26 --
27 class PassKeyShape from GEOMAlgo 
28    
29         ---Purpose: 
30
31 uses
32     Shape from TopoDS, 
33     ListOfShape from TopTools,   
34     IndexedMapOfShape from TopTools 
35      
36 --raises
37
38 is 
39     Create  
40         returns PassKeyShape from GEOMAlgo; 
41      ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_PassKeyShape();" 
42      
43     Create(Other:PassKeyShape from GEOMAlgo) 
44         returns PassKeyShape from GEOMAlgo;
45      
46     Assign(me:out;  
47             Other : PassKeyShape from GEOMAlgo) 
48         returns PassKeyShape from GEOMAlgo; 
49     ---C++: alias operator =
50     ---C++: return &  
51      
52     SetShapes(me:out; 
53             aS  :Shape from TopoDS); 
54             
55     SetShapes(me:out; 
56             aS1  :Shape from TopoDS; 
57             aS2  :Shape from TopoDS); 
58      
59     SetShapes(me:out; 
60             aS1  :Shape from TopoDS; 
61             aS2  :Shape from TopoDS; 
62             aS3  :Shape from TopoDS); 
63  
64     SetShapes(me:out;  
65             aS1  :Shape from TopoDS; 
66             aS2  :Shape from TopoDS; 
67             aS3  :Shape from TopoDS;
68             aS4  :Shape from TopoDS);
69  
70     SetShapes(me:out;  
71             aLS  :ListOfShape from TopTools); 
72          
73     Clear(me:out); 
74      
75
76     NbIds(me) 
77         returns Integer  from Standard; 
78      
79     IsEqual(me; 
80             aOther:PassKeyShape from GEOMAlgo) 
81         returns Boolean from Standard;                       
82          
83     HashCode(me; 
84             Upper : Integer  from Standard)  
85         returns Integer from Standard;           
86      
87     Dump(me; 
88         aHex:Integer from Standard=0);  
89         
90 fields 
91     myNbIds:Integer from Standard is protected;    
92     mySum  :Integer from Standard is protected;    
93     myUpper:Integer from Standard is protected;    
94     myMap  :IndexedMapOfShape from TopTools is protected;        
95
96 end PassKeyShape;