25 #ifndef vtkGenericEnSightReader_h
26 #define vtkGenericEnSightReader_h
37 class TranslationTableType;
63 void SetCaseFileName(
const char* fileName);
64 vtkGetStringMacro(CaseFileName);
69 vtkSetStringMacro(FilePath);
70 vtkGetStringMacro(FilePath);
75 vtkGetMacro(EnSightVersion,
int);
80 vtkGetMacro(NumberOfVariables,
int);
81 vtkGetMacro(NumberOfComplexVariables,
int);
86 int GetNumberOfVariables(
int type);
87 vtkGetMacro(NumberOfScalarsPerNode,
int);
88 vtkGetMacro(NumberOfVectorsPerNode,
int);
89 vtkGetMacro(NumberOfTensorsSymmPerNode,
int);
90 vtkGetMacro(NumberOfScalarsPerElement,
int);
91 vtkGetMacro(NumberOfVectorsPerElement,
int);
92 vtkGetMacro(NumberOfTensorsSymmPerElement,
int);
93 vtkGetMacro(NumberOfScalarsPerMeasuredNode,
int);
94 vtkGetMacro(NumberOfVectorsPerMeasuredNode,
int);
95 vtkGetMacro(NumberOfComplexScalarsPerNode,
int);
96 vtkGetMacro(NumberOfComplexVectorsPerNode,
int);
97 vtkGetMacro(NumberOfComplexScalarsPerElement,
int);
98 vtkGetMacro(NumberOfComplexVectorsPerElement,
int);
102 const char* GetDescription(
int n);
105 const char* GetComplexDescription(
int n);
115 const char* GetDescription(
int n,
int type);
119 int GetVariableType(
int n);
120 int GetComplexVariableType(
int n);
125 virtual void SetTimeValue(
float value);
126 vtkGetMacro(TimeValue,
float);
131 vtkGetMacro(MinimumTimeValue,
float);
132 vtkGetMacro(MaximumTimeValue,
float);
144 int DetermineEnSightVersion(
int quiet=0);
148 vtkBooleanMacro(ReadAllVariables,
int);
149 vtkSetMacro(ReadAllVariables,
int);
150 vtkGetMacro(ReadAllVariables,
int);
162 int GetNumberOfPointArrays();
163 int GetNumberOfCellArrays();
169 const char* GetPointArrayName(
int index);
170 const char* GetCellArrayName(
int index);
176 int GetPointArrayStatus(
const char*
name);
177 int GetCellArrayStatus(
const char*
name);
178 void SetPointArrayStatus(
const char*
name,
int status);
179 void SetCellArrayStatus(
const char*
name,
int status);
186 ENSIGHT_6_BINARY = 1,
188 ENSIGHT_GOLD_BINARY = 3,
189 ENSIGHT_MASTER_SERVER = 4
197 void SetByteOrderToBigEndian();
198 void SetByteOrderToLittleEndian();
199 vtkSetMacro(ByteOrder,
int);
200 vtkGetMacro(ByteOrder,
int);
201 const char *GetByteOrderAsString();
208 FILE_LITTLE_ENDIAN=1,
209 FILE_UNKNOWN_ENDIAN=2
216 vtkGetStringMacro(GeometryFileName);
228 vtkSetMacro(ParticleCoordinatesByIndex,
int);
229 vtkGetMacro(ParticleCoordinatesByIndex,
int);
230 vtkBooleanMacro(ParticleCoordinatesByIndex,
int);
235 static int CanReadFile(
const char *casefilename);
256 virtual void ClearForNewCaseFileName();
260 int ReadLine(
char result[256]);
264 int ReadBinaryLine(
char result[80]);
269 int ReadNextDataLine(
char result[256]);
273 vtkSetStringMacro(GeometryFileName);
278 void AddVariableDescription(
const char*
description);
279 void AddComplexVariableDescription(
const char*
description);
284 void AddVariableType(
int variableType);
285 void AddComplexVariableType(
int variableType);
291 int ReplaceWildcards(
char* fileName,
int timeSet,
int fileSet);
292 void ReplaceWildcardsHelper(
char* fileName,
int num);
296 static void SelectionModifiedCallback(
vtkObject* caller,
unsigned long eid,
297 void* clientdata,
void* calldata);
298 void SelectionModified();
301 char** CreateStringArray(
int numStrings);
302 void DestroyStringArray(
int numStrings,
char** strings);
306 void SetDataArraySelectionSetsFromVariables();
310 void SetDataArraySelectionSetsFromReader();
314 void SetReaderDataArraySelectionSetsFromSelf();
382 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 *)
int NumberOfTensorsSymmPerElement
static vtkMultiBlockDataSetAlgorithm * New()
vtkDataArraySelection * PointDataArraySelection
virtual int FillOutputPortInformation(int port, vtkInformation *info)
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
int NumberOfVectorsPerElement
TranslationTableType * TranslationTable
vtkGenericEnSightReader * Reader
maintain an unordered list of dataarray objects
char ** VariableDescriptions
maintain an unordered list of dataarray objects
void PrintSelf(ostream &os, vtkIndent indent)
int SelectionModifiedDoNotCallModified
vtkDataArraySelection * CellDataArraySelection
#define VTKIOENSIGHT_EXPORT
class to read any type of EnSight files
int NumberOfVectorsPerNode
int NumberOfComplexVectorsPerElement
int ParticleCoordinatesByIndex
vtkGenericEnSightReader * GetReader()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)