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