26 #ifndef vtkGenericEnSightReader_h 27 #define vtkGenericEnSightReader_h 29 #include "vtkIOEnSightModule.h" 37 class TranslationTableType;
62 void SetCaseFileName(
const char* fileName);
63 vtkGetStringMacro(CaseFileName);
70 vtkSetStringMacro(FilePath);
71 vtkGetStringMacro(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);
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();
233 vtkSetMacro(ByteOrder,
int);
234 vtkGetMacro(ByteOrder,
int);
235 const char *GetByteOrderAsString();
241 FILE_LITTLE_ENDIAN=1,
242 FILE_UNKNOWN_ENDIAN=2
250 vtkGetStringMacro(GeometryFileName);
266 vtkSetMacro(ParticleCoordinatesByIndex,
vtkTypeBool);
267 vtkGetMacro(ParticleCoordinatesByIndex,
vtkTypeBool);
268 vtkBooleanMacro(ParticleCoordinatesByIndex,
vtkTypeBool);
275 static bool IsEnSightFile(
const char *casefilename);
280 virtual int CanReadFile(
const char *casefilename);
303 virtual void ClearForNewCaseFileName();
309 int ReadLine(
char result[256]);
315 int ReadBinaryLine(
char result[80]);
320 int ReadNextDataLine(
char result[256]);
326 vtkSetStringMacro(GeometryFileName);
333 void AddVariableDescription(
const char*
description);
334 void AddComplexVariableDescription(
const char* description);
341 void AddVariableType(
int variableType);
342 void AddComplexVariableType(
int variableType);
350 int ReplaceWildcards(
char* fileName,
int timeSet,
int fileSet);
351 void ReplaceWildcardsHelper(
char* fileName,
int num);
355 static void SelectionModifiedCallback(
vtkObject* caller,
unsigned long eid,
356 void* clientdata,
void* calldata);
357 void SelectionModified();
360 char** CreateStringArray(
int numStrings);
361 void DestroyStringArray(
int numStrings,
char** strings);
365 void SetDataArraySelectionSetsFromVariables();
369 void SetDataArraySelectionSetsFromReader();
373 void SetReaderDataArraySelectionSetsFromSelf();
441 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
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
vtkGenericEnSightReader * Reader
maintain an ordered list of IdList objects
char ** VariableDescriptions
maintain an ordered list of dataarray objects
vtkTypeBool ParticleCoordinatesByIndex
int SelectionModifiedDoNotCallModified
vtkTypeBool ReadAllVariables
vtkDataArraySelection * CellDataArraySelection
class to read any type of EnSight files
int NumberOfVectorsPerNode
int NumberOfComplexVectorsPerElement
vtkGenericEnSightReader * GetReader()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.