77 #ifndef vtkMPASReader_h
78 #define vtkMPASReader_h
80 #include "vtkIONetCDFModule.h"
102 vtkSetStringMacro(FileName);
103 vtkGetStringMacro(FileName);
110 vtkGetMacro(MaximumCells,
int);
117 vtkGetMacro(MaximumPoints,
int);
143 vtkSetMacro(UseDimensionedArrayNames,
bool);
144 vtkGetMacro(UseDimensionedArrayNames,
bool);
145 vtkBooleanMacro(UseDimensionedArrayNames,
bool);
204 vtkGetVector2Macro(VerticalLevelRange,
int);
206 vtkSetMacro(LayerThickness,
int);
207 vtkGetMacro(LayerThickness,
int);
208 vtkGetVector2Macro(LayerThicknessRange,
int);
211 vtkGetVector2Macro(CenterLonRange,
int);
213 vtkSetMacro(ProjectLatLon,
bool);
214 vtkGetMacro(ProjectLatLon,
bool);
216 vtkSetMacro(IsAtmosphere,
bool);
217 vtkGetMacro(IsAtmosphere,
bool);
219 vtkSetMacro(IsZeroCentered,
bool);
220 vtkGetMacro(IsZeroCentered,
bool);
222 vtkSetMacro(ShowMultilayerView,
bool);
223 vtkGetMacro(ShowMultilayerView,
bool);
250 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
263 int VerticalLevelRange[2];
266 int LayerThicknessRange[2];
269 int CenterLonRange[2];
318 int GetNcVars(
const char* cellDimName,
const char* pointDimName);
supports function callbacks
Store on/off settings for data arrays for a vtkSource.
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of double
a simple class to control print indentation
Read an MPAS netCDF file.
void UpdateDimensions(bool force=false)
Update the list of available dimensions.
vtkDataArray * LookupCellDataArray(int varIdx)
int GetNumberOfPointArrays()
The following methods allow selective reading of solutions fields.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCallbackCommand * SelectionObserver
vtkDataArray * LoadPointVarData(int variable)
static int CanReadFile(const char *filename)
Returns true if the given file can be read.
virtual int GetNumberOfPointVars()
int AllocPlanarGeometry()
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
const char * GetPointArrayName(int index)
void SetPointArrayStatus(const char *name, int status)
void EnableAllPointArrays()
int GetDimensionCurrentIndex(const std::string &dim)
vtkStringArray * GetAllDimensions()
int GetCellArrayStatus(const char *name)
vtkIdType GetNumberOfDimensions()
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
std::string GetDimensionName(int idx)
void EnableAllCellArrays()
void SetDimensionCurrentIndex(const std::string &dim, int idx)
void SetCellArrayStatus(const char *name, int status)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
size_t MaximumNVertLevels
int AllocSphericalGeometry()
int AddMirrorPoint(int index, double dividerX, double offset)
int GetNumberOfCellArrays()
vtkDataArraySelection * PointDataArraySelection
static void SelectionCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
vtkDataArray * LookupPointDataArray(int varIdx)
std::string VerticalDimension
void DisableAllPointArrays()
vtkUnstructuredGrid * GetOutput(int index)
virtual int GetNumberOfCellVars()
Get the number of data variables at the cell centers and points.
unsigned char GetCellType()
int GetNcVars(const char *cellDimName, const char *pointDimName)
void SetVerticalLevel(int level)
Convenience function for setting/querying [GS]etDimensionCurrentIndex for the dimension returned by G...
~vtkMPASReader() override
int GetDimensionSize(const std::string &dim)
const char * GetCellArrayName(int index)
static vtkMPASReader * New()
int GetPointArrayStatus(const char *name)
void DisableAllCellArrays()
vtkDataArraySelection * CellDataArraySelection
void LoadTimeFieldData(vtkUnstructuredGrid *dataset)
Update the "Time" vtkStringArray in dataset's FieldData to contain the xtime string for the current t...
vtkMTimeType GetMTime() override
Return this object's modified time.
bool UseDimensionedArrayNames
void SetCenterLon(int val)
int AllocProjectedGeometry()
vtkDataArray * LoadCellVarData(int variable)
abstract base class for most VTK objects
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
vtkTypeUInt32 vtkMTimeType