]> SALOME platform Git repositories - modules/med.git/blob - src/MEDMEM/MEDMEM_Meshing.hxx
Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / src / MEDMEM / MEDMEM_Meshing.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 /*
23   File MEDMEM_Meshing.hxx
24   $Header$
25 */
26
27 #ifndef MESHING_HXX
28 #define MESHING_HXX
29
30 #include "MEDMEM.hxx"
31
32 #include "MEDMEM_Mesh.hxx"
33
34
35 namespace MEDMEM {
36
37 /*!
38   This class MESHING is a special class to set a MESH object.
39 */
40
41 class MEDMEM_EXPORT MESHING: public MESH
42 {
43 public :
44   MESHING();
45   ~MESHING();
46
47   void setSpaceDimension   (const int SpaceDimension) ;
48   void setMeshDimension    (const int MeshDimension) ;
49   void setNumberOfNodes    (const int NumberOfNodes) ;
50   void setCoordinates      (const int SpaceDimension,
51                             const int NumberOfNodes,
52                             const double * Coordinates,
53                             const string System,
54                             const MED_EN::medModeSwitch Mode) ;
55   void setCoordinatesSystem(const string& System)
56     throw (MEDEXCEPTION) ;
57   void setCoordinatesNames (const string * names) ;
58   void setCoordinateName (const string name, const int i) ;
59   void setCoordinatesUnits (const string * units) ;
60   void setCoordinateUnit (const string unit, const int i) ;
61
62   void setNumberOfTypes    (const int NumberOfTypes,
63                             const MED_EN::medEntityMesh Entity) 
64     throw (MEDEXCEPTION) ;
65   void setTypes            (const MED_EN::medGeometryElement * Types,
66                             const MED_EN::medEntityMesh Entity)
67     throw (MEDEXCEPTION) ;
68   void setNumberOfElements (const int * NumberOfElements,
69                             const MED_EN::medEntityMesh Entity)
70     throw (MEDEXCEPTION) ;
71   void setConnectivity     (const int * Connectivity,
72                             const MED_EN::medEntityMesh Entity,
73                             const MED_EN::medGeometryElement Type)
74     throw (MEDEXCEPTION) ;
75   
76   void setPolygonsConnectivity     (const int * ConnectivityIndex,
77                                     const int * ConnectivityValue,
78                                     int nbOfPolygons,
79                                     const MED_EN::medEntityMesh Entity)
80     throw (MEDEXCEPTION) ;
81
82   void setPolyhedraConnectivity     (const int * PolyhedronIndex,
83                                      const int * FacesIndex,
84                                      const int * Nodes,
85                                      int nbOfPolyhedra,
86                                      const MED_EN::medEntityMesh Entity)
87     throw (MEDEXCEPTION) ;
88
89   void setConnectivities   (const int * ConnectivityIndex,
90                             const int * ConnectivityValue,
91                             const MED_EN::medConnectivity ConnectivityType,
92                             const MED_EN::medEntityMesh Entity)
93     throw (MEDEXCEPTION) ;
94
95 //   void setGroup            (const string name,
96 //                          const string description,
97 //                          const int NumberOfElements,
98 //                          const int * ElementsNumbers,
99 //                          const medEntityMesh Entity) ;
100   void addGroup            (const GROUP & Group)
101     throw (MEDEXCEPTION) ;
102 };
103 };
104
105 #endif /* MESHING_HXX */