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