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