Salome HOME
Merge from V6_main 01/04/2013
[modules/med.git] / src / MEDMEM / MEDMEM_Meshing.hxx
1 // Copyright (C) 2007-2013  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 /*
24   File MEDMEM_Meshing.hxx
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 setCoordinates      (const int SpaceDimension,
48                             const int NumberOfNodes,
49                             const double * Coordinates,
50                             const string System,
51                             const MED_EN::medModeSwitch Mode) ;
52   void setCoordinatesNames (const string * names) ;
53   void setCoordinateName   (const string name, const int i) ;
54   void setCoordinatesUnits (const string * units) ;
55   void setCoordinateUnit   (const string unit, const int i) ;
56
57   void setNumberOfTypes    (const int NumberOfTypes,
58                             const MED_EN::medEntityMesh Entity) throw (MEDEXCEPTION) ;
59
60   void setTypes            (const MED_EN::medGeometryElement * Types,
61                             const MED_EN::medEntityMesh Entity) throw (MEDEXCEPTION) ;
62
63   void setNumberOfElements (const int * NumberOfElements,
64                             const MED_EN::medEntityMesh Entity) throw (MEDEXCEPTION) ;
65
66   void setConnectivity     (const MED_EN::medEntityMesh Entity,
67                             const MED_EN::medGeometryElement Type,
68                             const int * Connectivity,
69                             const int * PolyConnectivityIndex=0)    throw (MEDEXCEPTION) ;
70
71   void addGroup            (const GROUP & Group)                throw (MEDEXCEPTION) ;
72 };
73 }
74
75 #endif /* MESHING_HXX */