1 // File: VISU_Result_i.hh
2 // Created: Fri Jan 10 12:36:38 2003
3 // Author: Alexey PETROV
4 // <apo@ivanox.nnov.matra-dtv.fr>
6 #ifndef __VISU_RESULT_I_H__
7 #define __VISU_RESULT_I_H__
9 #include "VISUConfig.hh"
11 class vtkUnstructuredGridReader;
12 class vtkUnstructuredGrid;
18 class Result_i : public virtual POA_VISU::Result,
19 public virtual Storable
22 Result_i(const Result_i &);
24 Result_i(SALOMEDS::Study_ptr theStudy);
27 virtual VISU::VISUType GetType() { return VISU::TRESULT;};
29 typedef VISU_Convertor InputType;
30 typedef vtkUnstructuredGridReader OutputType;
37 virtual Storable* Build();
39 virtual Storable* Create(const char* theFileName);
40 virtual Storable* Create(SALOME_MED::FIELD_ptr theField);
41 virtual Storable* Create(SALOME_MED::MESH_ptr theMesh);
42 virtual Storable* Create(SALOME_MED::SUPPORT_ptr theSupport);
43 virtual Storable* Restore(SALOMEDS::SObject_ptr theSObject,
44 const string& thePrefix, const Storable::TRestoringMap& theMap)
45 throw(std::logic_error&);
46 virtual void ToStream(ostrstream& theStr);
47 virtual const char* GetComment() const;
48 static const string myComment;
49 InputType* GetInput() { return myInput;}
50 const char* GetName() const { return myName.c_str();}
51 const QFileInfo& GetFileInfo() const { return myFileInfo;}
52 int IsRestored() const { return myIsRestored;}
54 SALOMEDS::SObject_var mySObject;
55 SALOMEDS::Study_var myStudyDocument;
56 SALOMEDS::SComponent_var mySComponent;
58 string GetRefFatherEntry();
60 const SALOMEDS::SObject_var& GetSObject() const;
61 const SALOMEDS::Study_var& GetStudyDocument() const;
62 const SALOMEDS::SComponent_var& GetSComponent() const;
64 Storable* ResultRestore(SALOMEDS::SObject_ptr theSObject,
65 const string& thePrefix, const Storable::TRestoringMap& theMap)
66 throw(std::logic_error&);
67 Result_var FindResult(SALOMEDS::SObject_ptr theSObject);
68 QString GenerateName(const string& theFmt, int theId);
69 void WriteToFile(vtkUnstructuredGrid* theDataSet, const string& theFileName);