VTK  9.2.6
vtkNetCDFPOPReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkNetCDFPOPReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
34 #ifndef vtkNetCDFPOPReader_h
35 #define vtkNetCDFPOPReader_h
36 
37 #include "vtkIONetCDFModule.h" // For export macro
39 
41 class vtkCallbackCommand;
42 class vtkNetCDFPOPReaderInternal;
43 
44 class VTKIONETCDF_EXPORT vtkNetCDFPOPReader : public vtkRectilinearGridAlgorithm
45 {
46 public:
48  static vtkNetCDFPOPReader* New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetFilePathMacro(FileName);
56  vtkGetFilePathMacro(FileName);
58 
60 
63  vtkSetVector3Macro(Stride, int);
64  vtkGetVector3Macro(Stride, int);
66 
68 
71  virtual int GetNumberOfVariableArrays();
72  virtual const char* GetVariableArrayName(int index);
73  virtual int GetVariableArrayStatus(const char* name);
74  virtual void SetVariableArrayStatus(const char* name, int status);
76 
77 protected:
79  ~vtkNetCDFPOPReader() override;
80 
82  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector) override;
84 
85  static void SelectionModifiedCallback(
86  vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
87 
88  static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
89 
91 
92  char* FileName;
93 
97  int NCDFFD;
98 
103 
104  vtkSetFilePathMacro(OpenedFileName);
105 
106  int Stride[3];
107 
108 private:
109  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) = delete;
110  void operator=(const vtkNetCDFPOPReader&) = delete;
111 
112  vtkNetCDFPOPReaderInternal* Internals;
113 };
114 #endif
Superclass for algorithms that produce only rectilinear grid as output.
abstract base class for most VTK objects
Definition: vtkObject.h:62
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:39
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.