23 #ifndef vtkAMREnzoReader_h
24 #define vtkAMREnzoReader_h
26 #include "vtkIOAMRModule.h"
47 vtkGetMacro( ConvertToCGS,
int );
59 int GetNumberOfLevels() VTK_OVERRIDE;
64 void SetFileName( const
char* fileName ) VTK_OVERRIDE;
68 ~vtkAMREnzoReader() VTK_OVERRIDE;
75 void ParseConversionFactors();
81 int GetIndexFromArrayName( std::
string arrayName );
87 void ParseLabel(const std::
string &labelString,
int &idx, std::
string &label);
93 void ParseCFactor(const std::
string &labelString,
int &idx,
double &factor );
100 double GetConversionFactor( const std::
string&
name );
105 void ReadMetaData() VTK_OVERRIDE;
110 int GetBlockLevel( const
int blockIdx ) VTK_OVERRIDE;
117 int FillMetaData( ) VTK_OVERRIDE;
133 void GetAMRGridPointData(
134 const
int vtkNotUsed(blockIdx),
vtkUniformGrid *vtkNotUsed(block), const
char *vtkNotUsed(
field)) VTK_OVERRIDE {;};
150 std::map< std::
string,
int > label2idx;
151 std::map<
int,
double > conversionFactors;
virtual int GetNumberOfBlocks()=0
Returns the total number of blocks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A concrete instance of vtkAMRBaseReader that implements functionality for reading Enzo AMR datasets...
a simple class to control print indentation
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.
An abstract class that encapsulates common functionality for all AMR readers.
static vtkOverlappingAMRAlgorithm * New()
virtual void SetUpDataArraySelections()=0
Initializes the PointDataArraySelection & CellDataArraySelection.