36#include "vtkIOHDFModule.h"
43VTK_ABI_NAMESPACE_BEGIN
149 virtual
bool GetHasTransientData();
150 bool GetHasTemporalData();
154 vtkGetMacro(TimeValue,
double);
155 const
std::array<
double, 2>& GetTimeRange()
const {
return this->TimeRange; }
168 vtkGetMacro(UseCache,
bool);
169 vtkSetMacro(UseCache,
bool);
170 vtkBooleanMacro(UseCache,
bool);
188 vtkGetMacro(MergeParts,
bool);
189 vtkSetMacro(MergeParts,
bool);
190 vtkBooleanMacro(MergeParts,
bool);
193 vtkSetMacro(MaximumLevelsToReadByDefaultForAMR,
unsigned int);
194 vtkGetMacro(MaximumLevelsToReadByDefaultForAMR,
unsigned int);
232 int Read(
const std::vector<vtkIdType>& numberOfPoints,
233 const std::vector<vtkIdType>& numberOfCells,
234 const std::vector<vtkIdType>& numberOfConnectivityIds,
vtkIdType partOffset,
247 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
307 bool HasTransientData =
false;
310 double TimeValue = 0.0;
317 bool MergeParts =
true;
319 unsigned int MaximumLevelsToReadByDefaultForAMR = 0;
321 bool UseCache =
false;
337 void SetHasTemporalData(
bool useTemporalData);
342 void GenerateAssembly();
348 bool RetrieveStepsFromAssembly();
353 void RetrieveDataArraysFromAssembly();
372 bool MeshGeometryChangedFromPreviousTimeStep =
true;
376 std::map<vtkIdType, std::string> AttributesOriginalIdName{
381 bool HasTemporalData =
false;
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.
const char * GetCellArrayName(int index)
Get the name of the point or cell array with the given index in the input.
virtual vtkDataArraySelection * GetFieldDataArraySelection()
Get the data array selection tables used to configure which data arrays are loaded by the reader.
vtkDataSet * GetOutputAsDataSet(int index)
Get the output as a vtkDataSet pointer.
std::shared_ptr< DataCache > Cache
virtual vtkDataArraySelection * GetCellDataArraySelection()
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.
static vtkHDFReader * New()
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.
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
Temporal data properties.
int Read(vtkInformation *outInfo, vtkPartitionedDataSetCollection *data)
Reads the 'data' requested in 'outInfo' (through extents or pieces).
void SetAttributeOriginalIdName(vtkIdType attribute, const std::string &name)
Get or Set the Original id name of an attribute (POINT, CELL, FIELD...)
const char * GetPointArrayName(int index)
Get the name of the point or cell array with the given index in the input.
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 * GetPointDataArraySelection()
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.
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.
vtkDataSet * GetOutputAsDataSet()
Get the output as a vtkDataSet pointer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
topologically and geometrically regular array of data
a simple class to control print indentation
Composite dataset that organizes datasets into blocks.
Allocate and hold a VTK object.
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
Hold a reference to a vtkObjectBase instance.
dataset represents arbitrary combinations of all possible cell types
#define VTK_DEPRECATED_IN_9_4_0(reason)