43 #ifndef vtkEnSightGoldBinaryReader_h
44 #define vtkEnSightGoldBinaryReader_h
46 #include "vtkIOEnSightModule.h"
64 int OpenFile(
const char* filename);
69 int InitializeFile(
const char* filename);
92 int numberOfComponents = 1,
117 int numberOfComponents = 1,
157 int CreateRectilinearGridOutput(
int partId,
char line[256],
const char*
name,
164 int CreateImageDataOutput(
int partId,
char line[80],
const char*
name,
178 int ReadInt(
int *result);
179 int ReadPartId(
int *result);
186 int ReadIntArray(
int *result,
int numInts);
192 int ReadLong(vtkTypeInt64 *result);
198 int ReadFloatArray(
float *result,
int numFloats);
206 int CountTimeSteps();
213 int SkipStructuredGrid(
char line[256]);
214 int SkipUnstructuredGrid(
char line[256]);
215 int SkipRectilinearGrid(
char line[256]);
216 int SkipImageData(
char line[256]);
222 int SeekToCachedTimeStep(
const char* fileName,
int realTimeStep);
227 void AddTimeStepToCache(
const char* fileName,
int realTimeStep, vtkTypeInt64
address);
232 void AddFileIndexToCache(
const char* fileName);
242 class FileOffsetMapInternal;
virtual int CreateStructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
Read a structured part from the geometry file and create a vtkStructuredGridOutput.
class to read binary EnSight Gold files
virtual int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0)=0
Read vectors per node for this dataset.
virtual int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the measured geometry file.
virtual int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per element for this dataset.
virtual int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the geometry file.
virtual int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per node for this dataset.
a simple class to control print indentation
virtual int ReadScalarsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0)=0
Read scalars per element for this dataset.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
superclass for EnSight file readers
static vtkGenericEnSightReader * New()
FileOffsetMapInternal * FileOffsets
Composite dataset that organizes datasets into blocks.
virtual int CreateUnstructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output...
virtual int ReadScalarsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0)=0
Read scalars per node for this dataset.
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
virtual int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read vectors per element for this dataset.