Salome HOME
Fix regression: storeViewParameters() does not work for OCC view
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_PassKey.cdl
1 --  Copyright (C) 2007-2010  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
23 -- File:        GEOMAlgo_PassKey.cdl
24 -- Created:     Mon Nov 20 12:16:13 2006
25 -- Author:      Peter KURNEV
26 --              <pkv@irinox>
27 --
28 class PassKey from GEOMAlgo 
29
30         ---Purpose: 
31
32 uses
33     Shape from TopoDS, 
34     IndexedMapOfInteger from TColStd, 
35     ListOfInteger from TColStd
36
37 --raises
38
39 is 
40     Create  
41         returns PassKey from GEOMAlgo; 
42     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_PassKey();" 
43      
44     Create(Other:PassKey from GEOMAlgo) 
45         returns PassKey from GEOMAlgo;
46      
47     Assign(me:out;  
48             Other : PassKey from GEOMAlgo) 
49         returns PassKey from GEOMAlgo; 
50     ---C++: alias operator =
51     ---C++: return & 
52              
53     Clear(me:out);
54 --    
55     SetIds(me:out; 
56             aI1  :Integer from Standard); 
57              
58     SetIds(me:out; 
59             aI1 :Integer from Standard; 
60             aI2 :Integer from Standard);  
61              
62     SetIds(me:out; 
63             aI1 :Integer from Standard;    
64             aI2 :Integer from Standard;    
65             aI3 :Integer from Standard);  
66
67     SetIds(me:out; 
68             aI1 :Integer from Standard;    
69             aI2 :Integer from Standard;    
70             aI3 :Integer from Standard;    
71             aI4 :Integer from Standard); 
72      
73     SetIds(me:out;  
74             aLS  :ListOfInteger from TColStd);   
75
76     NbIds(me) 
77         returns Integer  from Standard; 
78      
79     IsEqual(me; 
80             aOther:PassKey from GEOMAlgo) 
81         returns Boolean from Standard;                       
82          
83     HashCode(me; 
84             Upper : Integer  from Standard)  
85         returns Integer from Standard;           
86      
87     Id(me; 
88             aIndex: Integer  from Standard)  
89         returns  Integer from Standard;
90         
91
92     Dump(me; 
93         aHex:Integer from Standard=0);  
94      
95         
96 fields 
97     myNbIds: Integer from Standard is protected;  
98     mySum  : Integer from Standard is protected;  
99     myMap  : IndexedMapOfInteger from TColStd is protected; 
100
101 end PassKey;