26 #ifndef vtkAMREnzoReader_h
27 #define vtkAMREnzoReader_h
29 #include "vtkIOAMRModule.h"
50 vtkGetMacro( ConvertToCGS,
int );
78 void ParseConversionFactors();
96 void ParseCFactor(
const std::string &labelString,
int &idx,
double &factor );
137 const int vtkNotUsed(blockIdx),
vtkUniformGrid *vtkNotUsed(block),
const char *vtkNotUsed(
field)) {;};
153 std::map< std::
string,
int > label2idx;
154 std::map<
int,
double > conversionFactors;
virtual vtkUniformGrid * GetAMRGrid(const int blockIdx)=0
Loads the block according to the index w.r.t.
virtual int GetNumberOfBlocks()=0
Returns the total number of blocks.
virtual void ReadMetaData()=0
Reads all the metadata from the file.
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
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field)=0
Loads the block data.
virtual int GetBlockLevel(const int blockIdx)=0
Returns the block level for the given block.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
hierarchical dataset of vtkUniformGrids
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field))
See vtkAMRBaseReader::GetAMRGridData.
An abstract class that encapsulates common functionality for all AMR readers.
static vtkOverlappingAMRAlgorithm * New()
virtual int FillMetaData()=0
Loads all the AMR metadata & constructs the LevelIdxPair12InternalIdx datastructure which maps (level...
virtual void SetUpDataArraySelections()=0
Initializes the PointDataArraySelection & CellDataArraySelection.
virtual void SetFileName(const char *fileName)=0
Set/Get the filename.