00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00027 #ifndef __vtkSESAMEReader_h
00028 #define __vtkSESAMEReader_h
00029
00030 #include <vtkRectilinearGridSource.h>
00031
00032 class vtkIntArray;
00033
00034 class VTK_IO_EXPORT vtkSESAMEReader : public vtkRectilinearGridSource
00035 {
00036 public:
00037 static vtkSESAMEReader *New();
00038 vtkTypeMacro(vtkSESAMEReader, vtkRectilinearGridSource);
00039
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00043
00044 void SetFileName(const char* file);
00045
00046
00047 const char* GetFileName();
00049
00051 int IsValidFile();
00052
00054 int GetNumberOfTableIds();
00055
00057 int* GetTableIds();
00058
00060 vtkIntArray* GetTableIdsAsArray();
00061
00063
00064 void SetTable(int tableId);
00065
00066
00067 int GetTable();
00069
00071 int GetNumberOfTableArrayNames();
00072
00074
00075 int GetNumberOfTableArrays()
00076 { return this->GetNumberOfTableArrayNames(); }
00077
00078
00079 const char* GetTableArrayName(int index);
00081
00083
00084 void SetTableArrayStatus(const char* name, int flag);
00085 int GetTableArrayStatus(const char* name);
00087
00088 protected:
00089
00090 vtkSESAMEReader();
00091 virtual ~vtkSESAMEReader();
00092
00093
00094 class MyInternal;
00095 MyInternal* Internal;
00096
00097
00098 int OpenFile();
00099 void CloseFile();
00100 void Execute();
00101 void ExecuteInformation();
00102
00103 int ReadTableValueLine ( float *v1, float *v2, float *v3,
00104 float *v4, float *v5);
00105 int JumpToTable( int tableID );
00106
00107 void ReadTable();
00108
00109 private:
00110 vtkSESAMEReader(const vtkSESAMEReader&);
00111 void operator=(const vtkSESAMEReader&);
00112
00113 };
00114
00115 #endif