28 #ifndef vtkNetCDFCAMReader_h 29 #define vtkNetCDFCAMReader_h 31 #include "vtkIONetCDFModule.h" 34 #include "vtk_netcdfcpp_fwd.h" 52 static int CanReadFile(
const char* fileName);
54 void SetFileName(
const char* fileName);
55 vtkGetStringMacro(FileName);
57 void SetConnectivityFileName(
const char* fileName);
58 vtkGetStringMacro(ConnectivityFileName);
78 VERTICAL_DIMENSION_COUNT
80 vtkSetClampMacro(VerticalDimension,
int, 0, 2);
81 vtkGetMacro(VerticalDimension,
int);
94 vtkSetMacro(MidpointLayerIndex,
int);
95 vtkGetMacro(MidpointLayerIndex,
int);
96 vtkGetVector2Macro(MidpointLayersRange,
int);
101 vtkSetMacro(InterfaceLayerIndex,
int);
102 vtkGetMacro(InterfaceLayerIndex,
int);
103 vtkGetVector2Macro(InterfaceLayersRange,
int);
111 int GetNumberOfPointArrays();
112 const char* GetPointArrayName(
int index);
113 int GetPointArrayStatus(
const char*
name);
114 void SetPointArrayStatus(
const char*
name,
int status);
115 void DisableAllPointArrays();
116 void EnableAllPointArrays();
137 bool GetPartitioning(
138 int piece,
int numPieces,
int numCellLevels,
int numCellsPerLevel,
139 int & beginCellLevel,
int & endCellLevel,
int & beginCell,
int & endCell);
141 void BuildVarArray();
142 static void SelectionCallback(
vtkObject* caller,
unsigned long eid,
143 void* clientdata,
void* calldata);
156 char* CurrentFileName;
157 vtkSetStringMacro(CurrentFileName);
164 char* ConnectivityFileName;
165 char* CurrentConnectivityFileName;
166 vtkSetStringMacro(CurrentConnectivityFileName);
169 int VerticalDimension;
171 long NumberOfTimeSteps;
176 int MidpointLayerIndex;
177 int MidpointLayersRange[2];
180 int InterfaceLayerIndex;
181 int InterfaceLayersRange[2];
190 NcFile* ConnectivityFile;
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
abstract base class for most VTK objects
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Read unstructured NetCDF CAM files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
supports function callbacks
a simple class to control print indentation
Store on/off settings for data arrays for a vtkSource.
Superclass for algorithms that produce only unstructured grid as output.
VerticalDimension
Set whether to read a single layer, midpoint layers or interface layers.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.