Salome HOME
Merging with the MAN_SALOME2 branch
[modules/med.git] / src / MEDMEM / MEDMEM_Meshing.hxx
1 /*
2   File MEDMEM_Meshing.hxx
3   $Header$
4 */
5
6 #ifndef MESHING_HXX
7 #define MESHING_HXX
8
9 #include "MEDMEM_Mesh.hxx"
10
11 using namespace MED_EN;
12
13 /*!
14   This class MESHING is a special class to set a MESH object.
15 */
16
17 namespace MEDMEM {
18 class MESHING: public MESH
19 {
20 public :
21   MESHING();
22   ~MESHING();
23
24   void setSpaceDimension   (const int SpaceDimension) ;
25   //void setMeshDimension    (const int MeshDimension) ;
26   void setNumberOfNodes    (const int NumberOfNodes) ;
27   void setCoordinates      (const int SpaceDimension,
28                             const int NumberOfNodes,
29                             const double * Coordinates,
30                             const string System,
31                             const medModeSwitch Mode) ;
32   void setCoordinatesSystem(const string System)
33     throw (MEDEXCEPTION) ;
34   void setCoordinatesNames (const string * names) ;
35   void setCoordinateName (const string name, const int i) ;
36   void setCoordinatesUnits (const string * units) ;
37   void setCoordinateUnit (const string unit, const int i) ;
38
39   void setNumberOfTypes    (const int NumberOfTypes,
40                             const medEntityMesh Entity) 
41     throw (MEDEXCEPTION) ;
42   void setTypes            (const medGeometryElement * Types,
43                             const medEntityMesh Entity)
44     throw (MEDEXCEPTION) ;
45   void setNumberOfElements (const int * NumberOfElements,
46                             const medEntityMesh Entity)
47     throw (MEDEXCEPTION) ;
48   void setConnectivity     (const int * Connectivity,
49                             const medEntityMesh Entity,
50                             const medGeometryElement Type)
51     throw (MEDEXCEPTION) ;
52
53   void setConnectivities   (const int * ConnectivityIndex,
54                             const int * ConnectivityValue,
55                             const medConnectivity ConnectivityType,
56                             const medEntityMesh Entity)
57     throw (MEDEXCEPTION) ;
58
59 //   void setGroup            (const string name,
60 //                          const string description,
61 //                          const int NumberOfElements,
62 //                          const int * ElementsNumbers,
63 //                          const medEntityMesh Entity) ;
64   void addGroup            (const GROUP & Group)
65     throw (MEDEXCEPTION) ;
66 };
67 };
68
69 #endif /* MESHING_HXX */