Salome HOME
sources v1.2
[modules/smesh.git] / src / SMESHDS / SMESHDS_SubMesh.cdl
1 --  SMESH SMESHDS : management of mesh data and SMESH document
2 --
3 --  Copyright (C) 2003  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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 --
22 --
23 --
24 --  File   : SMESHDS_SubMesh.cdl
25 --  Author : Yves FRICAUD, OCC
26 --  Module : SMESH
27
28 class SubMesh from SMESHDS inherits TShared from MMgt
29
30 uses 
31         Mesh              from SMDS,
32         MeshElement       from SMDS,
33         MeshNode          from SMDS,
34         ListOfInteger     from TColStd, 
35         MapOfMeshElement  from SMDS     
36
37 is
38
39         Create (M : Mesh from SMDS) returns mutable SubMesh from SMESHDS;
40         
41         -- Build
42
43         AddElement   (me : mutable; ME : MeshElement from SMDS);
44
45         RemoveElement    (me: mutable; ME : MeshElement from SMDS);
46
47         AddNode    (me : mutable; ME : MeshNode from SMDS);
48
49         RemoveNode (me: mutable; ME : MeshNode from SMDS);
50
51         
52         -- Querry
53
54         NbElements (me: mutable) returns Integer from Standard;
55
56         GetElements (me: mutable ) returns MapOfMeshElement from SMDS;
57         ---C++ : return const &
58
59         GetIDElements (me: mutable) returns ListOfInteger from TColStd;
60         ---C++ : return const &
61
62         NbNodes (me: mutable) returns Integer from Standard;
63
64         GetNodes (me: mutable ) returns MapOfMeshElement from SMDS;
65         ---C++ : return const &
66
67         GetIDNodes (me: mutable) returns ListOfInteger from TColStd;
68         ---C++ : return const &
69
70 fields
71
72         myMesh                  : Mesh              from SMDS;
73         myElements              : MapOfMeshElement  from SMDS;
74         myNodes                 : MapOfMeshElement  from SMDS;
75
76         myListOfEltIDIsUpdate   : Boolean           from Standard;
77         myListOfEltID           : ListOfInteger     from TColStd;
78
79         myListOfNodeIDIsUpdate  : Boolean           from Standard;
80         myListOfNodeID          : ListOfInteger     from TColStd;
81         
82
83 end SubMesh;