Go to the documentation of this file.
26 #ifndef vtkAMREnzoReader_h
27 #define vtkAMREnzoReader_h
29 #include "vtkIOAMRModule.h"
137 const int vtkNotUsed(blockIdx),
vtkUniformGrid *vtkNotUsed(block),
const char *vtkNotUsed(
field))
override {;};
153 std::map< std::string, int > label2idx;
154 std::map< int, double > conversionFactors;
void SetFileName(const char *fileName) override
See vtkAMRBaseReader::SetFileName.
~vtkAMREnzoReader() override
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 SetUpDataArraySelections() override
See vtkAMRBaseReader::SetUpDataArraySelections.
void ComputeStats(vtkEnzoReaderInternal *internal, std::vector< int > &blocksPerLevel, double min[3])
int GetBlockLevel(const int blockIdx) override
See vtkAMRBaseReader::GetBlockLevel.
vtkUniformGrid * GetAMRGrid(const int blockIdx) override
See vtkAMRBaseReader::GetAMRGrid.
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) override
See vtkAMRBaseReader::GetAMRGridData.
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...
a simple class to control print indentation
void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field) override
See vtkAMRBaseReader::GetAMRGridData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
int FillMetaData() override
See vtkAMRBaseReader::FillMetaData.
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 GetNumberOfLevels() override
See vtkAMRBaseReader::GetNumberOfLevels.
void ParseConversionFactors()
Parses the parameters file and extracts the conversion factors that are used to convert to CGS units.
int GetNumberOfBlocks() override
See vtkAMRBaseReader::GetNumberOfBlocks.
static vtkAMREnzoReader * New()
void ReadMetaData() override
See vtkAMRBaseReader::ReadMetaData.
A concrete instance of vtkAMRBaseReader that implements functionality for reading Enzo AMR datasets.