31 #ifndef vtkHDFReader_h
32 #define vtkHDFReader_h
36 #include "vtkIOHDFModule.h"
43 VTK_ABI_NAMESPACE_BEGIN
148 vtkGetMacro(HasTransientData,
bool);
152 vtkGetMacro(TimeValue,
double);
153 const std::array<double, 2>&
GetTimeRange()
const {
return this->TimeRange; }
163 vtkGetMacro(UseCache,
bool);
164 vtkSetMacro(UseCache,
bool);
165 vtkBooleanMacro(UseCache,
bool);
180 vtkGetMacro(MergeParts,
bool);
181 vtkSetMacro(MergeParts,
bool);
182 vtkBooleanMacro(MergeParts,
bool);
185 vtkSetMacro(MaximumLevelsToReadByDefaultForAMR,
unsigned int);
186 vtkGetMacro(MaximumLevelsToReadByDefaultForAMR,
unsigned int);
224 int Read(
const std::vector<vtkIdType>& numberOfPoints,
225 const std::vector<vtkIdType>& numberOfCells,
226 const std::vector<vtkIdType>& numberOfConnectivityIds,
vtkIdType partOffset,
239 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
268 bool MeshGeometryChangedFromPreviousTimeStep =
true;
271 std::map<vtkIdType, std::string> AttributesOriginalIdName{
279 void GenerateAssembly();
285 bool RetrieveStepsFromAssembly();
290 void RetrieveDataArraysFromAssembly();
343 bool HasTransientData =
false;
346 double TimeValue = 0.0;
353 bool MergeParts =
true;
355 unsigned int MaximumLevelsToReadByDefaultForAMR = 0;
360 bool UseCache =
false;
365 VTK_ABI_NAMESPACE_END
Abstract superclass for all arrays.
supports function callbacks
represent and manipulate cell attribute data
superclass for callback/observer methods
Store on/off settings for data arrays, etc.
Superclass for algorithms that produce only data object as output.
vtkDataObjectMeshCache is a class to store and reuse the mesh of a vtkDataSet, while forwarding data ...
general representation of visualization data
represent and manipulate attribute data in a dataset
abstract class to specify dataset behavior
Implementation for the vtkHDFReader.
Reads data saved using the VTK HDF format which supports all vtkDataSet types (image data,...
int GetNumberOfPointArrays()
Get the number of point or cell arrays available in the input.
int GetNumberOfCellArrays()
Get the number of point or cell arrays available in the input.
std::shared_ptr< DataCache > Cache
virtual vtkDataArraySelection * GetFieldDataArraySelection()
Get the data array selection tables used to configure which data arrays are loaded by the reader.
int CanReadFileVersion(int major, int minor)
Test if the reader can read a file with the given version number.
int Read(vtkInformation *outInfo, vtkImageData *data)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
int Read(const std::vector< vtkIdType > &numberOfPoints, const std::vector< vtkIdType > &numberOfCells, const std::vector< vtkIdType > &numberOfConnectivityIds, vtkIdType partOffset, vtkIdType startingPointOffset, vtkIdType startingCellOffset, vtkIdType startingConnectctivityIdOffset, int filePiece, vtkUnstructuredGrid *pieceData)
Read 'pieceData' specified by 'filePiece' where number of points, cells and connectivity ids store th...
vtkSetFilePathMacro(FileName)
Get/Set the name of the input file.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Standard functions to specify the type, information and read the data from the file.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Standard functions to specify the type, information and read the data from the file.
int Read(vtkInformation *outInfo, vtkPolyData *data, vtkPartitionedDataSet *pData)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Standard functions to specify the type, information and read the data from the file.
vtkDataSet * GetOutputAsDataSet(int index)
Get the output as a vtkDataSet pointer.
vtkGetFilePathMacro(FileName)
Get/Set the name of the input file.
int Read(vtkInformation *outInfo, vtkUnstructuredGrid *data, vtkPartitionedDataSet *pData)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
Modify this object when an array selection is changed.
const std::array< double, 2 > & GetTimeRange() const
Getters and setters for transient data.
int Read(vtkInformation *outInfo, vtkMultiBlockDataSet *data)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
int AddFieldArrays(vtkDataObject *data)
Read the field arrays from the file and add them to the dataset.
std::array< double, 2 > TimeRange
Transient data properties.
int Read(vtkInformation *outInfo, vtkPartitionedDataSetCollection *data)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
const char * GetCellArrayName(int index)
Get the name of the point or cell array with the given index in the input.
void SetAttributeOriginalIdName(vtkIdType attribute, const std::string &name)
Get or Set the Original id name of an attribute (POINT, CELL, FIELD...)
virtual vtkDataArraySelection * GetPointDataArraySelection()
Get the data array selection tables used to configure which data arrays are loaded by the reader.
char * FileName
The input file's name.
int ReadRecursively(vtkInformation *outInfo, vtkMultiBlockDataSet *data, const std::string &path)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
int SetupInformation(vtkInformation *outInfo)
Setup the information pass in parameter based on current vtkHDF file loaded.
virtual vtkDataArraySelection * GetCellDataArraySelection()
Get the data array selection tables used to configure which data arrays are loaded by the reader.
vtkCallbackCommand * SelectionObserver
The observer to modify this object when the array selections are modified.
vtkDataSet * GetOutputAsDataSet()
Get the output as a vtkDataSet pointer.
std::string GetAttributeOriginalIdName(vtkIdType attribute)
Get or Set the Original id name of an attribute (POINT, CELL, FIELD...)
virtual int CanReadFile(VTK_FILEPATH const char *name)
Test whether the file (type) with the given name can be read by this reader.
int Read(vtkInformation *outInfo, vtkOverlappingAMR *data)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
vtkSmartPointer< vtkDataAssembly > Assembly
Assembly used for PartitionedDataSetCollection.
void PrintPieceInformation(vtkInformation *outInfo)
Print update number of pieces, piece number and ghost levels.
static vtkHDFReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetPointArrayName(int index)
Get the name of the point or cell array with the given index in the input.
topologically and geometrically regular array of data
a simple class to control print indentation
Composite dataset that organizes datasets into blocks.
abstract base class for most VTK objects
hierarchical dataset of vtkUniformGrids
Composite dataset that groups datasets as a collection.
composite dataset to encapsulates a dataset consisting of partitions.
represent and manipulate point attribute data
concrete dataset represents vertices, lines, polygons, and triangle strips
dataset represents arbitrary combinations of all possible cell types