32 #ifndef vtkHDFReader_h
33 #define vtkHDFReader_h
38 #include "vtkIOHDFModule.h"
45 VTK_ABI_NAMESPACE_BEGIN
86 vtkSetFilePathMacro(FileName);
87 vtkGetFilePathMacro(FileName);
120 vtkSetClampMacro(PieceDistribution,
int, Block, Interleave);
121 vtkGetMacro(PieceDistribution,
int);
160 int GetNumberOfPointArrays();
161 int GetNumberOfCellArrays();
169 const char* GetPointArrayName(
int index);
170 const char* GetCellArrayName(
int index);
182 bool GetHasTemporalData();
186 vtkGetMacro(TimeValue,
double);
187 const std::array<double, 2>&
GetTimeRange()
const {
return this->TimeRange; }
195 virtual
bool GetUseCache();
197 virtual
void SetUseCache(
bool use);
199 virtual
void UseCacheOn();
201 virtual
void UseCacheOff();
211 vtkSetMacro(MaximumLevelsToReadByDefaultForAMR,
unsigned int);
212 vtkGetMacro(MaximumLevelsToReadByDefaultForAMR,
unsigned int);
220 std::
string GetAttributeOriginalIdName(
vtkIdType attribute);
222 void SetAttributeOriginalIdName(
vtkIdType attribute, const
std::
string&
name);
232 ~vtkHDFReader() override;
237 int CanReadFileVersion(
int major,
int minor);
274 static
void SelectionModifiedCallback(
275 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
334 double TimeValue = 0.0;
335 std::array<
double, 2> TimeRange;
338 unsigned int MaximumLevelsToReadByDefaultForAMR = 0;
340 bool UseCache = true;
342 std::shared_ptr<DataCache> Cache;
345 vtkHDFReader(const vtkHDFReader&) = delete;
346 void operator=(const vtkHDFReader&) = delete;
349 Implementation* Impl;
362 bool ReadStructuredData(
393 const
vtkHDFUtilities::TemporalHyperTreeGridOffsets& htgTemporalOffsets,
int filePiece,
399 void SetHasTemporalData(
bool useTemporalData);
407 std::
vector<
int> GetPieceAssignmentForDistribution(
408 int pieceIdx,
int numDatasets,
int numPieces) const;
414 void GenerateAssembly();
420 bool RetrieveStepsFromAssembly();
426 bool RetrieveDataArraysFromAssembly();
440 bool HasTemporalData =
false;
442 int PieceDistribution = Interleave;
445 VTK_ABI_NAMESPACE_END
composite dataset to encapsulates a dataset consisting of partitions.
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
abstract base class for most VTK objects
represent and manipulate point attribute data
Abstract class used for custom streams.
vtkTypeUInt32 vtkMTimeType
abstract class to specify dataset behavior
Abstract superclass for all arrays.
static vtkDataObjectAlgorithm * New()
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Implementation for the vtkHDFReader.
represent and manipulate cell attribute data
const std::array< double, 2 > & GetTimeRange() const
Getters and setters for temporal data.
Hold a reference to a vtkObjectBase instance.
concrete dataset represents vertices, lines, polygons, and triangle strips
superclass for callback/observer methods
#define VTK_DEPRECATED_IN_9_6_0(reason)
supports function callbacks
a simple class to control print indentation
topologically and geometrically regular array of data
Store on/off settings for data arrays, etc.
Common utility variables and functions for reader and writer of vtkHDF.
dataset represents arbitrary combinations of all possible cell types
represent and manipulate attribute data in a dataset
Superclass for algorithms that produce only data object as output.
A table, which contains similar-typed columns of data.
topologically regular array of data
Composite dataset that organizes datasets into blocks.
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
hierarchical representation to use with vtkPartitionedDataSetCollection
general representation of visualization data
#define VTK_DEPRECATED_IN_9_7_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Composite dataset that groups datasets as a collection.