174 #ifndef vtkIOSSReader_h
175 #define vtkIOSSReader_h
177 #include "vtkIOIOSSModule.h"
200 void ClearFileNames();
202 int GetNumberOfFileNames()
const;
215 vtkSetStringMacro(DatabaseTypeOverride);
216 vtkGetStringMacro(DatabaseTypeOverride);
224 void SetDisplacementMagnitude(
double magnitude);
225 double GetDisplacementMagnitude();
233 void SetScanForRelatedFiles(
bool value);
234 vtkGetMacro(ScanForRelatedFiles,
bool);
235 vtkBooleanMacro(ScanForRelatedFiles,
bool);
252 vtkSetVector2Macro(FileRange,
int);
253 vtkGetVector2Macro(FileRange,
int);
255 vtkGetMacro(FileStride,
int);
266 vtkSetMacro(GenerateFileId,
bool);
267 vtkGetMacro(GenerateFileId,
bool);
268 vtkBooleanMacro(GenerateFileId,
bool);
276 vtkSetMacro(ReadIds,
bool);
277 vtkGetMacro(ReadIds,
bool);
278 vtkBooleanMacro(ReadIds,
bool);
290 void SetRemoveUnusedPoints(
bool);
291 vtkGetMacro(RemoveUnusedPoints,
bool);
292 vtkBooleanMacro(RemoveUnusedPoints,
bool);
300 vtkSetMacro(ApplyDisplacements,
bool);
301 vtkGetMacro(ApplyDisplacements,
bool);
302 vtkBooleanMacro(ApplyDisplacements,
bool);
309 vtkSetMacro(ReadGlobalFields,
bool);
310 vtkGetMacro(ReadGlobalFields,
bool);
311 vtkBooleanMacro(ReadGlobalFields,
bool);
319 vtkSetMacro(ReadQAAndInformationRecords,
bool);
320 vtkGetMacro(ReadQAAndInformationRecords,
bool);
321 vtkBooleanMacro(ReadQAAndInformationRecords,
bool);
347 void AddProperty(
const char*
name,
int value);
348 void AddProperty(
const char*
name,
double value);
349 void AddProperty(
const char*
name,
void*
value);
350 void AddProperty(
const char*
name,
const char*
value);
351 void RemoveProperty(
const char*
name);
352 void ClearProperties();
369 BLOCK_START = NODEBLOCK,
372 SET_END = NUMBER_OF_ENTITY_TYPES,
373 ENTITY_START = NODEBLOCK,
374 ENTITY_END = NUMBER_OF_ENTITY_TYPES,
379 static const char* GetDataAssemblyNodeNameForEntityType(
int type);
387 return this->GetEntitySelection(ELEMENTBLOCK);
391 return this->GetEntitySelection(STRUCTUREDBLOCK);
405 return this->GetFieldSelection(ELEMENTBLOCK);
409 return this->GetFieldSelection(STRUCTUREDBLOCK);
416 return this->GetFieldSelection(ELEMENTSET);
420 void RemoveAllEntitySelections();
421 void RemoveAllFieldSelections();
424 this->RemoveAllEntitySelections();
425 this->RemoveAllFieldSelections();
434 const std::map<std::string, vtkTypeInt64>& GetEntityIdMap(
int type)
const;
437 return this->GetEntityIdMap(NODEBLOCK);
441 return this->GetEntityIdMap(EDGEBLOCK);
445 return this->GetEntityIdMap(FACEBLOCK);
449 return this->GetEntityIdMap(ELEMENTBLOCK);
453 return this->GetEntityIdMap(STRUCTUREDBLOCK);
457 return this->GetEntityIdMap(NODESET);
461 return this->GetEntityIdMap(EDGESET);
465 return this->GetEntityIdMap(FACESET);
469 return this->GetEntityIdMap(ELEMENTSET);
473 return this->GetEntityIdMap(SIDESET);
486 return this->GetEntityIdMapAsString(NODEBLOCK);
490 return this->GetEntityIdMapAsString(EDGEBLOCK);
494 return this->GetEntityIdMapAsString(FACEBLOCK);
498 return this->GetEntityIdMapAsString(ELEMENTBLOCK);
502 return this->GetEntityIdMapAsString(STRUCTUREDBLOCK);
509 return this->GetEntityIdMapAsString(ELEMENTSET);
536 vtkGetMacro(AssemblyTag,
int);
543 bool AddSelector(
const char* selector);
544 void ClearSelectors();
545 void SetSelector(
const char* selector);
552 int GetNumberOfSelectors()
const;
553 const char* GetSelector(
int index)
const;
574 static bool DoTestFilePatternMatching();
593 std::map<std::string, vtkTypeInt64> EntityIdMap[NUMBER_OF_ENTITY_TYPES + 1];
598 bool ScanForRelatedFiles;
600 bool RemoveUnusedPoints;
601 bool ApplyDisplacements;
602 bool ReadGlobalFields;
603 bool ReadQAAndInformationRecords;
604 char* DatabaseTypeOverride;
610 vtkInternals* Internals;
std::string GetFileName(const std::string &fileName) noexcept
Set the appropriate file name based on recognized user input.
static bool GetEntityTypeIsSet(int type)
vtkTypeUInt32 vtkMTimeType
vtkDataArraySelection * GetEdgeSetFieldSelection()
vtkDataArraySelection * GetElementSetSelection()
a vtkAbstractArray subclass for strings
vtkDataArraySelection * GetNodeBlockFieldSelection()
vtkDataArraySelection * GetFaceSetSelection()
vtkDataArraySelection * GetFaceSetFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetElementSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkStringArray * GetFaceBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetEdgeSetSelection()
vtkDataArraySelection * GetElementBlockSelection()
vtkDataArraySelection * GetNodeBlockSelection()
vtkDataArraySelection * GetNodeSetSelection()
vtkStringArray * GetElementBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkStringArray * GetSideSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetSideSetFieldSelection()
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
const std::map< std::string, vtkTypeInt64 > & GetFaceBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
a simple class to control print indentation
vtkStringArray * GetEdgeSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
Store on/off settings for data arrays, etc.
vtkStringArray * GetFaceSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkDataArraySelection * GetElementSetFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetSideSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
const std::map< std::string, vtkTypeInt64 > & GetNodeBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkDataArraySelection * GetEdgeBlockFieldSelection()
vtkStringArray * GetElementSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetNodeSetFieldSelection()
int ReadArrays(int, int, int, int, vtkDataObject *) override
Implementation for vtkReaderAlgorithm API.
vtkDataArraySelection * GetFaceBlockSelection()
virtual int ReadMesh(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output)=0
Read the mesh (connectivity) for a given set of data partitioning, number of ghost levels and time st...
Reader for IOSS (Sierra IO System)
int ReadPoints(int, int, int, int, vtkDataObject *) override
Implementation for vtkReaderAlgorithm API.
vtkDataArraySelection * GetElementBlockFieldSelection()
vtkDataArraySelection * GetEdgeBlockSelection()
const std::map< std::string, vtkTypeInt64 > & GetEdgeBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkDataArraySelection * GetFaceBlockFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetEdgeSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
virtual int ReadMetaData(vtkInformation *metadata)=0
Provide meta-data for the pipeline.
static vtkAlgorithm * New()
const std::map< std::string, vtkTypeInt64 > & GetElementBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
static bool GetEntityTypeIsBlock(int type)
hierarchical representation to use with vtkPartitionedDataSetCollection
vtkStringArray * GetStructuredBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetSideSetSelection()
vtkStringArray * GetNodeBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
general representation of visualization data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const std::map< std::string, vtkTypeInt64 > & GetStructuredBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
const std::map< std::string, vtkTypeInt64 > & GetNodeSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
Overridden to call appropriate handle pipeline request from executive.
vtkStringArray * GetEdgeBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetStructuredBlockFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetFaceSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkDataArraySelection * GetStructuredBlockSelection()
Superclass for readers that implement a simplified API.
void RemoveAllSelections()
vtkStringArray * GetNodeSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
Multiprocessing communication superclass.