00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00037 #ifndef __vtkEnSightGoldReader_h
00038 #define __vtkEnSightGoldReader_h
00039
00040 #include "vtkEnSightReader.h"
00041
00042
00043 class UndefPartialInternal;
00044
00045
00046 class VTK_IO_EXPORT vtkEnSightGoldReader : public vtkEnSightReader
00047 {
00048 public:
00049 static vtkEnSightGoldReader *New();
00050 vtkTypeRevisionMacro(vtkEnSightGoldReader, vtkEnSightReader);
00051 virtual void PrintSelf(ostream& os, vtkIndent indent);
00052
00053 protected:
00054 vtkEnSightGoldReader();
00055 ~vtkEnSightGoldReader();
00056
00059 virtual int ReadGeometryFile(const char* fileName, int timeStep);
00060
00063 virtual int ReadMeasuredGeometryFile(const char* fileName, int timeStep);
00064
00066
00069 virtual int ReadScalarsPerNode(const char* fileName, const char* description,
00070 int timeStep, int measured = 0,
00071 int numberOfComponents = 1,
00072 int component = 0);
00074
00076
00078 virtual int ReadVectorsPerNode(const char* fileName, const char* description,
00079 int timeStep, int measured = 0);
00081
00083
00085 virtual int ReadTensorsPerNode(const char* fileName, const char* description,
00086 int timeStep);
00088
00090
00093 virtual int ReadScalarsPerElement(const char* fileName, const char* description,
00094 int timeStep, int numberOfComponents = 1,
00095 int component = 0);
00097
00099
00101 virtual int ReadVectorsPerElement(const char* fileName, const char* description,
00102 int timeStep);
00104
00106
00108 virtual int ReadTensorsPerElement(const char* fileName, const char* description,
00109 int timeStep);
00111
00113
00116 virtual int CreateUnstructuredGridOutput(int partId,
00117 char line[256],
00118 const char* name);
00120
00122
00124 virtual int CreateStructuredGridOutput(int partId,
00125 char line[256],
00126 const char* name);
00128
00131 int CreateRectilinearGridOutput(int partId, char line[256], const char* name);
00132
00135 int CreateImageDataOutput(int partId, char line[256], const char* name);
00136
00138
00139 vtkSetStringMacro(GeometryFileName);
00140 vtkGetStringMacro(GeometryFileName);
00142
00144
00145 vtkSetStringMacro(MeasuredFileName);
00146 vtkGetStringMacro(MeasuredFileName);
00148
00150
00151 vtkSetStringMacro(MatchFileName);
00152 vtkGetStringMacro(MatchFileName);
00154
00157 int CheckForUndefOrPartial(const char *line);
00158
00160 UndefPartialInternal* UndefPartial;
00161
00162 private:
00163 vtkEnSightGoldReader(const vtkEnSightGoldReader&);
00164 void operator=(const vtkEnSightGoldReader&);
00165 };
00166
00167 #endif