VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkAMREnzoReader Class Reference

#include <vtkAMREnzoReader.h>

Inheritance diagram for vtkAMREnzoReader:
Inheritance graph
[legend]
Collaboration diagram for vtkAMREnzoReader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkAMRBaseReader Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkAMREnzoReaderNewInstance () 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 vtkAMREnzoReaderNew ()
static int IsTypeOf (const char *type)
static vtkAMREnzoReaderSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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 ()
vtkUniformGridGetAMRGrid (const int blockIdx)
void SetUpDataArraySelections ()
void GetAMRGridData (const int blockIdx, vtkUniformGrid *block, const char *field)

Protected Attributes

int ConvertToCGS
bool IsReady

Detailed Description

A concrete instance of vtkAMRBaseReader that implements functionality for reading Enzo AMR datasets.

Tests:
vtkAMREnzoReader (Tests)

A concrete instance of vtkAMRBaseReader that implements functionality for reading Flash AMR datasets.

Definition at line 36 of file vtkAMREnzoReader.h.


Member Typedef Documentation

Reimplemented from vtkAMRBaseReader.

Definition at line 40 of file vtkAMREnzoReader.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkAMRBaseReader.

virtual vtkObjectBase* vtkAMREnzoReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkAMRBaseReader.

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

void vtkAMREnzoReader::SetFileName ( const char *  fileName) [virtual]

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]
int vtkAMREnzoReader::GetBlockLevel ( const int  blockIdx) [protected, virtual]
void vtkAMREnzoReader::ComputeStats ( vtkEnzoReaderInternal internal,
std::vector< int > &  blocksPerLevel,
double  min[3] 
) [protected]
int vtkAMREnzoReader::FillMetaData ( ) [protected, virtual]
vtkUniformGrid* vtkAMREnzoReader::GetAMRGrid ( const int  blockIdx) [protected, virtual]
void vtkAMREnzoReader::GetAMRGridData ( const int  blockIdx,
vtkUniformGrid block,
const char *  field 
) [protected, virtual]
void vtkAMREnzoReader::SetUpDataArraySelections ( ) [protected, virtual]

Member Data Documentation

Definition at line 107 of file vtkAMREnzoReader.h.

bool vtkAMREnzoReader::IsReady [protected]

Definition at line 108 of file vtkAMREnzoReader.h.


The documentation for this class was generated from the following file: