 |
VTK
9.0.1
|
Go to the documentation of this file.
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);
vtkStringArray * GetAllDimensions()
void SetDimensionCurrentIndex(const std::string &dim, int idx)
vtkCallbackCommand * SelectionObserver
static vtkMPASReader * New()
static int CanReadFile(const char *filename)
Returns true if the given file can be read.
vtkDataArray * LookupPointDataArray(int varIdx)
int GetDimensionCurrentIndex(const std::string &dim)
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int GetDimensionSize(const std::string &dim)
virtual int GetNumberOfPointVars()
void EnableAllPointArrays()
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.
Read an MPAS netCDF file.
int GetPointArrayStatus(const char *name)
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)
void DisableAllPointArrays()
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)
void SetPointArrayStatus(const char *name, int status)
int AllocSphericalGeometry()
size_t MaximumNVertLevels
int GetNumberOfCellArrays()
vtkIdType GetNumberOfDimensions()
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
vtkUnstructuredGrid * GetOutput(int index)
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
~vtkMPASReader() override
vtkTypeUInt32 vtkMTimeType