]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTDS/NMTDS_ShapesDataStructure.cdl
Salome HOME
IPAL22903: TC650: Store/Restore last GUI state does not work for Isos
[modules/geom.git] / src / NMTDS / NMTDS_ShapesDataStructure.cdl
1 -- Copyright (C) 2007-2012  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:       NMTDS_ShapesDataStructure.cdl
24 --  Created:    
25 --  Author:     Peter KURNEV
26 --
27 class ShapesDataStructure from NMTDS  
28     inherits ShapesDataStructure from BooleanOperations  
29
30         ---Purpose: 
31
32 uses  
33     Box from Bnd,
34     IndexedMapOfInteger from TColStd,
35     Shape from TopoDS, 
36     IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations,
37     CArray1OfIndexRange from NMTDS,  
38     --modified by NIZNHY-PKV Mon Dec 12 08:57:18 2011f  
39     DataMapOfShapeInteger from TopTools 
40     --IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger from NMTDS  
41     --modified by NIZNHY-PKV Mon Dec 12 08:57:22 2011t
42 --raises
43
44 is 
45     Create 
46         returns ShapesDataStructure from NMTDS; 
47          
48     SetCompositeShape(me:out; 
49             aS:Shape from TopoDS);   
50          
51     Init(me:out);
52      
53     Ranges(me) 
54         returns CArray1OfIndexRange from NMTDS; 
55     ---C++: return const & 
56      
57     CompositeShape(me) 
58         returns Shape from TopoDS; 
59     ---C++: return const &  
60      
61     ShapeRangeIndex(me; 
62         aId:Integer from Standard) 
63         returns  Integer from Standard;
64      
65     Rank (me; 
66           anIndex:Integer from Standard) 
67           returns Integer from Standard    
68         is redefined;                   
69          
70     ShapeIndex  (me;  
71             aS:Shape from TopoDS; 
72             iRank:Integer from Standard) 
73         returns Integer from Standard  
74         is redefined;   
75
76     FillMap (me;  
77             aS  :Shape from TopoDS; 
78             aMSA: out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations;  
79             aMS : out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations);  
80      
81     FillSubshapes (me;  
82             aS  :Shape from TopoDS; 
83             aMSA:out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations;  
84             aMS :out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations); 
85
86     GetAllSuccessors(me; 
87         anIndex:Integer from Standard; 
88         aScrs  :out IndexedMapOfInteger from TColStd);   
89
90     ComputeBoxEx(me; 
91         anIndex:Integer from Standard; 
92         aBox:out Box from Bnd);   
93
94 fields
95     myCompositeShape:  Shape from TopoDS is protected; 
96     myRanges        :  CArray1OfIndexRange from NMTDS is protected;  
97     --modified by NIZNHY-PKV Mon Dec 12 08:58:07 2011f 
98     myShapeIndexMap : DataMapOfShapeInteger from TopTools is protected;  
99     --myShapeIndexMap :  IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger from NMTDS is protected;  
100     --modified by NIZNHY-PKV Mon Dec 12 08:58:21 2011t 
101 end ShapesDataStructure;
102