VTK
|
#include <vtkAMREnzoReader.h>
Public Types | |
typedef vtkAMRBaseReader | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkAMREnzoReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | GetNumberOfBlocks () |
int | GetNumberOfLevels () |
void | SetFileName (const char *fileName) |
virtual void | SetConvertToCGS (int) |
virtual int | GetConvertToCGS () |
virtual void | ConvertToCGSOn () |
virtual void | ConvertToCGSOff () |
Static Public Member Functions | |
static vtkAMREnzoReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkAMREnzoReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkAMREnzoReader () | |
~vtkAMREnzoReader () | |
void | ParseConversionFactors () |
int | GetIndexFromArrayName (std::string arrayName) |
void | ParseLabel (const std::string labelString, int &idx, std::string &label) |
void | ParseCFactor (const std::string labelString, int &idx, double &factor) |
double | GetConversionFactor (const std::string name) |
void | ReadMetaData () |
int | GetBlockLevel (const int blockIdx) |
void | ComputeStats (vtkEnzoReaderInternal *internal, std::vector< int > &blocksPerLevel, double min[3]) |
int | FillMetaData () |
vtkUniformGrid * | GetAMRGrid (const int blockIdx) |
void | SetUpDataArraySelections () |
void | GetAMRGridData (const int blockIdx, vtkUniformGrid *block, const char *field) |
Protected Attributes | |
int | ConvertToCGS |
bool | IsReady |
A concrete instance of vtkAMRBaseReader that implements functionality for reading Enzo AMR datasets.
A concrete instance of vtkAMRBaseReader that implements functionality for reading Flash AMR datasets.
Definition at line 36 of file vtkAMREnzoReader.h.
Reimplemented from vtkAMRBaseReader.
Definition at line 40 of file vtkAMREnzoReader.h.
vtkAMREnzoReader::vtkAMREnzoReader | ( | ) | [protected] |
vtkAMREnzoReader::~vtkAMREnzoReader | ( | ) | [protected] |
static vtkAMREnzoReader* vtkAMREnzoReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkOverlappingAMRAlgorithm.
static int vtkAMREnzoReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAMRBaseReader.
virtual int vtkAMREnzoReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAMRBaseReader.
static vtkAMREnzoReader* vtkAMREnzoReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAMRBaseReader.
virtual vtkObjectBase* vtkAMREnzoReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAMRBaseReader.
vtkAMREnzoReader* vtkAMREnzoReader::NewInstance | ( | ) | const |
Reimplemented from vtkAMRBaseReader.
void vtkAMREnzoReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkAMRBaseReader.
virtual void vtkAMREnzoReader::SetConvertToCGS | ( | int | ) | [virtual] |
Set/Get whether data should be converted to CGS
virtual int vtkAMREnzoReader::GetConvertToCGS | ( | ) | [virtual] |
Set/Get whether data should be converted to CGS
virtual void vtkAMREnzoReader::ConvertToCGSOn | ( | ) | [virtual] |
Set/Get whether data should be converted to CGS
virtual void vtkAMREnzoReader::ConvertToCGSOff | ( | ) | [virtual] |
Set/Get whether data should be converted to CGS
int vtkAMREnzoReader::GetNumberOfBlocks | ( | ) | [virtual] |
See vtkAMRBaseReader::GetNumberOfBlocks
Implements vtkAMRBaseReader.
int vtkAMREnzoReader::GetNumberOfLevels | ( | ) | [virtual] |
See vtkAMRBaseReader::GetNumberOfLevels
Implements vtkAMRBaseReader.
void vtkAMREnzoReader::SetFileName | ( | const char * | fileName | ) | [virtual] |
See vtkAMRBaseReader::SetFileName
Implements vtkAMRBaseReader.
void vtkAMREnzoReader::ParseConversionFactors | ( | ) | [protected] |
Parses the parameters file and extracts the conversion factors that are used to convert to CGS units.
int vtkAMREnzoReader::GetIndexFromArrayName | ( | std::string | arrayName | ) | [protected] |
Given an array name of the form "array[idx]" this method extracts and returns the corresponding index idx.
void vtkAMREnzoReader::ParseLabel | ( | const std::string | labelString, |
int & | idx, | ||
std::string & | label | ||
) | [protected] |
Given the label string, this method parses the attribute label and the string index.
void vtkAMREnzoReader::ParseCFactor | ( | const std::string | labelString, |
int & | idx, | ||
double & | factor | ||
) | [protected] |
Given the label string, this method parses the corresponding attribute index and conversion factor
double vtkAMREnzoReader::GetConversionFactor | ( | const std::string | name | ) | [protected] |
Given the variable name, return the conversion factor used to convert the data to CGS. These conversion factors are read directly from the parameters file when the filename is set.
void vtkAMREnzoReader::ReadMetaData | ( | ) | [protected, virtual] |
See vtkAMRBaseReader::ReadMetaData
Implements vtkAMRBaseReader.
int vtkAMREnzoReader::GetBlockLevel | ( | const int | blockIdx | ) | [protected, virtual] |
See vtkAMRBaseReader::GetBlockLevel
Implements vtkAMRBaseReader.
void vtkAMREnzoReader::ComputeStats | ( | vtkEnzoReaderInternal * | internal, |
std::vector< int > & | blocksPerLevel, | ||
double | min[3] | ||
) | [protected] |
int vtkAMREnzoReader::FillMetaData | ( | ) | [protected, virtual] |
See vtkAMRBaseReader::FillMetaData
Implements vtkAMRBaseReader.
vtkUniformGrid* vtkAMREnzoReader::GetAMRGrid | ( | const int | blockIdx | ) | [protected, virtual] |
See vtkAMRBaseReader::GetAMRGrid
Implements vtkAMRBaseReader.
void vtkAMREnzoReader::GetAMRGridData | ( | const int | blockIdx, |
vtkUniformGrid * | block, | ||
const char * | field | ||
) | [protected, virtual] |
See vtkAMRBaseReader::GetAMRGridData
Implements vtkAMRBaseReader.
void vtkAMREnzoReader::SetUpDataArraySelections | ( | ) | [protected, virtual] |
See vtkAMRBaseReader::SetUpDataArraySelections
Implements vtkAMRBaseReader.
int vtkAMREnzoReader::ConvertToCGS [protected] |
Definition at line 107 of file vtkAMREnzoReader.h.
bool vtkAMREnzoReader::IsReady [protected] |
Definition at line 108 of file vtkAMREnzoReader.h.