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