VTK  9.3.20230924
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:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
47 
49 
52  vtkSetVector3Macro(Stride, int);
53  vtkGetVector3Macro(Stride, int);
55 
57 
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 
72  vtkInformationVector* outputVector) override;
73 
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
supports function callbacks
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read NetCDF files .Author Joshua Wu 09.15.2009
vtkCallbackCommand * SelectionObserver
static void EventCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
virtual int GetVariableArrayStatus(const char *name)
Variable array selection.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkSetFilePathMacro(FileName)
The file to open.
virtual void SetVariableArrayStatus(const char *name, int status)
Variable array selection.
virtual const char * GetVariableArrayName(int index)
Variable array selection.
char * OpenedFileName
The file name of the opened file.
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
virtual int GetNumberOfVariableArrays()
Variable array selection.
vtkSetFilePathMacro(OpenedFileName)
vtkGetFilePathMacro(FileName)
The file to open.
static vtkNetCDFPOPReader * New()
~vtkNetCDFPOPReader() override
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.
abstract base class for most VTK objects
Definition: vtkObject.h:161
Superclass for algorithms that produce only rectilinear grid as output.
@ name
Definition: vtkX3D.h:219
@ index
Definition: vtkX3D.h:246