20#ifndef vtkEnSightReader_h
21#define vtkEnSightReader_h
24#include "vtkIOEnSightModule.h"
28class vtkEnSightReaderCellIdsType;
57 NUMBER_OF_ELEMENT_TYPES = 17
64 TENSOR_SYMM_PER_NODE = 2,
65 SCALAR_PER_ELEMENT = 3,
66 VECTOR_PER_ELEMENT = 4,
67 TENSOR_SYMM_PER_ELEMENT = 5,
68 SCALAR_PER_MEASURED_NODE = 6,
69 VECTOR_PER_MEASURED_NODE = 7,
70 COMPLEX_SCALAR_PER_NODE = 8,
71 COMPLEX_VECTOR_PER_NODE = 9,
72 COMPLEX_SCALAR_PER_ELEMENT = 10,
73 COMPLEX_VECTOR_PER_ELEMENT = 11,
74 TENSOR_ASYM_PER_NODE = 12,
75 TENSOR_ASYM_PER_ELEMENT = 13
162 int component = 0) = 0;
258 void ReplaceWildcards(
char* filename,
int num);
266 void RemoveLeadingBlanks(
char* line);
288 char* MeasuredFileName;
292 vtkEnSightReaderCellIdsType* CellIds;
300 char** VariableFileNames;
301 char** ComplexVariableFileNames;
331 float GeometryTimeValue;
332 float MeasuredTimeValue;
344 int NumberOfGeometryParts;
347 int NumberOfMeasuredPoints;
349 int NumberOfNewOutputs;
352 int CheckOutputConsistency();
354 double ActualTimeValue;
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
superclass for EnSight file readers
int GetSectionType(const char *line)
Determine the section type from a line read a file.
virtual int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per element for this dataset.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read vectors per element for this dataset.
int GetElementType(const char *line)
Determine the element type from a line read a file.
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 ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0)=0
Read vectors per node for this dataset.
vtkGetFilePathMacro(MeasuredFileName)
Get the Measured file name.
void AddVariableType()
Record the variable type for the variable line just read.
void AddVariableDescription(const char *description)
Add another description to the list for a particular variable type.
int ReadCaseFileTime(char *line)
Read the case file.
virtual int ReadAsymmetricTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read asymmetric tensors per node for this dataset.
virtual int ReadAsymmetricTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read asymmetric tensors per element 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.
int ReadCaseFileVariable(char *line)
Read the case file.
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.
vtkGetFilePathMacro(MatchFileName)
Get the Match file name.
virtual int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the measured geometry file.
int ReadCaseFile()
Read the case file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(MeasuredFileName)
Set the Measured file name.
~vtkEnSightReader() override
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 ReadCaseFileFile(char *line)
Read the case file.
void ClearForNewCaseFileName() override
Clear data structures such that setting a new case file name works.
int ReadVariableFiles(vtkMultiBlockDataSet *output)
Read the variable files.
int ReadCaseFileGeometry(char *line)
Read the case file.
vtkSetFilePathMacro(MatchFileName)
Set the Match file name.
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.
void AddVariableFileName(const char *fileName1, const char *fileName2=nullptr)
Add another file name to the list for a particular variable type.
class to read any type of EnSight files
maintain an ordered list of IdList objects
list of point or cell ids
a simple class to control print indentation
Composite dataset that organizes datasets into blocks.
#define VTK_DEPRECATED_IN_9_1_0(reason)