VTK  9.0.1
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 =========================================================================*/
31 #ifndef vtkNetCDFPOPReader_h
32 #define vtkNetCDFPOPReader_h
33 
34 #include "vtkIONetCDFModule.h" // For export macro
36 
38 class vtkCallbackCommand;
39 class vtkNetCDFPOPReaderInternal;
40 
41 class VTKIONETCDF_EXPORT vtkNetCDFPOPReader : public vtkRectilinearGridAlgorithm
42 {
43 public:
45  static vtkNetCDFPOPReader* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetStringMacro(FileName);
53  vtkGetStringMacro(FileName);
55 
57 
60  vtkSetVector3Macro(Stride, int);
61  vtkGetVector3Macro(Stride, int);
63 
65 
68  virtual int GetNumberOfVariableArrays();
69  virtual const char* GetVariableArrayName(int idx);
70  virtual int GetVariableArrayStatus(const char* name);
71  virtual void SetVariableArrayStatus(const char* name, int status);
73 
74 protected:
76  ~vtkNetCDFPOPReader() override;
77 
79  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
80  vtkInformationVector* outputVector) override;
81 
82  static void SelectionModifiedCallback(
83  vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
84 
85  static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
86 
88 
89  char* FileName;
90 
94  int NCDFFD;
95 
100 
101  vtkSetStringMacro(OpenedFileName);
102 
103  int Stride[3];
104 
105 private:
106  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) = delete;
107  void operator=(const vtkNetCDFPOPReader&) = delete;
108 
109  vtkNetCDFPOPReaderInternal* Internals;
110 };
111 #endif
vtkRectilinearGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkRectilinearGridAlgorithm
Superclass for algorithms that produce only rectilinear grid as output.
Definition: vtkRectilinearGridAlgorithm.h:43
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkNetCDFPOPReader::OpenedFileName
char * OpenedFileName
The file name of the opened file.
Definition: vtkNetCDFPOPReader.h:99
vtkNetCDFPOPReader
read NetCDF files .Author Joshua Wu 09.15.2009
Definition: vtkNetCDFPOPReader.h:41
vtkNetCDFPOPReader::SelectionObserver
vtkCallbackCommand * SelectionObserver
Definition: vtkNetCDFPOPReader.h:87
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:34
vtkRectilinearGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkNetCDFPOPReader::FileName
char * FileName
Definition: vtkNetCDFPOPReader.h:89
vtkRectilinearGridAlgorithm::New
static vtkRectilinearGridAlgorithm * New()
vtkRectilinearGridAlgorithm.h
vtkCallbackCommand
supports function callbacks
Definition: vtkCallbackCommand.h:44
vtkNetCDFPOPReader::NCDFFD
int NCDFFD
The NetCDF file descriptor.
Definition: vtkNetCDFPOPReader.h:94
vtkRectilinearGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.