26 #ifndef vtkAMREnzoReader_h
27 #define vtkAMREnzoReader_h
29 #include "vtkIOAMRModule.h"
50 vtkGetMacro( ConvertToCGS,
int );
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;
An abstract class that encapsulates common functionality for all AMR readers.
A concrete instance of vtkAMRBaseReader that implements functionality for reading Enzo AMR datasets.
void ParseLabel(const std::string &labelString, int &idx, std::string &label)
Given the label string, this method parses the attribute label and the string index.
int GetNumberOfBlocks()
See vtkAMRBaseReader::GetNumberOfBlocks.
vtkUniformGrid * GetAMRGrid(const int blockIdx)
See vtkAMRBaseReader::GetAMRGrid.
void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field)
See vtkAMRBaseReader::GetAMRGridData.
void SetFileName(const char *fileName)
See vtkAMRBaseReader::SetFileName.
int GetBlockLevel(const int blockIdx)
See vtkAMRBaseReader::GetBlockLevel.
void ReadMetaData()
See vtkAMRBaseReader::ReadMetaData.
static vtkAMREnzoReader * New()
void ComputeStats(vtkEnzoReaderInternal *internal, std::vector< int > &blocksPerLevel, double min[3])
int GetNumberOfLevels()
See vtkAMRBaseReader::GetNumberOfLevels.
void SetUpDataArraySelections()
See vtkAMRBaseReader::SetUpDataArraySelections.
void ParseCFactor(const std::string &labelString, int &idx, double &factor)
Given the label string, this method parses the corresponding attribute index and conversion factor.
void ParseConversionFactors()
Parses the parameters file and extracts the conversion factors that are used to convert to CGS units.
int FillMetaData()
See vtkAMRBaseReader::FillMetaData.
double GetConversionFactor(const std::string &name)
Given the variable name, return the conversion factor used to convert the data to CGS.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int GetIndexFromArrayName(std::string arrayName)
Given an array name of the form "array[idx]" this method extracts and returns the corresponding index...
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field))
See vtkAMRBaseReader::GetAMRGridData.
a simple class to control print indentation
hierarchical dataset of vtkUniformGrids
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.