Go to the documentation of this file.
20 #ifndef vtkEnSightReader_h
21 #define vtkEnSightReader_h
23 #include "vtkIOEnSightModule.h"
29 class vtkEnSightReaderCellIdsType;
58 NUMBER_OF_ELEMENT_TYPES = 17
65 TENSOR_SYMM_PER_NODE = 2,
66 SCALAR_PER_ELEMENT = 3,
67 VECTOR_PER_ELEMENT = 4,
68 TENSOR_SYMM_PER_ELEMENT = 5,
69 SCALAR_PER_MEASURED_NODE = 6,
70 VECTOR_PER_MEASURED_NODE = 7,
71 COMPLEX_SCALAR_PER_NODE = 8,
72 COMPLEX_VECTOR_PER_NODE = 9,
73 COMPLEX_SCALAR_PER_ELEMENT = 10,
74 COMPLEX_VECTOR_PER_ELEMENT = 11
89 vtkGetStringMacro(MeasuredFileName);
97 vtkGetStringMacro(MatchFileName);
117 vtkSetStringMacro(MeasuredFileName);
124 vtkSetStringMacro(MatchFileName);
165 int measured = 0,
int numberOfComponents = 1,
174 int measured = 0) = 0;
189 int numberOfComponents = 1,
269 unsigned int blockNo,
277 unsigned int blockNo);
vtkIdListCollection * FileSetFileNameNumbers
vtkIdList * VariableFileSetIds
superclass for EnSight file readers
char ** ComplexVariableFileNames
int ReadCaseFile()
Read the case file.
int NumberOfMeasuredPoints
vtkIdList * TimeSetsWithFilenameNumbers
vtkIdList * VariableTimeSetIds
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.
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 AddVariableFileName(const char *fileName1, const char *fileName2=nullptr)
Add another file name to the list for a particular variable type.
int ReadCaseFileTime(char *line)
int ReadCaseFileGeometry(char *line)
char ** VariableFileNames
int GetElementType(const char *line)
Determine the element type from a line read a file.
void SetBlockName(vtkMultiBlockDataSet *output, unsigned int blockNo, const char *name)
Set the name of a block.
Composite dataset that organizes datasets into blocks.
void RemoveLeadingBlanks(char *line)
Remove leading blank spaces from a string.
~vtkEnSightReader() override
int ReadVariableFiles(vtkMultiBlockDataSet *output)
Read the variable files.
int GetSectionType(const char *line)
Determine the section type from a line read a file.
void ClearForNewCaseFileName() override
Clear data structures such that setting a new case file name works.
void ReplaceWildcards(char *filename, int num)
Replace the *'s in the filename with the given filename number.
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.
vtkIdList * ComplexVariableFileSetIds
vtkIdList * GetCellIds(int index, int cellType)
int ReadCaseFileVariable(char *line)
vtkIdList * FileSetsWithFilenameNumbers
void AddVariableType()
Record the variable type for the variable line just read.
a simple class to control print indentation
class to read any type of EnSight files
vtkIdList * UnstructuredPartIds
list of point or cell ids
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 ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read vectors per element for this dataset.
virtual int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per element for this dataset.
maintain an ordered list of IdList objects
vtkIdListCollection * FileSetNumberOfSteps
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.
abstract class to specify dataset behavior
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void AddToBlock(vtkMultiBlockDataSet *output, unsigned int blockNo, vtkDataSet *dataset)
Convenience method use to convert the readers from VTK 5 multiblock API to the current composite data...
virtual int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the measured geometry file.
virtual int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the geometry file.
void AddVariableDescription(const char *description)
Add another description to the list for a particular variable type.
vtkIdListCollection * TimeSetFileNameNumbers
int ReadCaseFileFile(char *line)
maintain an unordered list of dataset objects
vtkEnSightReaderCellIdsType * CellIds
int NumberOfGeometryParts
virtual int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per node for this dataset.
vtkIdList * ComplexVariableTimeSetIds
int CheckOutputConsistency()
vtkDataSet * GetDataSetFromBlock(vtkMultiBlockDataSet *output, unsigned int blockNo)
Convenience method use to convert the readers from VTK 5 multiblock API to the current composite data...