Salome HOME
PAL12607: Static objects in Geometry GUI libraries.
[modules/geom.git] / src / NMTDS / NMTDS_ShapesDataStructure.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_ShapesDataStructure.cdl
21 -- Created:     Mon Dec  1 10:17:05 2003
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24 ---Copyright:    Matra Datavision 2003
25
26
27 class ShapesDataStructure from NMTDS  
28     inherits ShapesDataStructure from BooleanOperations  
29
30         ---Purpose: 
31
32 uses
33     Shape from TopoDS, 
34     CArray1OfIndexRange from NMTDS, 
35     IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger from NMTDS
36 --raises
37
38 is 
39     Create 
40         returns ShapesDataStructure from NMTDS; 
41     ---C++: alias "Standard_EXPORT virtual ~NMTDS_ShapesDataStructure();" 
42 --modified by NIZNHY-PKV Wed Feb  2 11:44:38 2005ft 
43
44     SetCompositeShape(me:out; 
45             aS:Shape from TopoDS);   
46          
47     Init(me:out);
48      
49     Ranges(me) 
50         returns CArray1OfIndexRange from NMTDS; 
51     ---C++: return const & 
52      
53     CompositeShape(me) 
54         returns Shape from TopoDS; 
55     ---C++: return const &  
56      
57     ShapeRangeIndex(me; 
58         aId:Integer from Standard) 
59         returns  Integer from Standard;
60      
61     Rank (me; 
62           anIndex:Integer from Standard) 
63           returns Integer from Standard    
64         is redefined;                   
65          
66     ShapeIndex  (me;  
67             aS:Shape from TopoDS; 
68             iRank:Integer from Standard) 
69         returns Integer from Standard  
70         is redefined;                    
71 fields
72     myCompositeShape:  Shape from TopoDS is protected; 
73     myRanges        :  CArray1OfIndexRange from NMTDS is protected; 
74     myShapeIndexMap :  IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger from NMTDS is protected;  
75      
76 end ShapesDataStructure;
77