Go to the documentation of this file.
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);
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static int CanReadFile(const char *casefilename)
Returns true if the file pointed to by casefilename appears to be a valid EnSight case file.
int GetNumberOfPointArrays()
Get the number of point or cell arrays available in the input.
int NumberOfVectorsPerNode
~vtkGenericEnSightReader()
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)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int NumberOfScalarsPerElement
vtkDataArrayCollection * TimeSets
int NumberOfTensorsSymmPerNode
maintain an unordered 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()
int GetPointArrayStatus(const char *name)
Get/Set whether the point or cell array with the given name is to be read.
int NumberOfScalarsPerMeasuredNode
char ** CreateStringArray(int numStrings)
int NumberOfTensorsSymmPerElement
int InsertNewPartId(int partId)
Store on/off settings for data arrays for a vtkSource.
int * ComplexVariableTypes
int NumberOfComplexVariables
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 unordered list of dataarray objects
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkDataArraySelection * CellDataArraySelection
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
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()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
supports function callbacks
void SetDataArraySelectionSetsFromReader()
int ReadNextDataLine(char result[256])
static vtkGenericEnSightReader * New()
const char * GetCellArrayName(int index)
const char * GetComplexDescription(int n)
Get the nth description for a complex variable.
int NumberOfComplexVectorsPerNode
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
int ParticleCoordinatesByIndex
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.