Go to the documentation of this file.
26 #ifndef vtkGenericEnSightReader_h
27 #define vtkGenericEnSightReader_h
29 #include "vtkIOEnSightModule.h"
37 class TranslationTableType;
63 vtkGetStringMacro(CaseFileName);
70 vtkSetStringMacro(FilePath);
71 vtkGetStringMacro(FilePath);
78 vtkGetMacro(EnSightVersion,
int);
85 vtkGetMacro(NumberOfVariables,
int);
86 vtkGetMacro(NumberOfComplexVariables,
int);
94 vtkGetMacro(NumberOfScalarsPerNode,
int);
95 vtkGetMacro(NumberOfVectorsPerNode,
int);
96 vtkGetMacro(NumberOfTensorsSymmPerNode,
int);
97 vtkGetMacro(NumberOfScalarsPerElement,
int);
98 vtkGetMacro(NumberOfVectorsPerElement,
int);
99 vtkGetMacro(NumberOfTensorsSymmPerElement,
int);
100 vtkGetMacro(NumberOfScalarsPerMeasuredNode,
int);
101 vtkGetMacro(NumberOfVectorsPerMeasuredNode,
int);
102 vtkGetMacro(NumberOfComplexScalarsPerNode,
int);
103 vtkGetMacro(NumberOfComplexVectorsPerNode,
int);
104 vtkGetMacro(NumberOfComplexScalarsPerElement,
int);
105 vtkGetMacro(NumberOfComplexVectorsPerElement,
int);
143 vtkGetMacro(TimeValue,
float);
150 vtkGetMacro(MinimumTimeValue,
float);
151 vtkGetMacro(MaximumTimeValue,
float);
218 ENSIGHT_6_BINARY = 1,
220 ENSIGHT_GOLD_BINARY = 3,
221 ENSIGHT_MASTER_SERVER = 4
233 vtkSetMacro(ByteOrder,
int);
234 vtkGetMacro(ByteOrder,
int);
241 FILE_LITTLE_ENDIAN=1,
242 FILE_UNKNOWN_ENDIAN=2
250 vtkGetStringMacro(GeometryFileName);
326 vtkSetStringMacro(GeometryFileName);
356 void* clientdata,
void* calldata);
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
int GetNumberOfPointArrays()
Get the number of point or cell arrays available in the input.
int NumberOfVectorsPerNode
void AddVariableType(int variableType)
Add a variable type to the appropriate array.
int GetNumberOfVariables(int type)
Get the number of variables of a particular type.
int GetVariableType(int n)
Get the variable type of variable n.
const char * GetPointArrayName(int index)
Get the name of the point or cell array with the given index in the input.
virtual void SetTimeValue(float value)
Set/Get the time value at which to get the value.
void AddComplexVariableDescription(const char *description)
int NumberOfScalarsPerElement
vtkDataArrayCollection * TimeSets
int NumberOfTensorsSymmPerNode
maintain an ordered list of dataarray objects
void DestroyStringArray(int numStrings, char **strings)
@ IMPLICIT_STRUCTURED_MODE
vtkCallbackCommand * SelectionObserver
const char * GetDescription(int n)
Get the nth description for a non-complex variable.
abstract base class for most VTK objects
int DetermineEnSightVersion(int quiet=0)
Reads the FORMAT part of the case file to determine whether this is an EnSight6 or EnSightGold data s...
int NumberOfVectorsPerMeasuredNode
int GetNumberOfCellArrays()
virtual int CanReadFile(const char *casefilename)
Returns IsEnSightFile() by default, but can be overridden.
int GetPointArrayStatus(const char *name)
Get/Set whether the point or cell array with the given name is to be read.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int NumberOfScalarsPerMeasuredNode
char ** CreateStringArray(int numStrings)
int NumberOfTensorsSymmPerElement
int InsertNewPartId(int partId)
static bool IsEnSightFile(const char *casefilename)
Returns true if the file pointed to by casefilename appears to be a valid EnSight case file.
Store on/off settings for data arrays for a vtkSource.
int * ComplexVariableTypes
~vtkGenericEnSightReader() override
int NumberOfComplexVariables
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int NumberOfComplexScalarsPerElement
void SetByteOrderToLittleEndian()
int NumberOfScalarsPerNode
int NumberOfVectorsPerElement
void SetReaderDataArraySelectionSetsFromSelf()
TranslationTableType * TranslationTable
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
void SetPointArrayStatus(const char *name, int status)
const char * GetDescription(int n, int type)
Get the nth description of a particular variable type.
void ReplaceWildcardsHelper(char *fileName, int num)
a simple class to control print indentation
class to read any type of EnSight files
vtkDataArraySelection * PointDataArraySelection
char ** ComplexVariableDescriptions
maintain an ordered list of IdList objects
vtkTypeBool ParticleCoordinatesByIndex
virtual void ClearForNewCaseFileName()
Clear data structures such that setting a new case file name works.
int NumberOfComplexScalarsPerNode
vtkGenericEnSightReader * Reader
void SetCellArrayStatus(const char *name, int status)
int ReplaceWildcards(char *fileName, int timeSet, int fileSet)
Replace the wildcards in the geometry file name with appropriate filename numbers as specified in the...
int SelectionModifiedDoNotCallModified
vtkDataArraySelection * CellDataArraySelection
char ** VariableDescriptions
void SetCaseFileName(const char *fileName)
Set/Get the Case file name.
int GetCellArrayStatus(const char *name)
const char * GetByteOrderAsString()
void SetDataArraySelectionSetsFromVariables()
void SetByteOrderToBigEndian()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
vtkGenericEnSightReader * GetReader()
supports function callbacks
void SetDataArraySelectionSetsFromReader()
int ReadNextDataLine(char result[256])
static vtkGenericEnSightReader * New()
const char * GetCellArrayName(int index)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
const char * GetComplexDescription(int n)
Get the nth description for a complex variable.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int NumberOfComplexVectorsPerNode
vtkTypeBool ReadAllVariables
int GetComplexVariableType(int n)
vtkGenericEnSightReader()
virtual void SetTimeSets(vtkDataArrayCollection *)
void AddComplexVariableType(int variableType)
int ReadBinaryLine(char result[80])
Internal function to read up to 80 characters from a binary file.
void AddVariableDescription(const char *description)
Add a variable description to the appropriate array.
int NumberOfComplexVectorsPerElement
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.