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);
57 void SetConnectivityFileName(
const char* fileName);
72 VTK_LEGACY(
virtual void SingleLevelOn ());
73 VTK_LEGACY(
virtual void SingleLevelOff ());
74 VTK_LEGACY(
virtual void SetSingleLevel (
int level));
75 VTK_LEGACY(
virtual int GetSingleLevel ());
96 VERTICAL_DIMENSION_COUNT
98 vtkSetClampMacro(VerticalDimension,
int, 0, 2);
99 vtkGetMacro(VerticalDimension,
int);
111 vtkGetMacro(SingleMidpointLayer,
int);
113 vtkGetMacro(MidpointLayerIndex,
int);
114 vtkGetVector2Macro(MidpointLayersRange,
int);
118 vtkGetMacro(SingleInterfaceLayer,
int);
120 vtkGetMacro(InterfaceLayerIndex,
int);
121 vtkGetVector2Macro(InterfaceLayersRange,
int);
129 int GetNumberOfPointArrays();
130 const char* GetPointArrayName(
int index);
131 int GetPointArrayStatus(
const char*
name);
132 void SetPointArrayStatus(
const char*
name,
int status);
133 void DisableAllPointArrays();
134 void EnableAllPointArrays();
146 VTK_LEGACY(
void SetCellLayerRight(
int));
147 VTK_LEGACY(
int GetCellLayerRight());
155 vtkInformationVector*) VTK_OVERRIDE;
157 int RequestData(vtkInformation *, vtkInformationVector **,
158 vtkInformationVector *) VTK_OVERRIDE;
160 int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
161 vtkInformationVector *) VTK_OVERRIDE;
168 bool GetPartitioning(
169 int piece,
int numPieces,
int numCellLevels,
int numCellsPerLevel,
170 int & beginCellLevel,
int & endCellLevel,
int & beginCell,
int & endCell);
172 void BuildVarArray();
173 static
void SelectionCallback(
vtkObject* caller,
unsigned long eid,
174 void* clientdata,
void* calldata);
187 char* CurrentFileName;
188 vtkSetStringMacro(CurrentFileName);
195 char* ConnectivityFileName;
196 char* CurrentConnectivityFileName;
197 vtkSetStringMacro(CurrentConnectivityFileName);
200 int VerticalDimension;
202 long NumberOfTimeSteps;
206 int SingleMidpointLayer;
207 int MidpointLayerIndex;
208 int MidpointLayersRange[2];
210 int SingleInterfaceLayer;
211 int InterfaceLayerIndex;
212 int InterfaceLayersRange[2];
221 NcFile* ConnectivityFile;
abstract base class for most VTK objects
static vtkUnstructuredGridAlgorithm * New()
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.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
VerticalDimension
Set whether to read a single layer, midpoint layers or interface layers.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.