Go to the documentation of this file.
31 #ifndef vtkNetCDFCAMReader_h
32 #define vtkNetCDFCAMReader_h
34 #include "vtkIONetCDFModule.h"
56 vtkGetStringMacro(FileName);
59 vtkGetStringMacro(ConnectivityFileName);
79 VERTICAL_DIMENSION_COUNT
95 vtkSetMacro(MidpointLayerIndex,
int);
96 vtkGetMacro(MidpointLayerIndex,
int);
97 vtkGetVector2Macro(MidpointLayersRange,
int);
102 vtkSetMacro(InterfaceLayerIndex,
int);
103 vtkGetMacro(InterfaceLayerIndex,
int);
104 vtkGetVector2Macro(InterfaceLayersRange,
int);
139 size_t piece,
size_t numPieces,
size_t numCellLevels,
size_t numCellsPerLevel,
140 size_t & beginCellLevel,
size_t & endCellLevel,
size_t & beginCell,
size_t & endCell);
144 void* clientdata,
void* calldata);
157 char* CurrentFileName;
158 vtkSetStringMacro(CurrentFileName);
165 char* ConnectivityFileName;
166 char* CurrentConnectivityFileName;
167 vtkSetStringMacro(CurrentConnectivityFileName);
172 size_t NumberOfTimeSteps;
177 int MidpointLayerIndex;
178 int MidpointLayersRange[2];
181 int InterfaceLayerIndex;
182 int InterfaceLayersRange[2];
const char * GetPointArrayName(int index)
Read unstructured NetCDF CAM files.
@ VERTICAL_DIMENSION_INTERFACE_LAYERS
bool GetPartitioning(size_t piece, size_t numPieces, size_t numCellLevels, size_t numCellsPerLevel, size_t &beginCellLevel, size_t &endCellLevel, size_t &beginCell, size_t &endCell)
Returns true for success.
abstract base class for most VTK objects
static vtkNetCDFCAMReader * New()
void EnableAllPointArrays()
Store on/off settings for data arrays for a vtkSource.
@ VERTICAL_DIMENSION_SINGLE_LAYER
void SetConnectivityFileName(const char *fileName)
static void SelectionCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static int CanReadFile(const char *fileName)
Returns 1 if this file can be read and 0 if the file cannot be read.
int GetNumberOfPointArrays()
The following methods allow selective reading of variables.
a simple class to control print indentation
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
VerticalDimension
Set whether to read a single layer, midpoint layers or interface layers.
void DisableAllPointArrays()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetFileName(const char *fileName)
@ VERTICAL_DIMENSION_MIDPOINT_LAYERS
supports function callbacks
Superclass for algorithms that produce only unstructured grid as output.
int GetPointArrayStatus(const char *name)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkNetCDFCAMReader() override
void SetPointArrayStatus(const char *name, int status)