Salome HOME
NRI : Remove dependence with KERNEL.
[modules/visu.git] / src / VISU_I / VISU_MedConvertor.hxx
1 // File:        VISU_MedConvertor.hxx
2 // Created:     Fri Jan 10 12:02:49 2003
3 // Author:      Alexey PETROV
4 //              <apo@ivanox.nnov.matra-dtv.fr>
5
6
7 #ifndef VISU_MedConvertor_HeaderFile
8 #define VISU_MedConvertor_HeaderFile
9
10 #include "VISU_Convertor_impl.hxx"
11
12 extern "C"{
13 #include <med.h>
14 }  
15
16 class VISU_MedConvertor: public VISU_Convertor_impl{
17   VISU_MedConvertor();
18   VISU_MedConvertor(const VISU_MedConvertor&);
19 public:
20   VISU_MedConvertor(const string& theFileName) throw (std::runtime_error&);
21   virtual VISU_Convertor* Build() throw (std::runtime_error&);
22 protected:
23   QFileInfo myFileInfo;
24
25   virtual int LoadMeshOnEntity(VISU::TMeshOnEntity& theMeshOnEntity, 
26                                const string& theFamilyName = "")
27     throw (std::runtime_error&);
28   virtual int LoadMeshOnGroup(VISU::TMesh& theMesh, 
29                               const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet)
30     throw (std::runtime_error&);
31   virtual int LoadFieldOnMesh(VISU::TMesh& theMesh, 
32                               VISU::TMeshOnEntity& theMeshOnEntity, 
33                               VISU::TField& theField, 
34                               VISU::TField::TValForTime& theValForTime)
35     throw (std::runtime_error&);
36
37   int LoadPoints(const med_idt& fid, VISU::TMesh& theMesh, 
38                  const string& theFamilyName = "") 
39     throw (std::runtime_error&);
40   int LoadCellsOnEntity(const med_idt& fid, VISU::TMeshOnEntity& theMeshOnEntity,
41                         const string& theFamilyName = "")
42     throw (std::runtime_error&);
43   int LoadField(const med_idt& fid, const VISU::TMeshOnEntity& theMeshOnEntity,
44                 const VISU::TField& theField, VISU::TField::TValForTime& theValForTime)
45     throw (std::runtime_error&);
46 };
47
48 #endif