31 #ifndef vtkNetCDFCAMReader_h 32 #define vtkNetCDFCAMReader_h 34 #include "vtkIONetCDFModule.h" 37 #include "vtk_netcdfcpp_fwd.h" 55 static int CanReadFile(
const char* fileName);
57 void SetFileName(
const char* fileName);
58 vtkGetStringMacro(FileName);
60 void SetConnectivityFileName(
const char* fileName);
61 vtkGetStringMacro(ConnectivityFileName);
81 VERTICAL_DIMENSION_COUNT
83 vtkSetClampMacro(VerticalDimension,
int, 0, 2);
84 vtkGetMacro(VerticalDimension,
int);
97 vtkSetMacro(MidpointLayerIndex,
int);
98 vtkGetMacro(MidpointLayerIndex,
int);
99 vtkGetVector2Macro(MidpointLayersRange,
int);
101 vtkBooleanMacro(SingleInterfaceLayer,
vtkTypeBool);
104 vtkSetMacro(InterfaceLayerIndex,
int);
105 vtkGetMacro(InterfaceLayerIndex,
int);
106 vtkGetVector2Macro(InterfaceLayersRange,
int);
114 int GetNumberOfPointArrays();
115 const char* GetPointArrayName(
int index);
116 int GetPointArrayStatus(
const char*
name);
117 void SetPointArrayStatus(
const char*
name,
int status);
118 void DisableAllPointArrays();
119 void EnableAllPointArrays();
140 bool GetPartitioning(
141 int piece,
int numPieces,
int numCellLevels,
int numCellsPerLevel,
142 int & beginCellLevel,
int & endCellLevel,
int & beginCell,
int & endCell);
144 void BuildVarArray();
145 static void SelectionCallback(
vtkObject* caller,
unsigned long eid,
146 void* clientdata,
void* calldata);
159 char* CurrentFileName;
160 vtkSetStringMacro(CurrentFileName);
167 char* ConnectivityFileName;
168 char* CurrentConnectivityFileName;
169 vtkSetStringMacro(CurrentConnectivityFileName);
172 int VerticalDimension;
174 long NumberOfTimeSteps;
179 int MidpointLayerIndex;
180 int MidpointLayersRange[2];
183 int InterfaceLayerIndex;
184 int InterfaceLayersRange[2];
193 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.