80 #ifndef vtkMPASReader_h
81 #define vtkMPASReader_h
84 #define MAX_VAR_NAME 100
104 vtkSetStringMacro(FileName);
105 vtkGetStringMacro(FileName);
110 vtkGetMacro(MaximumCells,
int);
115 vtkGetMacro(MaximumPoints,
int);
120 vtkGetMacro(NumberOfCellVars,
int);
121 vtkGetMacro(NumberOfPointVars,
int);
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);
150 vtkGetVector2Macro(VerticalLevelRange,
int);
152 void SetLayerThickness(
int val);
153 vtkGetVector2Macro(LayerThicknessRange,
int);
155 void SetCenterLon(
int val);
156 vtkGetVector2Macro(CenterLonRange,
int);
158 void SetProjectLatLon(
bool val);
159 vtkGetMacro(ProjectLatLon,
bool);
161 void SetIsAtmosphere(
bool val);
162 vtkGetMacro(IsAtmosphere,
bool);
164 void SetIsZeroCentered(
bool val);
165 vtkGetMacro(IsZeroCentered,
bool);
167 void SetShowMultilayerView(
bool val);
168 vtkGetMacro(ShowMultilayerView,
bool);
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
vtkDoubleArray ** PointVarDataArray
static vtkUnstructuredGridAlgorithm * New()
a vtkAbstractArray subclass for strings
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataArraySelection * PointDataArraySelection
vtkDoubleArray ** CellVarDataArray
Read an MPAS netCDF file.
dynamic, self-adjusting array of double
supports function callbacks
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)
Superclass for algorithms that produce only unstructured grid as output.
vtkStdString * VariableName
vtkCallbackCommand * SelectionObserver
#define VTKIONETCDF_EXPORT
vtkUnstructuredGrid * GetOutput()
vtkDataArraySelection * CellDataArraySelection