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);
60 void SetConnectivityFileName(
const char* fileName);
75 VTK_LEGACY(
virtual void SingleLevelOn ());
76 VTK_LEGACY(
virtual void SingleLevelOff ());
77 VTK_LEGACY(
virtual void SetSingleLevel (
int level));
78 VTK_LEGACY(
virtual int GetSingleLevel ());
99 VERTICAL_DIMENSION_COUNT
114 vtkGetMacro(SingleMidpointLayer,
int);
116 vtkGetMacro(MidpointLayerIndex,
int);
117 vtkGetVector2Macro(MidpointLayersRange,
int);
121 vtkGetMacro(SingleInterfaceLayer,
int);
123 vtkGetMacro(InterfaceLayerIndex,
int);
124 vtkGetVector2Macro(InterfaceLayersRange,
int);
132 int GetNumberOfPointArrays();
133 const char* GetPointArrayName(
int index);
134 int GetPointArrayStatus(
const char*
name);
135 void SetPointArrayStatus(
const char*
name,
int status);
136 void DisableAllPointArrays();
137 void EnableAllPointArrays();
149 VTK_LEGACY(
void SetCellLayerRight(
int));
150 VTK_LEGACY(
int GetCellLayerRight());
158 vtkInformationVector*) VTK_OVERRIDE;
160 int RequestData(vtkInformation *, vtkInformationVector **,
161 vtkInformationVector *) VTK_OVERRIDE;
163 int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
164 vtkInformationVector *) VTK_OVERRIDE;
171 bool GetPartitioning(
172 int piece,
int numPieces,
int numCellLevels,
int numCellsPerLevel,
173 int & beginCellLevel,
int & endCellLevel,
int & beginCell,
int & endCell);
175 void BuildVarArray();
176 static
void SelectionCallback(
vtkObject* caller,
unsigned long eid,
177 void* clientdata,
void* calldata);
190 char* CurrentFileName;
191 vtkSetStringMacro(CurrentFileName);
198 char* ConnectivityFileName;
199 char* CurrentConnectivityFileName;
200 vtkSetStringMacro(CurrentConnectivityFileName);
205 long NumberOfTimeSteps;
209 int SingleMidpointLayer;
210 int MidpointLayerIndex;
211 int MidpointLayersRange[2];
213 int SingleInterfaceLayer;
214 int InterfaceLayerIndex;
215 int InterfaceLayersRange[2];
224 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.