 |
VTK
9.1.0
|
Go to the documentation of this file.
20 #ifndef vtkEnSightReader_h
21 #define vtkEnSightReader_h
24 #include "vtkIOEnSightModule.h"
28 class 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
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;
vtkGetFilePathMacro(MatchFileName)
Get the Match file name.
vtkGetFilePathMacro(MeasuredFileName)
Get the Measured file name.
superclass for EnSight file readers
int ReadCaseFile()
Read the case file.
vtkSetFilePathMacro(MeasuredFileName)
Set the Measured file name.
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.
vtkSetFilePathMacro(MatchFileName)
Set the Match file name.
void AddVariableFileName(const char *fileName1, const char *fileName2=nullptr)
Add another file name to the list for a particular variable type.
#define VTK_DEPRECATED_IN_9_1_0(reason)
int ReadCaseFileTime(char *line)
Read the case file.
int ReadCaseFileGeometry(char *line)
Read the case file.
int GetElementType(const char *line)
Determine the element type from a line read a file.
Composite dataset that organizes datasets into blocks.
~vtkEnSightReader() override
virtual int ReadAsymmetricTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read asymmetric tensors per node for this dataset.
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.
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.
int ReadCaseFileVariable(char *line)
Read the case file.
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
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
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.
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.
int ReadCaseFileFile(char *line)
Read the case file.
maintain an unordered list of dataset objects
virtual int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read 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.