Salome HOME
8721823bee53c309730f4fc1aa36b1aaf9b4a863
[modules/geom.git] / src / NMTDS / NMTDS_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:       NMTDS_PassKeyShape.cdl
23 --  Created:    
24 --  Author:     Peter KURNEV
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;