26 #ifndef vtkGenericEnSightReader_h
27 #define vtkGenericEnSightReader_h
29 #include "vtkIOEnSightModule.h"
37 class TranslationTableType;
70 vtkSetStringMacro(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);
175 vtkGetMacro(ReadAllVariables,
int);
218 ENSIGHT_6_BINARY = 1,
220 ENSIGHT_GOLD_BINARY = 3,
221 ENSIGHT_MASTER_SERVER = 4
234 vtkGetMacro(ByteOrder,
int);
241 FILE_LITTLE_ENDIAN=1,
242 FILE_UNKNOWN_ENDIAN=2
267 vtkGetMacro(ParticleCoordinatesByIndex,
int);
321 vtkSetStringMacro(GeometryFileName);
351 void* clientdata,
void* calldata);
supports function callbacks
maintain an unordered list of dataarray objects
Store on/off settings for data arrays for a vtkSource.
class to read any type of EnSight files
vtkDataArraySelection * PointDataArraySelection
int ReadNextDataLine(char result[256])
int InsertNewPartId(int partId)
virtual void SetTimeSets(vtkDataArrayCollection *)
void SetReaderDataArraySelectionSetsFromSelf()
int NumberOfVectorsPerMeasuredNode
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
const char * GetComplexDescription(int n)
Get the nth description for a complex variable.
vtkGenericEnSightReader * Reader
void SetCellArrayStatus(const char *name, int status)
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...
const char * GetByteOrderAsString()
int GetNumberOfVariables(int type)
Get the number of variables of a particular type.
void ReplaceWildcardsHelper(char *fileName, int num)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void DestroyStringArray(int numStrings, char **strings)
int * ComplexVariableTypes
void AddComplexVariableType(int variableType)
int NumberOfVectorsPerElement
vtkDataArrayCollection * TimeSets
virtual void SetTimeValue(float value)
Set/Get the time value at which to get the value.
const char * GetDescription(int n)
Get the nth description for a non-complex variable.
int ParticleCoordinatesByIndex
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
int NumberOfComplexScalarsPerElement
int ReplaceWildcards(char *fileName, int timeSet, int fileSet)
Replace the wildcards in the geometry file name with appropriate filename numbers as specified in the...
char ** CreateStringArray(int numStrings)
int GetComplexVariableType(int n)
int NumberOfComplexVectorsPerElement
virtual void ClearForNewCaseFileName()
Clear data structures such that setting a new case file name works.
const char * GetPointArrayName(int index)
Get the name of the point or cell array with the given index in the input.
int GetNumberOfCellArrays()
static vtkGenericEnSightReader * New()
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)
int NumberOfScalarsPerElement
int NumberOfVectorsPerNode
int NumberOfComplexVectorsPerNode
int ReadBinaryLine(char result[80])
Internal function to read up to 80 characters from a binary file.
int SelectionModifiedDoNotCallModified
static int CanReadFile(const char *casefilename)
Returns true if the file pointed to by casefilename appears to be a valid EnSight case file.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkGenericEnSightReader()
int GetVariableType(int n)
Get the variable type of variable n.
void SetCaseFileName(const char *fileName)
Set/Get the Case file name.
const char * GetCellArrayName(int index)
vtkGenericEnSightReader * GetReader()
const char * GetDescription(int n, int type)
Get the nth description of a particular variable type.
void SetDataArraySelectionSetsFromReader()
int NumberOfTensorsSymmPerNode
void AddComplexVariableDescription(const char *description)
int NumberOfTensorsSymmPerElement
char ** ComplexVariableDescriptions
~vtkGenericEnSightReader()
int NumberOfScalarsPerNode
void SetPointArrayStatus(const char *name, int status)
void AddVariableDescription(const char *description)
Add a variable description to the appropriate array.
TranslationTableType * TranslationTable
void AddVariableType(int variableType)
Add a variable type to the appropriate array.
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()
int NumberOfComplexScalarsPerNode
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 unordered list of dataarray 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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.