80 #ifndef vtkMPASReader_h 81 #define vtkMPASReader_h 84 #define MAX_VAR_NAME 100 134 int GetNumberOfPointArrays();
135 const char* GetPointArrayName(
int index);
136 int GetPointArrayStatus(
const char*
name);
137 void SetPointArrayStatus(
const char*
name,
int status);
138 void DisableAllPointArrays();
139 void EnableAllPointArrays();
142 int GetNumberOfCellArrays();
143 const char* GetCellArrayName(
int index);
144 int GetCellArrayStatus(
const char*
name);
145 void SetCellArrayStatus(
const char*
name,
int status);
146 void DisableAllCellArrays();
147 void EnableAllCellArrays();
149 void SetVerticalLevel(
int level);
152 void SetLayerThickness(
int val);
155 void SetCenterLon(
int val);
158 void SetProjectLatLon(
bool val);
161 void SetIsAtmosphere(
bool val);
164 void SetIsZeroCentered(
bool val);
167 void SetShowMultilayerView(
bool val);
171 static int CanReadFile(
const char *filename);
204 static void SelectionCallback(
vtkObject* caller,
unsigned long eid,
205 void* clientdata,
void* calldata);
220 int VerticalLevelRange[2];
223 int LayerThicknessRange[2];
226 int CenterLonRange[2];
270 int GetNcVars(
const char* cellDimName,
const char* pointDimName);
271 int ReadAndOutputGrid(
bool init);
272 int ReadAndOutputVariableData();
273 int BuildVarArrays();
274 int AllocSphereGeometry();
275 int AllocLatLonGeometry();
277 int AddMirrorPoint(
int index,
double dividerX);
279 int EliminateXWrap();
280 void OutputPoints(
bool init);
281 void OutputCells(
bool init);
282 unsigned char GetCellType();
283 void LoadGeometryData(
int var,
double dTime);
284 int LoadPointVarData(
int variable,
double dTime);
285 int LoadCellVarData(
int variable,
double dTime);
286 int RegenerateGeometry();
Wrapper around std::string to keep symbols short.
int VerticalLevelSelected
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
abstract base class for most VTK objects
#define vtkGetMacro(name, type)
vtkDoubleArray ** PointVarDataArray
static vtkUnstructuredGridAlgorithm * New()
a vtkAbstractArray subclass for strings
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkSetStringMacro(name)
vtkDataArraySelection * PointDataArraySelection
vtkDoubleArray ** CellVarDataArray
#define vtkTypeMacro(thisClass, superclass)
Read an MPAS netCDF file.
dynamic, self-adjusting array of double
supports function callbacks
GLuint const GLchar * name
a simple class to control print indentation
Store on/off settings for data arrays for a vtkSource.
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
#define vtkGetStringMacro(name)
Superclass for algorithms that produce only unstructured grid as output.
vtkStdString * VariableName
#define vtkGetVector2Macro(name, type)
vtkCallbackCommand * SelectionObserver
#define VTKIONETCDF_EXPORT
vtkUnstructuredGrid * GetOutput()
vtkDataArraySelection * CellDataArraySelection