Salome HOME
Final version of the V2_2_0 in the main trunk of the CVS tree.
[modules/med.git] / src / MedClient / src / CONNECTIVITYClient.hxx
1 #ifndef _CONNECTIVITY_CLIENT_HXX
2 #define _CONNECTIVITY_CLIENT_HXX
3
4 #include <SALOMEconfig.h>
5 #include "MEDMEM_Connectivity.hxx"
6 #include CORBA_CLIENT_HEADER(MED)
7
8 namespace MEDMEM {
9 class CONNECTIVITYClient : public CONNECTIVITY {
10
11 protected:
12  
13   long *_numberOfElements_client;
14   long _totalNumberOfElements_client;
15
16   mutable bool _complete;
17   SALOME_MED::MESH_var IOR_Mesh ;
18
19 public:
20
21   CONNECTIVITYClient(const SALOME_MED::MESH_ptr m, 
22                      medEntityMesh Entity=MED_CELL);
23
24   virtual ~CONNECTIVITYClient();
25
26   void fillCopy();
27   void blankCopy();
28  
29   int getNumberOf(medEntityMesh Entity, medGeometryElement Type) const;
30
31   const int * getConnectivity      (medConnectivity ConnectivityType, 
32                                         medEntityMesh Entity,
33                                         medGeometryElement Type);
34   const int * getConnectivityIndex (medConnectivity ConnectivityType,
35                                         medEntityMesh Entity);
36   
37   void  calculateConnectivity (medConnectivity connectivityType, 
38                                medEntityMesh Entity);
39
40   void  updateFamily (vector<FAMILY*> myFamilies);
41
42   const int * getGlobalNumberingIndex (medEntityMesh Entity) const throw (MEDEXCEPTION);
43
44   bool existConnectivity(medConnectivity ConnectivityType, 
45                          medEntityMesh Entity) const;
46
47   const int* getReverseConnectivity (medConnectivity ConnectivityType, 
48                                          medEntityMesh Entity=MED_CELL)
49     throw (MEDEXCEPTION);
50
51   const int* getReverseConnectivityIndex (medConnectivity ConnectivityType,
52                                               medEntityMesh Entity=MED_CELL)
53     throw (MEDEXCEPTION);
54
55   const int* getValue (medConnectivity TypeConnectivity, 
56                            medGeometryElement Type);
57  
58   const int* getValueIndex        (medConnectivity TypeConnectivity);
59   const int* getNeighbourhood() const;
60 };
61 };
62
63
64 #endif