1 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // File : VISU_MedConvertor.hxx
6 // Author : Alexey PETROV
9 #ifndef VISU_MedConvertor_HeaderFile
10 #define VISU_MedConvertor_HeaderFile
12 #include "VISU_Convertor_impl.hxx"
14 #include "MED_Common.hxx"
18 struct TMEDMesh: TMeshImpl{
19 MED::PMeshInfo myMeshInfo;
20 MED::TEntityInfo myEntityInfo;
22 typedef shared_ptr<TMEDMesh> PMEDMesh;
24 struct TMEDMeshOnEntity: TMeshOnEntityImpl{
27 typedef shared_ptr<TMEDMeshOnEntity> PMEDMeshOnEntity;
29 struct TMEDFamily: TFamilyImpl{
31 typedef shared_ptr<TMEDFamily> PMEDFamily;
33 struct TMEDGroup: TGroupImpl{
35 typedef shared_ptr<TMEDGroup> PMEDGroup;
37 struct TMEDField: TFieldImpl{
39 typedef shared_ptr<TMEDField> PMEDField;
41 struct TMEDValForTime: TValForTimeImpl{
43 typedef shared_ptr<TMEDValForTime> PMEDValForTime;
47 class VISU_MedConvertor: public VISU_Convertor_impl{
49 VISU_MedConvertor(const VISU_MedConvertor&);
51 VISU_MedConvertor(const std::string& theFileName) ;
52 virtual VISU_Convertor* Build() ;
56 virtual int LoadMeshOnEntity(VISU::PMeshOnEntityImpl theMeshOnEntity,
57 const std::string& theFamilyName = "");
59 virtual int LoadMeshOnGroup(VISU::PMeshImpl theMesh,
60 const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet);
62 virtual int LoadFieldOnMesh(VISU::PMeshImpl theMesh,
63 VISU::PMeshOnEntityImpl theMeshOnEntity,
64 VISU::PFieldImpl theField,
65 VISU::PValForTimeImpl theValForTime);
67 int LoadPoints(const MED::PWrapper& theMed,
68 VISU::PMEDMesh theMesh,
69 const std::string& theFamilyName = "");
71 int LoadCellsOnEntity(const MED::PWrapper& theMed,
72 VISU::PMEDMesh theMesh,
73 VISU::PMEDMeshOnEntity theMeshOnEntity,
74 const std::string& theFamilyName = "");
76 int LoadField(const MED::PWrapper& theMed,
77 VISU::PMEDMesh theMesh,
78 VISU::PMEDMeshOnEntity theMeshOnEntity,
79 VISU::PMEDField theField,
80 VISU::PMEDValForTime theValForTime);