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