39 #ifndef vtkExodusIIReader_h
40 #define vtkExodusIIReader_h
63 int CanReadFile(
const char* fname);
74 virtual unsigned long GetMetadataMTime();
78 virtual void SetFileName(
const char* fname );
79 vtkGetStringMacro(FileName);
84 virtual void SetXMLFileName(
const char* fname );
85 vtkGetStringMacro(XMLFileName);
90 vtkSetMacro(TimeStep,
int);
91 vtkGetMacro(TimeStep,
int);
99 this->SetTimeStep(val-1);
108 vtkGetVector2Macro(ModeShapesRange,
int);
115 vtkGetVector2Macro(TimeStepRange,
int);
128 virtual void SetGenerateObjectIdCellArray(
int g );
129 int GetGenerateObjectIdCellArray();
130 vtkBooleanMacro(GenerateObjectIdCellArray,
int);
134 virtual void SetGenerateGlobalElementIdArray(
int g );
135 int GetGenerateGlobalElementIdArray();
136 vtkBooleanMacro(GenerateGlobalElementIdArray,
int);
138 virtual void SetGenerateGlobalNodeIdArray(
int g );
139 int GetGenerateGlobalNodeIdArray();
140 vtkBooleanMacro(GenerateGlobalNodeIdArray,
int);
142 virtual void SetGenerateImplicitElementIdArray(
int g );
143 int GetGenerateImplicitElementIdArray();
144 vtkBooleanMacro(GenerateImplicitElementIdArray,
int);
146 virtual void SetGenerateImplicitNodeIdArray(
int g );
147 int GetGenerateImplicitNodeIdArray();
148 vtkBooleanMacro(GenerateImplicitNodeIdArray,
int);
150 virtual void SetGenerateFileIdArray(
int f );
151 int GetGenerateFileIdArray();
152 vtkBooleanMacro(GenerateFileIdArray,
int);
153 virtual void SetFileId(
int f );
164 SEARCH_TYPE_ELEMENT=0,
168 ID_NOT_FOUND=-234121312
195 GLOBAL_TEMPORAL = 102,
196 NODAL_TEMPORAL = 101,
197 ELEM_BLOCK_TEMPORAL = 100,
199 ELEM_BLOCK_ELEM_CONN = 98,
200 ELEM_BLOCK_FACE_CONN = 97,
201 ELEM_BLOCK_EDGE_CONN = 96,
202 FACE_BLOCK_CONN = 95,
203 EDGE_BLOCK_CONN = 94,
211 IMPLICIT_ELEMENT_ID = 108,
212 IMPLICIT_NODE_ID = 107,
213 GLOBAL_ELEMENT_ID = 86,
217 NODAL_SQUEEZEMAP = 82,
218 ELEM_BLOCK_ATTRIB = 81,
219 FACE_BLOCK_ATTRIB = 80,
220 EDGE_BLOCK_ATTRIB = 79,
273 virtual void SetApplyDisplacements(
int d );
274 int GetApplyDisplacements();
275 vtkBooleanMacro(ApplyDisplacements,
int);
276 virtual void SetDisplacementMagnitude(
float s );
277 float GetDisplacementMagnitude();
284 virtual void SetHasModeShapes(
int ms );
285 int GetHasModeShapes();
286 vtkBooleanMacro(HasModeShapes,
int);
296 virtual void SetModeShapeTime(
double phase );
297 double GetModeShapeTime();
306 virtual void SetAnimateModeShapes(
int flag);
307 int GetAnimateModeShapes();
308 vtkBooleanMacro(AnimateModeShapes,
int);
313 const char* GetTitle();
314 int GetDimensionality();
315 int GetNumberOfTimeSteps();
318 int GetNumberOfNodesInFile();
319 int GetNumberOfEdgesInFile();
320 int GetNumberOfFacesInFile();
321 int GetNumberOfElementsInFile();
323 int GetObjectTypeFromName(
const char*
name );
324 const char* GetObjectTypeName(
int );
326 int GetNumberOfNodes();
327 int GetNumberOfObjects(
int objectType );
328 int GetNumberOfEntriesInObject(
int objectType,
int objectIndex );
329 int GetObjectId(
int objectType,
int objectIndex );
330 const char* GetObjectName(
int objectType,
int objectIndex );
331 int GetObjectIndex(
int objectType,
const char* objectName );
332 int GetObjectIndex(
int objectType,
int id );
333 int GetObjectStatus(
int objectType,
int objectIndex );
335 {
return this->GetObjectStatus( objectType, this->GetObjectIndex( objectType, objectName ) ); }
336 void SetObjectStatus(
int objectType,
int objectIndex,
int status );
337 void SetObjectStatus(
int objectType,
const char* objectName,
int status );
345 int GetNumberOfObjectArrays(
int objectType );
346 const char* GetObjectArrayName(
int objectType,
int arrayIndex );
347 int GetObjectArrayIndex(
int objectType,
const char* arrayName );
348 int GetNumberOfObjectArrayComponents(
int objectType,
int arrayIndex );
349 int GetObjectArrayStatus(
int objectType,
int arrayIndex );
351 {
return this->GetObjectArrayStatus( objectType, this->GetObjectArrayIndex( objectType, arrayName ) ); }
352 void SetObjectArrayStatus(
int objectType,
int arrayIndex,
int status );
353 void SetObjectArrayStatus(
int objectType,
const char* arrayName,
int status );
362 int GetNumberOfObjectAttributes(
int objectType,
int objectIndex );
363 const char* GetObjectAttributeName(
int objectType,
int objectIndex,
int attribIndex );
364 int GetObjectAttributeIndex(
int objectType,
int objectIndex,
const char* attribName );
365 int GetObjectAttributeStatus(
int objectType,
int objectIndex,
int attribIndex );
367 {
return this->GetObjectAttributeStatus( objectType, objectIndex,
368 this->GetObjectAttributeIndex( objectType, objectIndex, attribName ) ); }
369 void SetObjectAttributeStatus(
int objectType,
int objectIndex,
int attribIndex,
int status );
371 { this->SetObjectAttributeStatus( objectType, objectIndex,
372 this->GetObjectAttributeIndex( objectType, objectIndex, attribName ), status ); }
375 virtual vtkIdType GetTotalNumberOfNodes();
376 virtual vtkIdType GetTotalNumberOfEdges();
377 virtual vtkIdType GetTotalNumberOfFaces();
378 virtual vtkIdType GetTotalNumberOfElements();
385 int GetNumberOfPartArrays();
386 const char* GetPartArrayName(
int arrayIdx);
387 int GetPartArrayID(
const char *
name );
388 const char* GetPartBlockInfo(
int arrayIdx);
389 void SetPartArrayStatus(
int index,
int flag);
390 void SetPartArrayStatus(
const char*,
int flag);
391 int GetPartArrayStatus(
int index);
392 int GetPartArrayStatus(
const char*);
401 int GetNumberOfMaterialArrays();
402 const char* GetMaterialArrayName(
int arrayIdx);
403 int GetMaterialArrayID(
const char *
name );
404 void SetMaterialArrayStatus(
int index,
int flag);
405 void SetMaterialArrayStatus(
const char*,
int flag);
406 int GetMaterialArrayStatus(
int index);
407 int GetMaterialArrayStatus(
const char*);
415 int GetNumberOfAssemblyArrays();
416 const char* GetAssemblyArrayName(
int arrayIdx);
417 int GetAssemblyArrayID(
const char *
name );
418 void SetAssemblyArrayStatus(
int index,
int flag);
419 void SetAssemblyArrayStatus(
const char*,
int flag);
420 int GetAssemblyArrayStatus(
int index);
421 int GetAssemblyArrayStatus(
const char*);
432 int GetNumberOfHierarchyArrays();
433 const char* GetHierarchyArrayName(
int arrayIdx);
434 void SetHierarchyArrayStatus(
int index,
int flag);
435 void SetHierarchyArrayStatus(
const char*,
int flag);
436 int GetHierarchyArrayStatus(
int index);
437 int GetHierarchyArrayStatus(
const char*);
440 vtkGetMacro(DisplayType,
int);
441 virtual void SetDisplayType(
int type);
444 int IsValidVariable(
const char *
type,
const char *
name );
447 int GetVariableID (
const char *
type,
const char *
name );
449 void SetAllArrayStatus(
int otype,
int status );
456 int GetTimeSeriesData(
int ID,
const char *vName,
const char *vType,
462 {
return this->GetNumberOfObjects(EDGE_BLOCK); }
464 {
return this->GetObjectName(EDGE_BLOCK, index); }
466 {
return this->GetObjectStatus(EDGE_BLOCK, name); }
468 { this->SetObjectStatus(EDGE_BLOCK, name, flag); }
471 {
return this->GetNumberOfObjects(FACE_BLOCK); }
473 {
return this->GetObjectName(FACE_BLOCK, index); }
475 {
return this->GetObjectStatus(FACE_BLOCK, name); }
477 { this->SetObjectStatus(FACE_BLOCK, name, flag); }
480 {
return this->GetNumberOfObjects(ELEM_BLOCK); }
482 {
return this->GetObjectName(ELEM_BLOCK, index); }
484 {
return this->GetObjectStatus(ELEM_BLOCK, name); }
486 { this->SetObjectStatus(ELEM_BLOCK, name, flag); }
489 {
return this->GetNumberOfObjectArrays(GLOBAL); }
491 {
return this->GetObjectArrayName(GLOBAL, index); }
493 {
return this->GetObjectArrayStatus(GLOBAL, name); }
495 { this->SetObjectArrayStatus(GLOBAL, name, flag); }
498 {
return this->GetNumberOfObjectArrays(NODAL); }
500 {
return this->GetObjectArrayName(NODAL, index); }
502 {
return this->GetObjectArrayStatus(NODAL, name); }
504 { this->SetObjectArrayStatus(NODAL, name, flag); }
507 {
return this->GetNumberOfObjectArrays(EDGE_BLOCK); }
509 {
return this->GetObjectArrayName(EDGE_BLOCK, index); }
511 {
return this->GetObjectArrayStatus(EDGE_BLOCK, name); }
513 { this->SetObjectArrayStatus(EDGE_BLOCK, name, flag); }
516 {
return this->GetNumberOfObjectArrays(FACE_BLOCK); }
518 {
return this->GetObjectArrayName(FACE_BLOCK, index); }
520 {
return this->GetObjectArrayStatus(FACE_BLOCK, name); }
522 { this->SetObjectArrayStatus(FACE_BLOCK, name, flag); }
525 {
return this->GetNumberOfObjectArrays(ELEM_BLOCK); }
527 {
return this->GetObjectArrayName(ELEM_BLOCK, index); }
529 {
return this->GetObjectArrayStatus(ELEM_BLOCK, name); }
531 { this->SetObjectArrayStatus(ELEM_BLOCK, name, flag); }
535 {
return this->GetNumberOfObjects(NODE_MAP); }
537 {
return this->GetObjectName(NODE_MAP, index); }
539 {
return this->GetObjectStatus(NODE_MAP, name); }
541 { this->SetObjectStatus(NODE_MAP, name, flag); }
544 {
return this->GetNumberOfObjects(EDGE_MAP); }
546 {
return this->GetObjectName(EDGE_MAP, index); }
548 {
return this->GetObjectStatus(EDGE_MAP, name); }
550 { this->SetObjectStatus(EDGE_MAP, name, flag); }
553 {
return this->GetNumberOfObjects(FACE_MAP); }
555 {
return this->GetObjectName(FACE_MAP, index); }
557 {
return this->GetObjectStatus(FACE_MAP, name); }
559 { this->SetObjectStatus(FACE_MAP, name, flag); }
562 {
return this->GetNumberOfObjects(ELEM_MAP); }
564 {
return this->GetObjectName(ELEM_MAP, index); }
566 {
return this->GetObjectStatus(ELEM_MAP, name); }
568 { this->SetObjectStatus(ELEM_MAP, name, flag); }
571 {
return this->GetNumberOfObjects(NODE_SET); }
573 {
return this->GetObjectName(NODE_SET, index); }
575 {
return this->GetObjectStatus(NODE_SET, name); }
577 { this->SetObjectStatus(NODE_SET, name, flag); }
580 {
return this->GetNumberOfObjects(SIDE_SET); }
582 {
return this->GetObjectName(SIDE_SET, index); }
584 {
return this->GetObjectStatus(SIDE_SET, name); }
586 { this->SetObjectStatus(SIDE_SET, name, flag); }
589 {
return this->GetNumberOfObjects(EDGE_SET); }
591 {
return this->GetObjectName(EDGE_SET, index); }
593 {
return this->GetObjectStatus(EDGE_SET, name); }
595 { this->SetObjectStatus(EDGE_SET, name, flag); }
598 {
return this->GetNumberOfObjects(FACE_SET); }
600 {
return this->GetObjectName(FACE_SET, index); }
602 {
return this->GetObjectStatus(FACE_SET, name); }
604 { this->SetObjectStatus(FACE_SET, name, flag); }
607 {
return this->GetNumberOfObjects(ELEM_SET); }
609 {
return this->GetObjectName(ELEM_SET, index); }
611 {
return this->GetObjectStatus(ELEM_SET, name); }
613 { this->SetObjectStatus(ELEM_SET, name, flag); }
617 {
return this->GetNumberOfObjectArrays(NODE_SET); }
619 {
return this->GetObjectArrayName(NODE_SET, index); }
621 {
return this->GetObjectArrayStatus(NODE_SET, name); }
623 { this->SetObjectArrayStatus(NODE_SET, name, flag); }
626 {
return this->GetNumberOfObjectArrays(SIDE_SET); }
628 {
return this->GetObjectArrayName(SIDE_SET, index); }
630 {
return this->GetObjectArrayStatus(SIDE_SET, name); }
632 { this->SetObjectArrayStatus(SIDE_SET, name, flag); }
635 {
return this->GetNumberOfObjectArrays(EDGE_SET); }
637 {
return this->GetObjectArrayName(EDGE_SET, index); }
639 {
return this->GetObjectArrayStatus(EDGE_SET, name); }
641 { this->SetObjectArrayStatus(EDGE_SET, name, flag); }
644 {
return this->GetNumberOfObjectArrays(FACE_SET); }
646 {
return this->GetObjectArrayName(FACE_SET, index); }
648 {
return this->GetObjectArrayStatus(FACE_SET, name); }
650 { this->SetObjectArrayStatus(FACE_SET, name, flag); }
653 {
return this->GetNumberOfObjectArrays(ELEM_SET); }
655 {
return this->GetObjectArrayName(ELEM_SET, index); }
657 {
return this->GetObjectArrayStatus(ELEM_SET, name); }
659 { this->SetObjectArrayStatus(ELEM_SET, name, flag); }
672 void ResetSettings();
678 void SetCacheSize(
double CacheSize);
681 double GetCacheSize();
693 void SetSqueezePoints(
bool sp);
694 bool GetSqueezePoints();
705 vtkGetMacro(SILUpdateStamp,
int);
713 static int GetIDHelper (
const char *arrayName,
vtkDataSet *
data,
int localID,
int searchType );
714 static int GetGlobalID(
const char *arrayName,
vtkDataSet *
data,
int localID,
int searchType );
742 int TimeStepRange[2];
764 int ModeShapesRange[2];
const char * GetEdgeResultArrayName(int index)
static const char * GetGlobalNodeIdArrayName()
const char * GetSideSetResultArrayName(int index)
int GetNumberOfElementSetArrays()
static const char * GetImplicitElementIdArrayName()
const char * GetEdgeSetArrayName(int index)
void SetElementSetResultArrayStatus(const char *name, int flag)
int GetNumberOfGlobalResultArrays()
int GetFaceMapArrayStatus(const char *name)
const char * GetEdgeSetResultArrayName(int index)
void SetEdgeResultArrayStatus(const char *name, int flag)
void SetNodeSetArrayStatus(const char *name, int flag)
int GetNumberOfElementMapArrays()
const char * GetEdgeBlockArrayName(int index)
void SetNodeMapArrayStatus(const char *name, int flag)
int GetNumberOfEdgeMapArrays()
void SetEdgeSetResultArrayStatus(const char *name, int flag)
abstract class to specify dataset behavior
int GetGlobalResultArrayStatus(const char *name)
static const char * GetImplicitFaceIdArrayName()
int GetEdgeSetResultArrayStatus(const char *name)
const char * GetNodeSetArrayName(int index)
void SetEdgeBlockArrayStatus(const char *name, int flag)
void SetNodeSetResultArrayStatus(const char *name, int flag)
void SetSideSetArrayStatus(const char *name, int flag)
record modification and/or execution time
int GetElementSetResultArrayStatus(const char *name)
int GetElementBlockArrayStatus(const char *name)
const char * GetElementSetArrayName(int index)
int GetNumberOfFaceSetArrays()
dynamic, self-adjusting array of float
int GetNumberOfFaceSetResultArrays()
const char * GetFaceSetResultArrayName(int index)
const char * GetFaceSetArrayName(int index)
int GetNumberOfEdgeSetResultArrays()
int GetNumberOfElementResultArrays()
int GetElementResultArrayStatus(const char *name)
void SetElementResultArrayStatus(const char *name, int flag)
int GetEdgeResultArrayStatus(const char *name)
This class holds metadata for an Exodus file.
int GetNumberOfEdgeResultArrays()
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
void SetPointResultArrayStatus(const char *name, int flag)
int GetNumberOfEdgeSetArrays()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
const char * GetEdgeMapArrayName(int index)
int GetNodeSetResultArrayStatus(const char *name)
void SetFaceBlockArrayStatus(const char *name, int flag)
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
const char * GetGlobalResultArrayName(int index)
int GetNumberOfSideSetResultArrays()
int GetElementSetArrayStatus(const char *name)
static vtkMultiBlockDataSetAlgorithm * New()
static const char * GetImplicitNodeIdArrayName()
int GetNumberOfPointResultArrays()
Base class for graph data types.
int GetNodeSetArrayStatus(const char *name)
dynamic, self-adjusting array of int
void SetEdgeMapArrayStatus(const char *name, int flag)
int GetNumberOfNodeSetResultArrays()
int GetSideSetArrayStatus(const char *name)
const char * GetNodeSetResultArrayName(int index)
const char * GetElementMapArrayName(int index)
virtual unsigned long GetMTime()
a simple class to control print indentation
void SetElementSetArrayStatus(const char *name, int flag)
int GetNumberOfFaceBlockArrays()
static const char * GetObjectIdArrayName()
Read Exodus II files (.exii)
int GetElementMapArrayStatus(const char *name)
static const char * GetSideSetSourceElementIdArrayName()
const char * GetNodeMapArrayName(int index)
dataset represents arbitrary combinations of all possible cell types
void SetFaceSetArrayStatus(const char *name, int flag)
int GetNumberOfFaceMapArrays()
abstract superclass for arrays of numeric data
void SetFaceMapArrayStatus(const char *name, int flag)
vtkTimeStamp XMLFileNameMTime
static const char * GetGlobalEdgeIdArrayName()
static const char * GetGlobalFaceIdArrayName()
int GetNumberOfEdgeBlockArrays()
static const char * GetPedigreeFaceIdArrayName()
#define VTKIOEXODUS_EXPORT
int GetEdgeBlockArrayStatus(const char *name)
int GetObjectArrayStatus(int objectType, const char *arrayName)
static const char * GetPedigreeElementIdArrayName()
const char * GetFaceBlockArrayName(int index)
static const char * GetPedigreeNodeIdArrayName()
const char * GetElementResultArrayName(int index)
void SetSideSetResultArrayStatus(const char *name, int flag)
int GetEdgeSetArrayStatus(const char *name)
const char * GetFaceResultArrayName(int index)
int GetNumberOfElementSetResultArrays()
const char * GetSideSetArrayName(int index)
int GetNodeMapArrayStatus(const char *name)
static const char * GetPedigreeEdgeIdArrayName()
Read exodus 2 files .ex2.
int GetFaceSetResultArrayStatus(const char *name)
static const char * GetImplicitEdgeIdArrayName()
void SetGlobalResultArrayStatus(const char *name, int flag)
int GetEdgeMapArrayStatus(const char *name)
int GetObjectStatus(int objectType, const char *objectName)
void SetElementBlockArrayStatus(const char *name, int flag)
int GetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName)
void SetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName, int status)
int GetPointResultArrayStatus(const char *name)
const char * GetFaceMapArrayName(int index)
void SetModeShape(int val)
void SetFaceResultArrayStatus(const char *name, int flag)
int GetFaceBlockArrayStatus(const char *name)
void PrintSelf(ostream &os, vtkIndent indent)
const char * GetPointResultArrayName(int index)
int GetSideSetResultArrayStatus(const char *name)
int GetNumberOfSideSetArrays()
const char * GetElementBlockArrayName(int index)
int GetFaceSetArrayStatus(const char *name)
void SetElementMapArrayStatus(const char *name, int flag)
static const char * GetGlobalElementIdArrayName()
void SetFaceSetResultArrayStatus(const char *name, int flag)
int GetNumberOfElementBlockArrays()
static const char * GetSideSetSourceElementSideArrayName()
int GetNumberOfFaceResultArrays()
represent and manipulate 3D points
const char * GetElementSetResultArrayName(int index)
int GetNumberOfNodeMapArrays()
int GetNumberOfNodeSetArrays()
void SetEdgeSetArrayStatus(const char *name, int flag)
vtkExodusIIReaderPrivate * Metadata
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int GetFaceResultArrayStatus(const char *name)
vtkTimeStamp FileNameMTime