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>
25 class VISU_Convertor_impl: public VISU_Convertor{
27 string GetHead(const string& theMeshName) const throw (std::runtime_error&);
28 string GetPoints(const VISU::TMesh& theMesh) const throw (std::runtime_error&);
29 int GetCells(ostrstream& strCellsOut, ostrstream& strTypesOut,
30 const VISU::TMeshOnEntity& theMeshOnEntity,
31 const string& theFamilyName = "") const throw (std::runtime_error&);
32 string GetField(const VISU::TField& theField,
33 const VISU::TField::TValForTime& theValForTime,
34 int theDim, int theNbPoints, int theNbCells) const
35 throw (std::runtime_error&);
37 VISU_Convertor_impl();
38 virtual ~VISU_Convertor_impl();
39 virtual VISU_Convertor* Build() throw (std::runtime_error&) { return this;};
40 virtual OutputType* GetMeshOnEntity(const string& theMeshName,
41 const VISU::TEntity& theEntity,
42 const string& theFamilyName = "")
43 throw(std::runtime_error&);
44 virtual OutputType* GetMeshOnGroup(const string& theMeshName,
45 const string& theGroupName)
46 throw(std::runtime_error&);
47 virtual OutputType* GetFieldOnMesh(const string& theMeshName,
48 const VISU::TEntity& theEntity,
49 const string& theFieldName,
51 throw(std::runtime_error&);
54 virtual int LoadMeshOnEntity(VISU::TMeshOnEntity& theMeshOnEntity,
55 const string& theFamilyName = "")
56 throw (std::runtime_error&) = 0;
57 virtual int LoadMeshOnGroup(VISU::TMesh& theMesh,
58 const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet)
59 throw (std::runtime_error&) = 0;
60 virtual int LoadFieldOnMesh(VISU::TMesh& theMesh,
61 VISU::TMeshOnEntity& theMeshOnEntity,
62 VISU::TField& theField,
63 VISU::TField::TValForTime& theValForTime)
64 throw (std::runtime_error&) = 0;
68 int getNbMedConnect(int theMedType, int theMedEntity, int theMeshDim);
69 int getNbMedNodes(int theMedType);
70 int med2vtkCellType(int theMedType);
71 int vtk2medCellType(int theVtkType);
72 int getIdMedType(int medType);
76 med_geometrie_element medType;
83 extern Med2vtk med2vtk[MED_NBR_GEOMETRIE_MAILLE];