23#ifndef vtkGenericEnSightReader_h
24#define vtkGenericEnSightReader_h
26#include "vtkIOEnSightModule.h"
34class TranslationTableType;
75 vtkGetMacro(EnSightVersion,
int);
82 vtkGetMacro(NumberOfVariables,
int);
83 vtkGetMacro(NumberOfComplexVariables,
int);
91 vtkGetMacro(NumberOfScalarsPerNode,
int);
92 vtkGetMacro(NumberOfVectorsPerNode,
int);
93 vtkGetMacro(NumberOfTensorsAsymPerNode,
int);
94 vtkGetMacro(NumberOfTensorsSymmPerNode,
int);
95 vtkGetMacro(NumberOfScalarsPerElement,
int);
96 vtkGetMacro(NumberOfVectorsPerElement,
int);
97 vtkGetMacro(NumberOfTensorsAsymPerElement,
int);
98 vtkGetMacro(NumberOfTensorsSymmPerElement,
int);
99 vtkGetMacro(NumberOfScalarsPerMeasuredNode,
int);
100 vtkGetMacro(NumberOfVectorsPerMeasuredNode,
int);
101 vtkGetMacro(NumberOfComplexScalarsPerNode,
int);
102 vtkGetMacro(NumberOfComplexVectorsPerNode,
int);
103 vtkGetMacro(NumberOfComplexScalarsPerElement,
int);
104 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
358 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
supports function callbacks
maintain an ordered list of dataarray objects
Store on/off settings for data arrays for a vtkSource.
class to read any type of EnSight files
vtkDataArraySelection * PointDataArraySelection
vtkTypeBool ReadAllVariables
bool SkipDataLine(char line[256])
Skip certain non-comment lines that are not needed.
int ReadNextDataLine(char result[256])
int InsertNewPartId(int partId)
virtual void SetTimeSets(vtkDataArrayCollection *)
static void ReplaceWildcardsHelper(char *fileName, int num)
Replace the *'s in the filename with the given filename number.
void SetReaderDataArraySelectionSetsFromSelf()
const char * GetComplexDescription(int n)
Get the nth description for a complex variable.
int NumberOfVectorsPerMeasuredNode
int NumberOfTensorsAsymPerNode
const char * GetCellArrayName(int index)
Get the name of the point or cell array with the given index in the input.
int NumberOfTensorsAsymPerElement
char ** CreateStringArray(int numStrings)
vtkGenericEnSightReader * GetReader()
vtkGenericEnSightReader * Reader
void SetCellArrayStatus(const char *name, int status)
Get/Set whether the point or cell array with the given name is to be read.
int NumberOfComplexVariables
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 GetNumberOfVariables(int type)
Get the number of variables of a particular type.
const char * GetByteOrderAsString()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void DestroyStringArray(int numStrings, char **strings)
int * ComplexVariableTypes
void AddComplexVariableType(int variableType)
Add a variable type to the appropriate array.
int NumberOfVectorsPerElement
vtkDataArrayCollection * TimeSets
virtual void SetTimeValue(float value)
Set/Get the time value at which to get the value.
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
int NumberOfComplexScalarsPerElement
~vtkGenericEnSightReader() override
int ReplaceWildcards(char *fileName, int timeSet, int fileSet)
Replace the wildcards in the geometry file name with appropriate filename numbers as specified in the...
vtkGetFilePathMacro(GeometryFileName)
Get the Geometry file name.
int GetComplexVariableType(int n)
Get the variable type of variable n.
int NumberOfComplexVectorsPerElement
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSetFilePathMacro(GeometryFileName)
Set the geometry file name.
virtual void ClearForNewCaseFileName()
Clear data structures such that setting a new case file name works.
const char * GetDescription(int n, int type)
Get the nth description of a particular variable type.
int GetNumberOfCellArrays()
Get the number of point or cell arrays available in the input.
void SetCaseFileName(VTK_FILEPATH const char *fileName)
Set/Get the Case file name.
int GetPointArrayStatus(const char *name)
Get/Set whether the point or cell array with the given name is to be read.
int GetCellArrayStatus(const char *name)
Get/Set whether the point or cell array with the given name is to be read.
int NumberOfScalarsPerElement
int NumberOfVectorsPerNode
const char * GetDescription(int n)
Get the nth description for a non-complex variable.
int NumberOfComplexVectorsPerNode
int ReadBinaryLine(char result[80])
Internal function to read up to 80 characters from a binary file.
int SelectionModifiedDoNotCallModified
static bool IsEnSightFile(VTK_FILEPATH const char *casefilename)
Returns true if the file pointed to by casefilename appears to be a valid EnSight case file.
vtkGenericEnSightReader()
vtkGetFilePathMacro(FilePath)
Set/Get the file path.
const char * GetPointArrayName(int index)
Get the name of the point or cell array with the given index in the input.
int GetVariableType(int n)
Get the variable type of variable n.
virtual int CanReadFile(VTK_FILEPATH const char *casefilename)
Returns IsEnSightFile() by default, but can be overridden.
void SetDataArraySelectionSetsFromReader()
int NumberOfTensorsSymmPerNode
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void AddComplexVariableDescription(const char *description)
Add a variable description to the appropriate array.
int NumberOfTensorsSymmPerElement
char ** ComplexVariableDescriptions
int NumberOfScalarsPerNode
void SetPointArrayStatus(const char *name, int status)
Get/Set whether the point or cell array with the given name is to be read.
void AddVariableDescription(const char *description)
Add a variable description to the appropriate array.
vtkGetFilePathMacro(CaseFileName)
Set/Get the Case file name.
TranslationTableType * TranslationTable
vtkTypeBool ParticleCoordinatesByIndex
void AddVariableType(int variableType)
Add a variable type to the appropriate array.
vtkSetFilePathMacro(FilePath)
Set/Get the file path.
vtkCallbackCommand * SelectionObserver
int NumberOfScalarsPerMeasuredNode
char ** VariableDescriptions
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
void SetDataArraySelectionSetsFromVariables()
void SetByteOrderToLittleEndian()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
static vtkGenericEnSightReader * New()
int NumberOfComplexScalarsPerNode
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArraySelection * CellDataArraySelection
int GetNumberOfPointArrays()
Get the number of point or cell arrays available in the input.
void SetByteOrderToBigEndian()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
maintain an ordered list of IdList objects
a simple class to control print indentation
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
abstract base class for most VTK objects
@ IMPLICIT_STRUCTURED_MODE