VTK
|
class to read binary EnSight6 files More...
#include <vtkEnSight6BinaryReader.h>
Public Types | |
typedef vtkEnSightReader | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkEnSight6BinaryReader * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkEnSight6BinaryReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkEnSight6BinaryReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkEnSight6BinaryReader () | |
~vtkEnSight6BinaryReader () | |
int | OpenFile (const char *filename) |
int | ReadLine (char result[80]) |
int | ReadIntNumber (int *result) |
int | ReadIntArray (int *result, int numInts) |
int | ReadFloatArray (float *result, int numFloats) |
virtual int | ReadGeometryFile (const char *fileName, int timeStep, vtkMultiBlockDataSet *output) |
virtual int | ReadMeasuredGeometryFile (const char *fileName, int timeStep, vtkMultiBlockDataSet *output) |
virtual int | ReadScalarsPerNode (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0) |
virtual int | ReadVectorsPerNode (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0) |
virtual int | ReadTensorsPerNode (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) |
virtual int | ReadScalarsPerElement (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0) |
virtual int | ReadVectorsPerElement (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) |
virtual int | ReadTensorsPerElement (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) |
virtual int | CreateUnstructuredGridOutput (int partId, char line[256], const char *name, vtkMultiBlockDataSet *output) |
virtual int | CreateStructuredGridOutput (int partId, char line[256], const char *name, vtkMultiBlockDataSet *output) |
int | SkipTimeStep () |
int | SkipStructuredGrid (char line[256]) |
int | SkipUnstructuredGrid (char line[256]) |
Protected Attributes | |
int | NumberOfUnstructuredPoints |
vtkPoints * | UnstructuredPoints |
vtkIdTypeArray * | UnstructuredNodeIds |
int | ElementIdsListed |
int | FileSize |
ifstream * | IFile |
class to read binary EnSight6 files
vtkEnSight6BinaryReader is a class to read binary EnSight6 files into vtk. Because the different parts of the EnSight data can be of various data types, this reader produces multiple outputs, one per part in the input file. All variable information is being stored in field data. The descriptions listed in the case file are used as the array names in the field data. For complex vector variables, the description is appended with _r (for the array of real values) and _i (for the array if imaginary values). Complex scalar variables are stored as a single array with 2 components, real and imaginary, listed in that order.
Definition at line 47 of file vtkEnSight6BinaryReader.h.
Reimplemented from vtkEnSightReader.
Definition at line 51 of file vtkEnSight6BinaryReader.h.
vtkEnSight6BinaryReader::vtkEnSight6BinaryReader | ( | ) | [protected] |
vtkEnSight6BinaryReader::~vtkEnSight6BinaryReader | ( | ) | [protected] |
static vtkEnSight6BinaryReader* vtkEnSight6BinaryReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkGenericEnSightReader.
static int vtkEnSight6BinaryReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkEnSightReader.
static vtkEnSight6BinaryReader* vtkEnSight6BinaryReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkEnSightReader.
virtual vtkObjectBase* vtkEnSight6BinaryReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkEnSightReader.
Reimplemented from vtkEnSightReader.
virtual void vtkEnSight6BinaryReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkEnSightReader.
int vtkEnSight6BinaryReader::OpenFile | ( | const char * | filename | ) | [protected] |
virtual int vtkEnSight6BinaryReader::ReadGeometryFile | ( | const char * | fileName, |
int | timeStep, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read the geometry file. If an error occurred, 0 is returned; otherwise 1.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadMeasuredGeometryFile | ( | const char * | fileName, |
int | timeStep, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read the measured geometry file. If an error occurred, 0 is returned; otherwise 1.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadScalarsPerNode | ( | const char * | fileName, |
const char * | description, | ||
int | timeStep, | ||
vtkMultiBlockDataSet * | output, | ||
int | measured = 0 , |
||
int | numberOfComponents = 1 , |
||
int | component = 0 |
||
) | [protected, virtual] |
Read scalars per node for this dataset. If an error occurred, 0 is returned; otherwise 1. If there will be more than one component in the scalars array, we assume that 0 is the first component added to the array.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadVectorsPerNode | ( | const char * | fileName, |
const char * | description, | ||
int | timeStep, | ||
vtkMultiBlockDataSet * | output, | ||
int | measured = 0 |
||
) | [protected, virtual] |
Read vectors per node for this dataset. If an error occurred, 0 is returned; otherwise 1.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadTensorsPerNode | ( | const char * | fileName, |
const char * | description, | ||
int | timeStep, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read tensors per node for this dataset. If an error occurred, 0 is returned; otherwise 1.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadScalarsPerElement | ( | const char * | fileName, |
const char * | description, | ||
int | timeStep, | ||
vtkMultiBlockDataSet * | output, | ||
int | numberOfComponents = 1 , |
||
int | component = 0 |
||
) | [protected, virtual] |
Read scalars per element for this dataset. If an error occurred, 0 is returned; otherwise 1. If there will be more than one component in the scalars array, we assume that 0 is the first component added to the array.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadVectorsPerElement | ( | const char * | fileName, |
const char * | description, | ||
int | timeStep, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read vectors per element for this dataset. If an error occurred, 0 is returned; otherwise 1.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::ReadTensorsPerElement | ( | const char * | fileName, |
const char * | description, | ||
int | timeStep, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read tensors per element for this dataset. If an error occurred, 0 is returned; otherwise 1.
Implements vtkEnSightReader.
virtual int vtkEnSight6BinaryReader::CreateUnstructuredGridOutput | ( | int | partId, |
char | line[256], | ||
const char * | name, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output. Return 0 if EOF reached.
virtual int vtkEnSight6BinaryReader::CreateStructuredGridOutput | ( | int | partId, |
char | line[256], | ||
const char * | name, | ||
vtkMultiBlockDataSet * | output | ||
) | [protected, virtual] |
Read a structured part from the geometry file and create a vtkStructuredGridOutput. Return 0 if EOF reached.
int vtkEnSight6BinaryReader::ReadLine | ( | char | result[80] | ) | [protected] |
Internal function to read in a line up to 80 characters. Returns zero if there was an error.
int vtkEnSight6BinaryReader::ReadIntNumber | ( | int * | result | ) | [protected] |
Internal function to read in a single integer. Tries to determine the byte order of this file. Returns zero if there was an error.
int vtkEnSight6BinaryReader::ReadIntArray | ( | int * | result, |
int | numInts | ||
) | [protected] |
Internal function to read in an integer array. Returns zero if there was an error.
int vtkEnSight6BinaryReader::ReadFloatArray | ( | float * | result, |
int | numFloats | ||
) | [protected] |
Internal function to read in a float array. Returns zero if there was an error.
int vtkEnSight6BinaryReader::SkipTimeStep | ( | ) | [protected] |
Read to the next time step in the geometry file.
int vtkEnSight6BinaryReader::SkipStructuredGrid | ( | char | line[256] | ) | [protected] |
Read to the next time step in the geometry file.
int vtkEnSight6BinaryReader::SkipUnstructuredGrid | ( | char | line[256] | ) | [protected] |
Read to the next time step in the geometry file.
Definition at line 169 of file vtkEnSight6BinaryReader.h.
vtkPoints* vtkEnSight6BinaryReader::UnstructuredPoints [protected] |
Definition at line 170 of file vtkEnSight6BinaryReader.h.
Definition at line 171 of file vtkEnSight6BinaryReader.h.
int vtkEnSight6BinaryReader::ElementIdsListed [protected] |
Definition at line 173 of file vtkEnSight6BinaryReader.h.
int vtkEnSight6BinaryReader::FileSize [protected] |
Definition at line 176 of file vtkEnSight6BinaryReader.h.
ifstream* vtkEnSight6BinaryReader::IFile [protected] |
Reimplemented from vtkGenericEnSightReader.
Definition at line 178 of file vtkEnSight6BinaryReader.h.