1 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // File : VISU_DatConvertor.hxx
6 // Author : Alexey PETROV
9 #ifndef VISU_DatConvertor_HeaderFile
10 #define VISU_DatConvertor_HeaderFile
12 #include "VISU_Convertor_impl.hxx"
15 class VISU_DatConvertor: public VISU_Convertor_impl{
17 VISU_DatConvertor(const VISU_DatConvertor&);
19 VISU_DatConvertor(const string& theFileName) throw (std::runtime_error&);
20 virtual VISU_Convertor* Build() throw (std::runtime_error&);
23 int ImportHead(ifstream* pStmIn, int* theNbPoints, int* theNbCells, int* theNbFields)
24 throw (std::runtime_error&);
25 int ImportPoints(ifstream*, int theNbPoints)
26 throw (std::runtime_error&);
27 int ImportCells(ifstream*, vector<int>* aCellsType)
28 throw (std::runtime_error&);
29 int ImportField(ifstream*, int theNbPoints, vector<int>* aCellsType)
30 throw (std::runtime_error&);
32 virtual int LoadMeshOnEntity(VISU::TMeshOnEntity& theMeshOnEntity,
33 const string& theFamilyName = "")
34 throw (std::runtime_error&) {return 1;}
35 virtual int LoadMeshOnGroup(VISU::TMesh& theMesh,
36 const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet)
37 throw (std::runtime_error&) {return 1;}
38 virtual int LoadFieldOnMesh(VISU::TMesh& theMesh,
39 VISU::TMeshOnEntity& theMeshOnEntity,
40 VISU::TField& theField,
41 VISU::TField::TValForTime& theValForTime)
42 throw (std::runtime_error&) {return 1;}