 |
VTK
9.1.0
|
Go to the documentation of this file.
40 #ifndef vtkEnSightGoldBinaryReader_h
41 #define vtkEnSightGoldBinaryReader_h
44 #include "vtkIOEnSightModule.h"
248 class FileOffsetMapInternal;
260 bool OpenVariableFile(
const char* fname,
const char* variableType);
267 int attributeType,
int numComponents,
bool measured);
272 bool ReadMeasureVariableArray(
276 int attributeType,
int numComponents,
int component = -1);
279 friend class vtkUtilities;
int CreateStructuredGridOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output) override
Read a structured part from the geometry file and create a vtkStructuredGrid output.
vtkEnSightGoldBinaryReader()
int InitializeFile(const char *filename)
int ReadIntArray(int *result, int numInts)
Internal function to read in an integer array.
int ReadScalarsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0) override
Read scalars per element for this dataset.
int ReadFloatArray(float *result, int numFloats)
Internal function to read in a float array.
superclass for EnSight file readers
FileOffsetMapInternal * FileOffsets
int ReadScalarsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0) override
Read scalars per node for this dataset.
int SkipUnstructuredGrid(char line[256])
Read to the next time step in the geometry file.
int SkipStructuredGrid(char line[256])
Read to the next time step in the geometry file.
void AddTimeStepToCache(const char *fileName, int realTimeStep, vtkTypeInt64 address)
Add an entry the time step cache.
void AddFileIndexToCache(const char *fileName)
Read the file index, if available, and add it to the time step cache.
Composite dataset that organizes datasets into blocks.
int OpenFile(const char *filename)
int ReadLine(char result[80])
Internal function to read in a line up to 80 characters.
int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the measured geometry file.
int SkipImageData(char line[256])
Read to the next time step in the geometry file.
class to read binary EnSight Gold files
int CreateUnstructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output) override
Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int SkipTimeStep()
Read to the next time step in the geometry file.
int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the geometry file.
int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read tensors per element for this dataset.
int CreateImageDataOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)
Read a structured part from the geometry file and create a vtkImageData output.
a simple class to control print indentation
int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read tensors per node for this dataset.
int ReadFloat(float *result)
Internal function to read a single float.
int ReadLong(vtkTypeInt64 *result)
Internal function to read in a single long.
int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read vectors per element for this dataset.
int CountTimeSteps()
Counts the number of timesteps in the geometry file This function assumes the file is already open an...
int SkipRectilinearGrid(char line[256])
Read to the next time step in the geometry file.
~vtkEnSightGoldBinaryReader() override
int SeekToCachedTimeStep(const char *fileName, int realTimeStep)
Seeks the IFile to the nearest time step that is <= the target time step.
int ReadAsymmetricTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read asymmetric tensors per node for this dataset.
int ReadPartId(int *result)
Internal function to read in a single integer.
int ReadInt(int *result)
Internal function to read in a single integer.
int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0) override
Read vectors per node for this dataset.
int CreateRectilinearGridOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
Read a structured part from the geometry file and create a vtkRectilinearGrid output.
static vtkEnSightGoldBinaryReader * New()
int ReadAsymmetricTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read asymmetric tensors per element for this dataset.