Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMESH_I / SMESH_subMesh_i.hxx
1 //=============================================================================
2 // File      : SMESH_subMesh_i.hxx
3 // Created   : jeu mai 30 10:01:17 CEST 2002
4 // Author    : Paul RASCLE, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2002
7 // $Header$
8 //=============================================================================
9
10 #ifndef _SMESH_SUBMESH_I_HXX_
11 #define _SMESH_SUBMESH_I_HXX_
12
13 #include <SALOMEconfig.h>
14 #include CORBA_SERVER_HEADER(SMESH_Mesh)
15 #include CORBA_SERVER_HEADER(SMESH_Hypothesis)
16 #include CORBA_CLIENT_HEADER(GEOM_Gen)
17 #include CORBA_CLIENT_HEADER(GEOM_Shape)
18 #include CORBA_CLIENT_HEADER(MED)
19
20 class SMESH_Gen_i;
21 class SMESH_Mesh_i;
22
23 class SMESH_subMesh_i:
24   public POA_SMESH::SMESH_subMesh
25 {
26 public:
27   SMESH_subMesh_i();
28   SMESH_subMesh_i(SMESH_Gen_i* gen_i,
29                   SMESH_Mesh_i* mesh_i,
30                   int localId);
31   ~SMESH_subMesh_i();
32
33   CORBA::Long GetNumberOfElements()
34     throw (SALOME::SALOME_Exception);
35   
36   CORBA::Long  GetNumberOfNodes()
37     throw (SALOME::SALOME_Exception);
38   
39   SMESH::long_array* GetElementsId()
40     throw (SALOME::SALOME_Exception);
41   
42   SMESH::long_array* GetNodesId()
43     throw (SALOME::SALOME_Exception);
44   
45   SMESH::SMESH_Mesh_ptr GetFather()
46     throw (SALOME::SALOME_Exception);
47   
48   CORBA::Long GetId();   
49
50   SALOME_MED::FAMILY_ptr GetFamily()
51     throw (SALOME::SALOME_Exception);
52
53   SMESH_Mesh_i* _mesh_i; //NRI
54
55 protected:
56   SMESH_Gen_i* _gen_i;
57   int _localId;
58 };
59
60 #endif