1 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // File : VISU_Convertor_impl.hxx
6 // Author : Alexey PETROV
9 #ifndef VISU_Convertor_impl_HeaderFile
10 #define VISU_Convertor_impl_HeaderFile
12 #include "VISU_Convertor.hxx"
19 #include <qfileinfo.h>
21 class VISU_Convertor_impl: public VISU_Convertor{
23 virtual float GetSize() ;
25 virtual float GetMeshOnEntitySize(const std::string& theMeshName,
26 const VISU::TEntity& theEntity,
27 const std::string& theFamilyName = "");
29 virtual float GetMeshOnGroupSize(const std::string& theMeshName,
30 const std::string& theGroupName);
32 virtual float GetTimeStampSize(const std::string& theMeshName,
33 const VISU::TEntity& theEntity,
34 const std::string& theFieldName,
37 virtual float GetFieldOnMeshSize(const std::string& theMeshName,
38 const VISU::TEntity& theEntity,
39 const std::string& theFieldName);
41 virtual const VISU::TField& GetField(const std::string& theMeshName,
42 VISU::TEntity theEntity,
43 const std::string& theFieldName);
45 virtual const VISU::TField::TValForTime& GetTimeStamp(const std::string& theMeshName,
46 const VISU::TEntity& theEntity,
47 const std::string& theFieldName,
51 VISU_Convertor_impl();
53 virtual ~VISU_Convertor_impl();
55 virtual VISU_Convertor* Build() { return this;};
57 virtual TOutput* GetMeshOnEntity(const std::string& theMeshName,
58 const VISU::TEntity& theEntity,
59 const std::string& theFamilyName = "");
61 virtual TOutput* GetMeshOnGroup(const std::string& theMeshName,
62 const std::string& theGroupName);
64 virtual TOutput* GetTimeStampOnMesh(const std::string& theMeshName,
65 const VISU::TEntity& theEntity,
66 const std::string& theFieldName,
70 void FindMesh(const std::string& theMeshName, VISU::TMesh*& theMesh);
72 void FindMeshOnEntity(const std::string& theMeshName, VISU::TMesh*& theMesh,
73 const VISU::TEntity& theEntity, VISU::TMeshOnEntity*& theMeshOnEntity,
74 const std::string& theFamilyName, VISU::TFamily*& theFamily);
76 void FindMeshOnGroup(const std::string& theMeshName, VISU::TMesh*& theMesh,
77 const std::string& theGroupName, VISU::TGroup*& theGroup);
79 void FindField(const std::string& theMeshName, VISU::TMesh*& theMesh,
80 const VISU::TEntity& theEntity,
81 VISU::TMeshOnEntity*& theMeshOnEntity,
82 VISU::TMeshOnEntity*& theVTKMeshOnEntity,
83 const std::string& theFieldName, VISU::TField*& theField);
85 void FindTimeStamp(const std::string& theMeshName, VISU::TMesh*& theMesh,
86 const VISU::TEntity& theEntity,
87 VISU::TMeshOnEntity*& theMeshOnEntity,
88 VISU::TMeshOnEntity*& theVTKMeshOnEntity,
89 const std::string& theFieldName, VISU::TField*& theField,
90 int theStampsNum, VISU::TField::TValForTime*& theValForTime);
93 virtual int LoadMeshOnEntity(VISU::TMeshOnEntity& theMeshOnEntity,
94 const std::string& theFamilyName = "") = 0;
96 virtual int LoadMeshOnGroup(VISU::TMesh& theMesh,
97 const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet) = 0;
99 virtual int LoadFieldOnMesh(VISU::TMesh& theMesh,
100 VISU::TMeshOnEntity& theMeshOnEntity,
101 VISU::TField& theField,
102 VISU::TField::TValForTime& theValForTime) = 0;