31 #ifndef vtkNetCDFCAMReader_h
32 #define vtkNetCDFCAMReader_h
34 #include "vtkIONetCDFModule.h"
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);
136 size_t numCellsPerLevel,
size_t& beginCellLevel,
size_t& endCellLevel,
size_t& beginCell,
141 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
153 char* CurrentFileName;
154 vtkSetStringMacro(CurrentFileName);
161 char* ConnectivityFileName;
162 char* CurrentConnectivityFileName;
163 vtkSetStringMacro(CurrentConnectivityFileName);
168 size_t NumberOfTimeSteps;
173 int MidpointLayerIndex;
174 int MidpointLayersRange[2];
177 int InterfaceLayerIndex;
178 int InterfaceLayersRange[2];
supports function callbacks
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Read unstructured NetCDF CAM files.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetFileName(VTK_FILEPATH 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.
int GetPointArrayStatus(const char *name)
The following methods allow selective reading of variables.
void SetConnectivityFileName(VTK_FILEPATH const char *fileName)
VerticalDimension
Set whether to read a single layer, midpoint layers or interface layers.
@ VERTICAL_DIMENSION_INTERFACE_LAYERS
@ VERTICAL_DIMENSION_SINGLE_LAYER
@ VERTICAL_DIMENSION_MIDPOINT_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.
const char * GetPointArrayName(int index)
The following methods allow selective reading of variables.
vtkGetFilePathMacro(FileName)
void DisableAllPointArrays()
The following methods allow selective reading of variables.
int GetNumberOfPointArrays()
The following methods allow selective reading of variables.
void SetPointArrayStatus(const char *name, int status)
The following methods allow selective reading of variables.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static int CanReadFile(VTK_FILEPATH const char *fileName)
Returns 1 if this file can be read and 0 if the file cannot be read.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkNetCDFCAMReader() override
vtkGetFilePathMacro(ConnectivityFileName)
void EnableAllPointArrays()
The following methods allow selective reading of variables.
static vtkNetCDFCAMReader * New()
abstract base class for most VTK objects
Superclass for algorithms that produce only unstructured grid as output.