00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00065 #ifndef __vtkEnSight6BinaryReader_h
00066 #define __vtkEnSight6BinaryReader_h
00067
00068 #include "vtkEnSightReader.h"
00069
00070 class VTK_IO_EXPORT vtkEnSight6BinaryReader : public vtkEnSightReader
00071 {
00072 public:
00073 static vtkEnSight6BinaryReader *New();
00074 vtkTypeMacro(vtkEnSight6BinaryReader, vtkEnSightReader);
00075
00076 protected:
00077 vtkEnSight6BinaryReader();
00078 ~vtkEnSight6BinaryReader();
00079
00082 virtual int ReadGeometryFile(char* fileName, int timeStep);
00083
00086 virtual int ReadMeasuredGeometryFile(char* fileName, int timeStep);
00087
00089
00093 virtual int ReadScalarsPerNode(char* fileName, char* description,
00094 int timeStep, int measured = 0,
00095 int numberOfComponents = 1,
00096 int component = 0);
00098
00100
00102 virtual int ReadVectorsPerNode(char* fileName, char* description,
00103 int timeStep, int measured = 0);
00105
00107
00109 virtual int ReadTensorsPerNode(char* fileName, char* description,
00110 int timeStep);
00112
00114
00118 virtual int ReadScalarsPerElement(char* fileName, char* description,
00119 int timeStep, int numberOfComponents = 1,
00120 int component = 0);
00122
00124
00126 virtual int ReadVectorsPerElement(char* fileName, char* description,
00127 int timeStep);
00129
00131
00133 virtual int ReadTensorsPerElement(char* fileName, char* description,
00134 int timeStep);
00136
00139 virtual int CreateUnstructuredGridOutput(int partId, char line[256]);
00140
00143 virtual int CreateStructuredGridOutput(int partId, char line[256]);
00144
00147 int ReadLine(char result[80]);
00148
00151 int ReadInt(int *result);
00152
00155 int ReadIntArray(int *result, int numInts);
00156
00159 int ReadFloatArray(float *result, int numFloats);
00160
00162
00163 void SkipTimeStep();
00164 int SkipStructuredGrid(char line[256]);
00165 int SkipUnstructuredGrid(char line[256]);
00167
00168
00169 int NumberOfUnstructuredPoints;
00170 vtkPoints* UnstructuredPoints;
00171 vtkIdList* UnstructuredNodeIds;
00172
00173 int ElementIdsListed;
00174
00175 FILE *IFile;
00176 private:
00177 vtkEnSight6BinaryReader(const vtkEnSight6BinaryReader&);
00178 void operator=(const vtkEnSight6BinaryReader&);
00179 };
00180
00181 #endif