vtkMPASReader Class Reference

#include <vtkMPASReader.h>

Inheritance diagram for vtkMPASReader:

Inheritance graph
[legend]
Collaboration diagram for vtkMPASReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

Read an MPAS netCFD file.

This program reads an MPAS netCDF data file to allow paraview to display a dual-grid sphere. The variables that have time dim are available to ParaView.

Assume all variables are of interest if they have dims (Time, nCells|nVertices, nVertLevels, [nTracers]) Converts variable data type from double to float. Assume no more than 100 vars each for cell and point data Displays tracer vars as tracer1, tracer2, etc. Does not deal with edge data.

Christine Ahrens 8/9/2010 Version 1.2

Definition at line 96 of file vtkMPASReader.h.


Public Types

typedef
vtkUnstructuredGridAlgorithm 
Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
int GetNumberOfCellArrays ()
const char * GetCellArrayName (int index)
int GetCellArrayStatus (const char *name)
void SetCellArrayStatus (const char *name, int status)
void DisableAllCellArrays ()
void EnableAllCellArrays ()
void SetVerticalLevel (int level)
virtual int * GetVerticalLevelRange ()
virtual void GetVerticalLevelRange (int &, int &)
virtual void GetVerticalLevelRange (int[2])
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual int GetNumberOfDualCells ()
virtual int GetNumberOfDualPoints ()
virtual int GetNumberOfVariables ()
vtkUnstructuredGridGetOutput ()
vtkUnstructuredGridGetOutput (int index)
int GetNumberOfPointArrays ()
const char * GetPointArrayName (int index)
int GetPointArrayStatus (const char *name)
void SetPointArrayStatus (const char *name, int status)
void DisableAllPointArrays ()
void EnableAllPointArrays ()

Static Public Member Functions

static vtkMPASReaderNew ()
static int IsTypeOf (const char *type)
static vtkMPASReaderSafeDownCast (vtkObject *o)
static int CanReadFile (const char *filename)

Protected Member Functions

 vtkMPASReader ()
 ~vtkMPASReader ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void LoadGeometryData (int var, double dTime)
void LoadPointData (int var)
void LoadCellData (int var)
int ReadAndOutputDualGrid ()
int ReadAndOutputVariableData ()
int LoadPointVarData (int variable, double dTime)
int LoadCellVarData (int variable, double dTime)
int BuildVarArrays ()

Static Protected Member Functions

static void SelectionCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)

Protected Attributes

char * FileName
vtkIdType NumberOfDualPoints
vtkIdType NumberOfDualCells
int NumberOfVariables
vtkStdStringVariableName
int * VariableType
int NumberOfTimeSteps
double * TimeSteps
double dTime
vtkFloatArray ** dualCellVarData
vtkFloatArray ** dualPointVarData
vtkDataArraySelectionPointDataArraySelection
vtkDataArraySelectionCellDataArraySelection
int VerticalLevelSelected
int VerticalLevelRange [2]
vtkCallbackCommandSelectionObserver
bool infoRequested
bool dataRequested
vtkInternals * Internals
char tracerNames [MAX_VAR_NAME][MAX_VARS]
int numDualCellVars
int numDualPointVars
double * primalPointVarData
double * primalCellVarData

Member Typedef Documentation

Reimplemented from vtkUnstructuredGridAlgorithm.

Definition at line 100 of file vtkMPASReader.h.


Constructor & Destructor Documentation

vtkMPASReader::vtkMPASReader (  )  [protected]

vtkMPASReader::~vtkMPASReader (  )  [protected]


Member Function Documentation

static vtkMPASReader* vtkMPASReader::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkUnstructuredGridAlgorithm.

virtual const char* vtkMPASReader::GetClassName (  )  [virtual]

Reimplemented from vtkUnstructuredGridAlgorithm.

static int vtkMPASReader::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 vtkUnstructuredGridAlgorithm.

virtual int vtkMPASReader::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 vtkUnstructuredGridAlgorithm.

static vtkMPASReader* vtkMPASReader::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkUnstructuredGridAlgorithm.

void vtkMPASReader::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 vtkUnstructuredGridAlgorithm.

virtual void vtkMPASReader::SetFileName ( const char *   )  [virtual]

Specify file name of MPAS data file to read.

virtual char* vtkMPASReader::GetFileName (  )  [virtual]

Specify file name of MPAS data file to read.

virtual int vtkMPASReader::GetNumberOfDualCells (  )  [virtual]

Get the number of data cells

virtual int vtkMPASReader::GetNumberOfDualPoints (  )  [virtual]

Get the number of points

virtual int vtkMPASReader::GetNumberOfVariables (  )  [virtual]

Get the number of data variables at the cell centers and points

vtkUnstructuredGrid* vtkMPASReader::GetOutput (  ) 

Get the reader's output

Reimplemented from vtkUnstructuredGridAlgorithm.

vtkUnstructuredGrid* vtkMPASReader::GetOutput ( int  index  ) 

Get the reader's output

Reimplemented from vtkUnstructuredGridAlgorithm.

int vtkMPASReader::GetNumberOfPointArrays (  ) 

The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.

const char* vtkMPASReader::GetPointArrayName ( int  index  ) 

The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.

int vtkMPASReader::GetPointArrayStatus ( const char *  name  ) 

The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.

void vtkMPASReader::SetPointArrayStatus ( const char *  name,
int  status 
)

The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.

void vtkMPASReader::DisableAllPointArrays (  ) 

The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.

void vtkMPASReader::EnableAllPointArrays (  ) 

The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.

int vtkMPASReader::GetNumberOfCellArrays (  ) 

const char* vtkMPASReader::GetCellArrayName ( int  index  ) 

int vtkMPASReader::GetCellArrayStatus ( const char *  name  ) 

void vtkMPASReader::SetCellArrayStatus ( const char *  name,
int  status 
)

void vtkMPASReader::DisableAllCellArrays (  ) 

void vtkMPASReader::EnableAllCellArrays (  ) 

void vtkMPASReader::SetVerticalLevel ( int  level  ) 

virtual int* vtkMPASReader::GetVerticalLevelRange (  )  [virtual]

virtual void vtkMPASReader::GetVerticalLevelRange ( int &  ,
int &   
) [virtual]

virtual void vtkMPASReader::GetVerticalLevelRange ( int  [2]  )  [virtual]

static int vtkMPASReader::CanReadFile ( const char *  filename  )  [static]

Returns true if the given file can be read.

int vtkMPASReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkUnstructuredGridAlgorithm.

int vtkMPASReader::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Reimplemented from vtkUnstructuredGridAlgorithm.

void vtkMPASReader::LoadGeometryData ( int  var,
double  dTime 
) [protected]

void vtkMPASReader::LoadPointData ( int  var  )  [protected]

void vtkMPASReader::LoadCellData ( int  var  )  [protected]

static void vtkMPASReader::SelectionCallback ( vtkObject caller,
unsigned long  eid,
void *  clientdata,
void *  calldata 
) [static, protected]

int vtkMPASReader::ReadAndOutputDualGrid (  )  [protected]

int vtkMPASReader::ReadAndOutputVariableData (  )  [protected]

int vtkMPASReader::LoadPointVarData ( int  variable,
double  dTime 
) [protected]

int vtkMPASReader::LoadCellVarData ( int  variable,
double  dTime 
) [protected]

int vtkMPASReader::BuildVarArrays (  )  [protected]


Member Data Documentation

char* vtkMPASReader::FileName [protected]

Definition at line 158 of file vtkMPASReader.h.

Definition at line 165 of file vtkMPASReader.h.

Definition at line 166 of file vtkMPASReader.h.

Definition at line 169 of file vtkMPASReader.h.

Definition at line 170 of file vtkMPASReader.h.

int* vtkMPASReader::VariableType [protected]

Definition at line 171 of file vtkMPASReader.h.

Definition at line 173 of file vtkMPASReader.h.

double* vtkMPASReader::TimeSteps [protected]

Definition at line 174 of file vtkMPASReader.h.

double vtkMPASReader::dTime [protected]

Definition at line 175 of file vtkMPASReader.h.

Definition at line 177 of file vtkMPASReader.h.

Definition at line 178 of file vtkMPASReader.h.

Definition at line 181 of file vtkMPASReader.h.

Definition at line 182 of file vtkMPASReader.h.

Definition at line 184 of file vtkMPASReader.h.

Definition at line 185 of file vtkMPASReader.h.

Definition at line 188 of file vtkMPASReader.h.

bool vtkMPASReader::infoRequested [protected]

Definition at line 202 of file vtkMPASReader.h.

bool vtkMPASReader::dataRequested [protected]

Definition at line 203 of file vtkMPASReader.h.

vtkInternals* vtkMPASReader::Internals [protected]

Definition at line 205 of file vtkMPASReader.h.

char vtkMPASReader::tracerNames[MAX_VAR_NAME][MAX_VARS] [protected]

Definition at line 207 of file vtkMPASReader.h.

Definition at line 208 of file vtkMPASReader.h.

Definition at line 209 of file vtkMPASReader.h.

double* vtkMPASReader::primalPointVarData [protected]

Definition at line 210 of file vtkMPASReader.h.

double* vtkMPASReader::primalCellVarData [protected]

Definition at line 211 of file vtkMPASReader.h.


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

Generated on Mon Sep 27 18:35:07 2010 for VTK by  doxygen 1.5.6