23 #ifndef vtkGenericEnSightReader_h 24 #define vtkGenericEnSightReader_h 26 #include "vtkIOEnSightModule.h" 34 class TranslationTableType;
59 void SetCaseFileName(
const char* fileName);
67 vtkSetStringMacro(FilePath);
75 vtkGetMacro(EnSightVersion,
int);
82 vtkGetMacro(NumberOfVariables,
int);
83 vtkGetMacro(NumberOfComplexVariables,
int);
90 int GetNumberOfVariables(
int type);
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);
108 const char* GetDescription(
int n);
113 const char* GetComplexDescription(
int n);
125 const char* GetDescription(
int n,
int type);
131 int GetVariableType(
int n);
132 int GetComplexVariableType(
int n);
139 virtual void SetTimeValue(
float value);
140 vtkGetMacro(TimeValue,
float);
147 vtkGetMacro(MinimumTimeValue,
float);
148 vtkGetMacro(MaximumTimeValue,
float);
164 int DetermineEnSightVersion(
int quiet=0);
172 vtkGetMacro(ReadAllVariables,
int);
188 int GetNumberOfPointArrays();
189 int GetNumberOfCellArrays();
197 const char* GetPointArrayName(
int index);
198 const char* GetCellArrayName(
int index);
206 int GetPointArrayStatus(
const char*
name);
207 int GetCellArrayStatus(
const char*
name);
208 void SetPointArrayStatus(
const char*
name,
int status);
209 void SetCellArrayStatus(
const char*
name,
int status);
215 ENSIGHT_6_BINARY = 1,
217 ENSIGHT_GOLD_BINARY = 3,
218 ENSIGHT_MASTER_SERVER = 4
228 void SetByteOrderToBigEndian();
229 void SetByteOrderToLittleEndian();
231 vtkGetMacro(ByteOrder,
int);
232 const char *GetByteOrderAsString();
238 FILE_LITTLE_ENDIAN=1,
239 FILE_UNKNOWN_ENDIAN=2
264 vtkGetMacro(ParticleCoordinatesByIndex,
int);
272 static int CanReadFile(
const char *casefilename);
295 virtual void ClearForNewCaseFileName();
301 int ReadLine(
char result[256]);
307 int ReadBinaryLine(
char result[80]);
312 int ReadNextDataLine(
char result[256]);
318 vtkSetStringMacro(GeometryFileName);
325 void AddVariableDescription(
const char*
description);
326 void AddComplexVariableDescription(
const char* description);
333 void AddVariableType(
int variableType);
334 void AddComplexVariableType(
int variableType);
342 int ReplaceWildcards(
char* fileName,
int timeSet,
int fileSet);
343 void ReplaceWildcardsHelper(
char* fileName,
int num);
347 static void SelectionModifiedCallback(
vtkObject* caller,
unsigned long eid,
348 void* clientdata,
void* calldata);
349 void SelectionModified();
352 char** CreateStringArray(
int numStrings);
353 void DestroyStringArray(
int numStrings,
char** strings);
357 void SetDataArraySelectionSetsFromVariables();
361 void SetDataArraySelectionSetsFromReader();
365 void SetReaderDataArraySelectionSetsFromSelf();
433 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 ordered list of IdList objects
char ** VariableDescriptions
maintain an ordered 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.