00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00039 #ifndef __vtkEnSightGoldReader_h
00040 #define __vtkEnSightGoldReader_h
00041
00042 #include "vtkEnSightReader.h"
00043
00044
00045 class UndefPartialInternal;
00046
00047
00048 class vtkMultiBlockDataSet;
00049
00050 class VTK_IO_EXPORT vtkEnSightGoldReader : public vtkEnSightReader
00051 {
00052 public:
00053 static vtkEnSightGoldReader *New();
00054 vtkTypeMacro(vtkEnSightGoldReader, vtkEnSightReader);
00055 virtual void PrintSelf(ostream& os, vtkIndent indent);
00056
00057 protected:
00058 vtkEnSightGoldReader();
00059 ~vtkEnSightGoldReader();
00060
00062
00064 virtual int ReadGeometryFile(const char* fileName, int timeStep,
00065 vtkMultiBlockDataSet *output);
00067
00069
00071 virtual int ReadMeasuredGeometryFile(const char* fileName, int timeStep,
00072 vtkMultiBlockDataSet *output);
00074
00076
00079 virtual int ReadScalarsPerNode(const char* fileName, const char* description,
00080 int timeStep, vtkMultiBlockDataSet *output,
00081 int measured = 0,
00082 int numberOfComponents = 1,
00083 int component = 0);
00085
00087
00089 virtual int ReadVectorsPerNode(const char* fileName, const char* description,
00090 int timeStep, vtkMultiBlockDataSet *output,
00091 int measured = 0);
00093
00095
00097 virtual int ReadTensorsPerNode(const char* fileName, const char* description,
00098 int timeStep, vtkMultiBlockDataSet *output);
00100
00102
00105 virtual int ReadScalarsPerElement(const char* fileName, const char* description,
00106 int timeStep, vtkMultiBlockDataSet *output,
00107 int numberOfComponents = 1,
00108 int component = 0);
00110
00112
00114 virtual int ReadVectorsPerElement(const char* fileName, const char* description,
00115 int timeStep, vtkMultiBlockDataSet *output);
00117
00119
00121 virtual int ReadTensorsPerElement(const char* fileName, const char* description,
00122 int timeStep, vtkMultiBlockDataSet *output);
00124
00126
00129 virtual int CreateUnstructuredGridOutput(int partId,
00130 char line[256],
00131 const char* name,
00132 vtkMultiBlockDataSet *output);
00134
00136
00138 virtual int CreateStructuredGridOutput(int partId,
00139 char line[256],
00140 const char* name,
00141 vtkMultiBlockDataSet *output);
00143
00145
00147 int CreateRectilinearGridOutput(int partId, char line[256], const char* name,
00148 vtkMultiBlockDataSet *output);
00150
00152
00154 int CreateImageDataOutput(int partId, char line[256], const char* name,
00155 vtkMultiBlockDataSet *output);
00157
00159
00160 vtkSetStringMacro(GeometryFileName);
00161 vtkGetStringMacro(GeometryFileName);
00163
00165
00166 vtkSetStringMacro(MeasuredFileName);
00167 vtkGetStringMacro(MeasuredFileName);
00169
00171
00172 vtkSetStringMacro(MatchFileName);
00173 vtkGetStringMacro(MatchFileName);
00175
00178 int CheckForUndefOrPartial(const char *line);
00179
00181 UndefPartialInternal* UndefPartial;
00182
00183 int NodeIdsListed;
00184 int ElementIdsListed;
00185
00186 private:
00187 vtkEnSightGoldReader(const vtkEnSightGoldReader&);
00188 void operator=(const vtkEnSightGoldReader&);
00189 };
00190
00191 #endif