 |
VTK
9.1.0
|
Go to the documentation of this file.
23 #ifndef vtkGenericEnSightReader_h
24 #define vtkGenericEnSightReader_h
26 #include "vtkIOEnSightModule.h"
34 class 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
349 int ReplaceWildcards(
char* fileName,
int timeSet,
int fileSet);
358 vtkObject* caller,
unsigned long eid,
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 SetCaseFileName(VTK_FILEPATH const char *fileName)
Set/Get the Case file name.
void AddComplexVariableDescription(const char *description)
Add a variable description to the appropriate array.
static void ReplaceWildcardsHelper(char *fileName, int num)
Replace the *'s in the filename with the given filename number.
int NumberOfScalarsPerElement
vtkDataArrayCollection * TimeSets
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.
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()
Get the number of point or cell arrays available in the input.
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)
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()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
int NumberOfScalarsPerNode
int NumberOfVectorsPerElement
int NumberOfTensorsAsymPerElement
void SetReaderDataArraySelectionSetsFromSelf()
TranslationTableType * TranslationTable
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
void SetPointArrayStatus(const char *name, int status)
Get/Set whether the point or cell array with the given name is to be read.
vtkGetFilePathMacro(FilePath)
Set/Get the file path.
const char * GetDescription(int n, int type)
Get the nth description of a particular variable type.
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)
Get/Set whether the point or cell array with the given name is to be read.
vtkSetFilePathMacro(GeometryFileName)
Set the geometry file name.
int SelectionModifiedDoNotCallModified
vtkDataArraySelection * CellDataArraySelection
char ** VariableDescriptions
int GetCellArrayStatus(const char *name)
Get/Set whether the point or cell array with the given name is to be read.
const char * GetByteOrderAsString()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
void SetDataArraySelectionSetsFromVariables()
void SetByteOrderToBigEndian()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
vtkGenericEnSightReader * GetReader()
vtkGetFilePathMacro(CaseFileName)
Set/Get the Case file name.
supports function callbacks
void SetDataArraySelectionSetsFromReader()
int ReadNextDataLine(char result[256])
static vtkGenericEnSightReader * New()
const char * GetCellArrayName(int index)
Get the name of the point or cell array with the given index in the input.
int NumberOfTensorsAsymPerNode
bool SkipDataLine(char line[256])
Skip certain non-comment lines that are not needed.
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.
virtual int CanReadFile(VTK_FILEPATH const char *casefilename)
Returns IsEnSightFile() by default, but can be overridden.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int NumberOfComplexVectorsPerNode
vtkTypeBool ReadAllVariables
vtkGetFilePathMacro(GeometryFileName)
Get the Geometry file name.
int GetComplexVariableType(int n)
Get the variable type of variable n.
vtkGenericEnSightReader()
virtual void SetTimeSets(vtkDataArrayCollection *)
void AddComplexVariableType(int variableType)
Add a variable type to the appropriate array.
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
vtkSetFilePathMacro(FilePath)
Set/Get the file path.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.