Salome HOME
merging the main trunk with the BrForComp branch to build a pre V3_0_1
[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 /*!
12   This class MESHING is a special class to set a MESH object.
13 */
14
15 namespace MEDMEM {
16 class MESHING: public MESH
17 {
18 public :
19   MESHING();
20   ~MESHING();
21
22   void setSpaceDimension   (const int SpaceDimension) ;
23   void setMeshDimension    (const int MeshDimension) ;
24   void setNumberOfNodes    (const int NumberOfNodes) ;
25   void setCoordinates      (const int SpaceDimension,
26                             const int NumberOfNodes,
27                             const double * Coordinates,
28                             const string System,
29                             const MED_EN::medModeSwitch Mode) ;
30   void setCoordinatesSystem(const string System)
31     throw (MEDEXCEPTION) ;
32   void setCoordinatesNames (const string * names) ;
33   void setCoordinateName (const string name, const int i) ;
34   void setCoordinatesUnits (const string * units) ;
35   void setCoordinateUnit (const string unit, const int i) ;
36
37   void setNumberOfTypes    (const int NumberOfTypes,
38                             const MED_EN::medEntityMesh Entity) 
39     throw (MEDEXCEPTION) ;
40   void setTypes            (const MED_EN::medGeometryElement * Types,
41                             const MED_EN::medEntityMesh Entity)
42     throw (MEDEXCEPTION) ;
43   void setNumberOfElements (const int * NumberOfElements,
44                             const MED_EN::medEntityMesh Entity)
45     throw (MEDEXCEPTION) ;
46   void setConnectivity     (const int * Connectivity,
47                             const MED_EN::medEntityMesh Entity,
48                             const MED_EN::medGeometryElement Type)
49     throw (MEDEXCEPTION) ;
50   
51   void setPolygonsConnectivity     (const int * ConnectivityIndex,
52                                     const int * ConnectivityValue,
53                                     int nbOfPolygons,
54                                     const MED_EN::medEntityMesh Entity)
55     throw (MEDEXCEPTION) ;
56
57   void setPolyhedraConnectivity     (const int * PolyhedronIndex,
58                                      const int * FacesIndex,
59                                      const int * Nodes,
60                                      int nbOfPolyhedra,
61                                      const MED_EN::medEntityMesh Entity)
62     throw (MEDEXCEPTION) ;
63
64   void setConnectivities   (const int * ConnectivityIndex,
65                             const int * ConnectivityValue,
66                             const MED_EN::medConnectivity ConnectivityType,
67                             const MED_EN::medEntityMesh Entity)
68     throw (MEDEXCEPTION) ;
69
70 //   void setGroup            (const string name,
71 //                          const string description,
72 //                          const int NumberOfElements,
73 //                          const int * ElementsNumbers,
74 //                          const medEntityMesh Entity) ;
75   void addGroup            (const GROUP & Group)
76     throw (MEDEXCEPTION) ;
77 };
78 };
79
80 #endif /* MESHING_HXX */