]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTDS/NMTDS_ShapesDataStructure.cdl
Salome HOME
*** empty log message ***
[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
25 class ShapesDataStructure from NMTDS  
26     inherits ShapesDataStructure from BooleanOperations  
27
28         ---Purpose: 
29
30 uses
31     Shape from TopoDS,  
32     IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations,
33     CArray1OfIndexRange from NMTDS, 
34     IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger from NMTDS
35 --raises
36
37 is 
38     Create 
39         returns ShapesDataStructure from NMTDS; 
40          
41     SetCompositeShape(me:out; 
42             aS:Shape from TopoDS);   
43          
44     Init(me:out);
45      
46     Ranges(me) 
47         returns CArray1OfIndexRange from NMTDS; 
48     ---C++: return const & 
49      
50     CompositeShape(me) 
51         returns Shape from TopoDS; 
52     ---C++: return const &  
53      
54     ShapeRangeIndex(me; 
55         aId:Integer from Standard) 
56         returns  Integer from Standard;
57      
58     Rank (me; 
59           anIndex:Integer from Standard) 
60           returns Integer from Standard    
61         is redefined;                   
62          
63     ShapeIndex  (me;  
64             aS:Shape from TopoDS; 
65             iRank:Integer from Standard) 
66         returns Integer from Standard  
67         is redefined;   
68
69 -- Modified to Add new methods Thu Sep 14 14:35:18 2006 
70 -- Contribution of Samtech www.samcef.com BEGIN 
71     FillMap (me;  
72             aS  :Shape from TopoDS; 
73             aMSA: out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations;  
74             aMS : out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations);  
75      
76     FillSubshapes (me;  
77             aS  :Shape from TopoDS; 
78             aMSA:out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations;  
79             aMS :out IndexedDataMapOfShapeAncestorsSuccessors from BooleanOperations); 
80 -- Contribution of Samtech www.samcef.com END 
81
82 fields
83     myCompositeShape:  Shape from TopoDS is protected; 
84     myRanges        :  CArray1OfIndexRange from NMTDS is protected; 
85     myShapeIndexMap :  IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger from NMTDS is protected;  
86      
87 end ShapesDataStructure;
88