VTK  9.2.5
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:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
58 
60 
63  vtkSetVector3Macro(Stride, int);
64  vtkGetVector3Macro(Stride, int);
66 
68 
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 
83  vtkInformationVector* outputVector) override;
84 
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
supports function callbacks
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition: vtkIndent.h:119
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:82
Superclass for algorithms that produce only rectilinear grid as output.
@ name
Definition: vtkX3D.h:225
@ index
Definition: vtkX3D.h:252