23 #ifndef vtkGenericEnSightReader_h
24 #define vtkGenericEnSightReader_h
26 #include "vtkIOEnSightModule.h"
34 class TranslationTableType;
60 vtkGetStringMacro(CaseFileName);
67 vtkSetStringMacro(FilePath);
68 vtkGetStringMacro(FilePath);
75 vtkGetMacro(EnSightVersion,
int);
82 vtkGetMacro(NumberOfVariables,
int);
83 vtkGetMacro(NumberOfComplexVariables,
int);
91 vtkGetMacro(NumberOfScalarsPerNode,
int);
92 vtkGetMacro(NumberOfVectorsPerNode,
int);
93 vtkGetMacro(NumberOfTensorsSymmPerNode,
int);
94 vtkGetMacro(NumberOfScalarsPerElement,
int);
95 vtkGetMacro(NumberOfVectorsPerElement,
int);
96 vtkGetMacro(NumberOfTensorsSymmPerElement,
int);
97 vtkGetMacro(NumberOfScalarsPerMeasuredNode,
int);
98 vtkGetMacro(NumberOfVectorsPerMeasuredNode,
int);
99 vtkGetMacro(NumberOfComplexScalarsPerNode,
int);
100 vtkGetMacro(NumberOfComplexVectorsPerNode,
int);
101 vtkGetMacro(NumberOfComplexScalarsPerElement,
int);
102 vtkGetMacro(NumberOfComplexVectorsPerElement,
int);
140 vtkGetMacro(TimeValue,
float);
147 vtkGetMacro(MinimumTimeValue,
float);
148 vtkGetMacro(MaximumTimeValue,
float);
215 ENSIGHT_6_BINARY = 1,
217 ENSIGHT_GOLD_BINARY = 3,
218 ENSIGHT_MASTER_SERVER = 4
230 vtkSetMacro(ByteOrder,
int);
231 vtkGetMacro(ByteOrder,
int);
238 FILE_LITTLE_ENDIAN = 1,
239 FILE_UNKNOWN_ENDIAN = 2
247 vtkGetStringMacro(GeometryFileName);
318 vtkSetStringMacro(GeometryFileName);
348 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
int ReadNextDataLine(char result[256])
int InsertNewPartId(int partId)
virtual void SetTimeSets(vtkDataArrayCollection *)
void SetReaderDataArraySelectionSetsFromSelf()
int NumberOfVectorsPerMeasuredNode
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)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
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.
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
static bool IsEnSightFile(const char *casefilename)
Returns true if the file pointed to by casefilename appears to be a valid EnSight case file.
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...
char ** CreateStringArray(int numStrings)
int GetComplexVariableType(int n)
int NumberOfComplexVectorsPerElement
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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()
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 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
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
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void AddComplexVariableDescription(const char *description)
int NumberOfTensorsSymmPerElement
char ** ComplexVariableDescriptions
int NumberOfScalarsPerNode
void SetPointArrayStatus(const char *name, int status)
void AddVariableDescription(const char *description)
Add a variable description to the appropriate array.
TranslationTableType * TranslationTable
vtkTypeBool ParticleCoordinatesByIndex
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
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