26 #ifndef vtkGenericEnSightReader_h
27 #define vtkGenericEnSightReader_h
29 #include "vtkIOEnSightModule.h"
37 class TranslationTableType;
62 void SetCaseFileName(
const char* fileName);
70 vtkSetStringMacro(FilePath);
78 vtkGetMacro(EnSightVersion,
int);
85 vtkGetMacro(NumberOfVariables,
int);
86 vtkGetMacro(NumberOfComplexVariables,
int);
93 int GetNumberOfVariables(
int type);
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);
111 const char* GetDescription(
int n);
116 const char* GetComplexDescription(
int n);
128 const char* GetDescription(
int n,
int type);
134 int GetVariableType(
int n);
135 int GetComplexVariableType(
int n);
142 virtual void SetTimeValue(
float value);
143 vtkGetMacro(TimeValue,
float);
150 vtkGetMacro(MinimumTimeValue,
float);
151 vtkGetMacro(MaximumTimeValue,
float);
167 int DetermineEnSightVersion(
int quiet=0);
175 vtkGetMacro(ReadAllVariables,
int);
191 int GetNumberOfPointArrays();
192 int GetNumberOfCellArrays();
200 const char* GetPointArrayName(
int index);
201 const char* GetCellArrayName(
int index);
209 int GetPointArrayStatus(
const char*
name);
210 int GetCellArrayStatus(
const char*
name);
211 void SetPointArrayStatus(
const char*
name,
int status);
212 void SetCellArrayStatus(
const char*
name,
int status);
218 ENSIGHT_6_BINARY = 1,
220 ENSIGHT_GOLD_BINARY = 3,
221 ENSIGHT_MASTER_SERVER = 4
231 void SetByteOrderToBigEndian();
232 void SetByteOrderToLittleEndian();
234 vtkGetMacro(ByteOrder,
int);
235 const char *GetByteOrderAsString();
241 FILE_LITTLE_ENDIAN=1,
242 FILE_UNKNOWN_ENDIAN=2
267 vtkGetMacro(ParticleCoordinatesByIndex,
int);
275 static int CanReadFile(
const char *casefilename);
298 virtual void ClearForNewCaseFileName();
304 int ReadLine(
char result[256]);
310 int ReadBinaryLine(
char result[80]);
315 int ReadNextDataLine(
char result[256]);
321 vtkSetStringMacro(GeometryFileName);
328 void AddVariableDescription(
const char*
description);
329 void AddComplexVariableDescription(
const char*
description);
336 void AddVariableType(
int variableType);
337 void AddComplexVariableType(
int variableType);
345 int ReplaceWildcards(
char* fileName,
int timeSet,
int fileSet);
346 void ReplaceWildcardsHelper(
char* fileName,
int num);
350 static void SelectionModifiedCallback(
vtkObject* caller,
unsigned long eid,
351 void* clientdata,
void* calldata);
352 void SelectionModified();
355 char** CreateStringArray(
int numStrings);
356 void DestroyStringArray(
int numStrings,
char** strings);
360 void SetDataArraySelectionSetsFromVariables();
364 void SetDataArraySelectionSetsFromReader();
368 void SetReaderDataArraySelectionSetsFromSelf();
436 int InsertNewPartId(
int partId);
vtkDataArrayCollection * TimeSets
int NumberOfComplexVectorsPerNode
vtkCallbackCommand * SelectionObserver
abstract base class for most VTK objects
int NumberOfVectorsPerMeasuredNode
int NumberOfTensorsSymmPerNode
int NumberOfScalarsPerMeasuredNode
int NumberOfComplexScalarsPerElement
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
int NumberOfScalarsPerElement
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int NumberOfTensorsSymmPerElement
static vtkMultiBlockDataSetAlgorithm * New()
vtkDataArraySelection * PointDataArraySelection
supports function callbacks
int NumberOfComplexVariables
int NumberOfComplexScalarsPerNode
a simple class to control print indentation
Store on/off settings for data arrays for a vtkSource.
int * ComplexVariableTypes
char ** ComplexVariableDescriptions
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
int NumberOfScalarsPerNode
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int NumberOfVectorsPerElement
TranslationTableType * TranslationTable
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkGenericEnSightReader * Reader
maintain an unordered list of dataarray objects
char ** VariableDescriptions
maintain an unordered list of dataarray objects
int SelectionModifiedDoNotCallModified
vtkDataArraySelection * CellDataArraySelection
class to read any type of EnSight files
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int NumberOfVectorsPerNode
int NumberOfComplexVectorsPerElement
int ParticleCoordinatesByIndex
vtkGenericEnSightReader * GetReader()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.