]> SALOME platform Git repositories - modules/visu.git/blob - src/CONVERTOR/VISU_DatConvertor.hxx
Salome HOME
DCQ : Merge with Ecole Ete a6.
[modules/visu.git] / src / CONVERTOR / VISU_DatConvertor.hxx
1 //  Copyright (C) 2003  CEA/DEN, EDF R&D
2 //
3 //
4 //
5 //  File   : VISU_DatConvertor.hxx
6 //  Author : Alexey PETROV
7 //  Module : VISU
8
9 #ifndef VISU_DatConvertor_HeaderFile
10 #define VISU_DatConvertor_HeaderFile
11
12 #include "VISU_Convertor_impl.hxx"
13 #include <fstream>      
14
15 using namespace std;
16
17 class VISU_DatConvertor: public VISU_Convertor_impl{
18   VISU_DatConvertor();
19   VISU_DatConvertor(const VISU_DatConvertor&);
20 public:
21   VISU_DatConvertor(const string& theFileName) ;
22   virtual VISU_Convertor* Build() ;
23 protected:
24   QFileInfo myFileInfo;
25   int ImportHead(ifstream* pStmIn, int* theNbPoints, int* theNbCells, int* theNbFields) ;
26     
27   int ImportPoints(ifstream*, int theNbPoints) ;
28     
29   int ImportCells(ifstream*, vector<int>* aCellsType) ;
30     
31   int ImportField(ifstream*, int theNbPoints, vector<int>* aCellsType) ;
32     
33  protected:
34   virtual int LoadMeshOnEntity(VISU::TMeshOnEntity& theMeshOnEntity, 
35                                const string& theFamilyName = "")
36     {return 1;}
37   virtual int LoadMeshOnGroup(VISU::TMesh& theMesh, 
38                               const VISU::TFamilyAndEntitySet& theFamilyAndEntitySet)
39     {return 1;}
40   virtual int LoadFieldOnMesh(VISU::TMesh& theMesh, 
41                               VISU::TMeshOnEntity& theMeshOnEntity, 
42                               VISU::TField& theField, 
43                               VISU::TField::TValForTime& theValForTime)
44     {return 1;}
45 };
46
47 #endif