#include "VISU_Convertor_impl.hxx"
-extern "C"{
-#include <med.h>
-}
+#include "MED_Common.hxx"
+
+namespace VISU{
+
+ struct TMEDMesh: TMeshImpl{
+ MED::PMeshInfo myMeshInfo;
+ MED::TEntityInfo myEntityInfo;
+ };
+ typedef shared_ptr<TMEDMesh> PMEDMesh;
+
+ struct TMEDMeshOnEntity: TMeshOnEntityImpl{
+ MED::TGeom myGeom;
+ };
+ typedef shared_ptr<TMEDMeshOnEntity> PMEDMeshOnEntity;
+
+ struct TMEDFamily: TFamilyImpl{
+ };
+ typedef shared_ptr<TMEDFamily> PMEDFamily;
+
+ struct TMEDGroup: TGroupImpl{
+ };
+ typedef shared_ptr<TMEDGroup> PMEDGroup;
+
+ struct TMEDField: TFieldImpl{
+ };
+ typedef shared_ptr<TMEDField> PMEDField;
+
+ struct TMEDValForTime: TValForTimeImpl{
+ };
+ typedef shared_ptr<TMEDValForTime> PMEDValForTime;
+
+}
class VISU_MedConvertor: public VISU_Convertor_impl{
VISU_MedConvertor();
protected:
QFileInfo myFileInfo;
- virtual int LoadMeshOnEntity(VISU::TMeshOnEntity& theMeshOnEntity,
+ virtual int LoadMeshOnEntity(VISU::PMeshOnEntityImpl theMeshOnEntity,
const std::string& theFamilyName = "");
- virtual int LoadMeshOnGroup(VISU::TMesh& theMesh,
+ virtual int LoadMeshOnGroup(VISU::PMeshImpl theMesh,
const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet);
- virtual int LoadFieldOnMesh(VISU::TMesh& theMesh,
- VISU::TMeshOnEntity& theMeshOnEntity,
- VISU::TField& theField,
- VISU::TField::TValForTime& theValForTime);
-
- int LoadPoints(const med_idt& fid, VISU::TMesh& theMesh,
+ virtual int LoadFieldOnMesh(VISU::PMeshImpl theMesh,
+ VISU::PMeshOnEntityImpl theMeshOnEntity,
+ VISU::PFieldImpl theField,
+ VISU::PValForTimeImpl theValForTime);
+
+ int LoadPoints(const MED::PWrapper& theMed,
+ VISU::PMEDMesh theMesh,
const std::string& theFamilyName = "");
- int LoadCellsOnEntity(const med_idt& fid, VISU::TMeshOnEntity& theMeshOnEntity,
+ int LoadCellsOnEntity(const MED::PWrapper& theMed,
+ VISU::PMEDMesh theMesh,
+ VISU::PMEDMeshOnEntity theMeshOnEntity,
const std::string& theFamilyName = "");
-
- int LoadField(const med_idt& fid, const VISU::TMeshOnEntity& theMeshOnEntity,
- VISU::TField& theField, VISU::TField::TValForTime& theValForTime);
-
+
+ int LoadField(const MED::PWrapper& theMed,
+ VISU::PMEDMesh theMesh,
+ VISU::PMEDMeshOnEntity theMeshOnEntity,
+ VISU::PMEDField theField,
+ VISU::PMEDValForTime theValForTime);
+
};
#endif