VTK  9.3.1
vtkNetCDFPOPReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkNetCDFPOPReader_h
23 #define vtkNetCDFPOPReader_h
24 
25 #include "vtkIONetCDFModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
30 class vtkCallbackCommand;
31 class vtkNetCDFPOPReaderInternal;
32 
33 class VTKIONETCDF_EXPORT vtkNetCDFPOPReader : public vtkRectilinearGridAlgorithm
34 {
35 public:
37  static vtkNetCDFPOPReader* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetFilePathMacro(FileName);
45  vtkGetFilePathMacro(FileName);
47 
49 
52  vtkSetVector3Macro(Stride, int);
53  vtkGetVector3Macro(Stride, int);
55 
57 
60  virtual int GetNumberOfVariableArrays();
61  virtual const char* GetVariableArrayName(int index);
62  virtual int GetVariableArrayStatus(const char* name);
63  virtual void SetVariableArrayStatus(const char* name, int status);
65 
66 protected:
68  ~vtkNetCDFPOPReader() override;
69 
71  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector) override;
73 
74  static void SelectionModifiedCallback(
75  vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
76 
77  static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
78 
80 
81  char* FileName;
82 
86  int NCDFFD;
87 
92 
93  vtkSetFilePathMacro(OpenedFileName);
94 
95  int Stride[3];
96 
97 private:
98  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) = delete;
99  void operator=(const vtkNetCDFPOPReader&) = delete;
100 
101  vtkNetCDFPOPReaderInternal* Internals;
102 };
103 VTK_ABI_NAMESPACE_END
104 #endif
Superclass for algorithms that produce only rectilinear grid as output.
abstract base class for most VTK objects
Definition: vtkObject.h:51
Store vtkAlgorithm input/output information.
read NetCDF files .Author Joshua Wu 09.15.2009
static vtkRectilinearGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int NCDFFD
The NetCDF file descriptor.
char * OpenedFileName
The file name of the opened file.
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store on/off settings for data arrays, etc.
vtkCallbackCommand * SelectionObserver
Store zero or more vtkInformation instances.