77 #ifndef __vtkMPASReader_h
78 #define __vtkMPASReader_h
81 #define MAX_VAR_NAME 100
100 vtkSetStringMacro(FileName);
101 vtkGetStringMacro(FileName);
106 vtkGetMacro(maxCells,
int);
111 vtkGetMacro(maxPoints,
int);
116 vtkGetMacro(numCellVars,
int);
117 vtkGetMacro(numPointVars,
int);
130 int GetNumberOfPointArrays();
131 const char* GetPointArrayName(
int index);
132 int GetPointArrayStatus(
const char*
name);
133 void SetPointArrayStatus(
const char*
name,
int status);
134 void DisableAllPointArrays();
135 void EnableAllPointArrays();
138 int GetNumberOfCellArrays();
139 const char* GetCellArrayName(
int index);
140 int GetCellArrayStatus(
const char*
name);
141 void SetCellArrayStatus(
const char*
name,
int status);
142 void DisableAllCellArrays();
143 void EnableAllCellArrays();
145 void SetVerticalLevel(
int level);
146 vtkGetVector2Macro(VerticalLevelRange,
int);
148 void SetLayerThickness(
int val);
149 vtkGetVector2Macro(LayerThicknessRange,
int);
151 void SetCenterLon(
int val);
152 vtkGetVector2Macro(CenterLonRange,
int);
154 void SetProjectLatLon(
bool val);
155 vtkGetMacro(ProjectLatLon,
bool);
157 void SetIsAtmosphere(
bool val);
158 vtkGetMacro(IsAtmosphere,
bool);
160 void SetIsZeroCentered(
bool val);
161 vtkGetMacro(IsZeroCentered,
bool);
163 void SetShowMultilayerView(
bool val);
164 vtkGetMacro(ShowMultilayerView,
bool);
167 static int CanReadFile(
const char *filename);
200 static void SelectionCallback(
vtkObject* caller,
unsigned long eid,
201 void* clientdata,
void* calldata);
216 int VerticalLevelRange[2];
219 int LayerThicknessRange[2];
222 int CenterLonRange[2];
266 int GetNcVars(
const char* cellDimName,
const char* pointDimName);
267 int ReadAndOutputGrid(
bool init);
268 int ReadAndOutputVariableData();
269 int BuildVarArrays();
270 int AllocSphereGeometry();
271 int AllocLatLonGeometry();
273 int AddMirrorPoint(
int index,
double dividerX);
275 int EliminateXWrap();
276 void OutputPoints(
bool init);
277 void OutputCells(
bool init);
278 unsigned char GetCellType();
279 void LoadGeometryData(
int var,
double dTime);
280 int LoadPointVarData(
int variable,
double dTime);
281 int LoadCellVarData(
int variable,
double dTime);
282 int RegenerateGeometry();