14 #ifndef vtkAMREnzoReader_h
15 #define vtkAMREnzoReader_h
18 #include "vtkIOAMRModule.h"
23 VTK_ABI_NAMESPACE_BEGIN
67 void ParseConversionFactors();
85 void ParseCFactor(
const std::string& labelString,
int& idx,
double& factor);
126 const char* vtkNotUsed(
field))
override
144 std::map<std::string, int> label2idx;
145 std::map<int, double> conversionFactors;
148 VTK_ABI_NAMESPACE_END
virtual int GetNumberOfBlocks()=0
Returns the total number of blocks.
virtual vtkUniformGrid * GetAMRGrid(int blockIdx)=0
Loads the block according to the index w.r.t.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ReadMetaData()=0
Reads all the metadata from the file.
virtual int GetBlockLevel(int blockIdx)=0
Returns the block level for the given block.
virtual void SetFileName(VTK_FILEPATH const char *fileName)=0
Set/Get the filename.
A concrete instance of vtkAMRBaseReader that implements functionality for reading Enzo AMR datasets...
virtual int GetNumberOfLevels()=0
Returns the total number of levels.
a simple class to control print indentation
virtual void GetAMRGridData(int blockIdx, vtkUniformGrid *block, const char *field)=0
Loads the block data.
hierarchical dataset of vtkUniformGrids
An abstract class that encapsulates common functionality for all AMR readers.
static vtkOverlappingAMRAlgorithm * New()
void GetAMRGridPointData(int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) override
See vtkAMRBaseReader::GetAMRGridData.
virtual int FillMetaData()=0
Loads all the AMR metadata & constructs the LevelIdxPair12InternalIdx datastructure which maps (level...
virtual void SetUpDataArraySelections()=0
Initializes the PointDataArraySelection & CellDataArraySelection.