VTK
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  vtkSetStringMacro(FileName);
56  vtkGetStringMacro(FileName);
58 
60 
63  vtkSetVector3Macro(Stride, int);
64  vtkGetVector3Macro(Stride, int);
66 
68 
71  virtual int GetNumberOfVariableArrays();
72  virtual const char *GetVariableArrayName(int idx);
73  virtual int GetVariableArrayStatus(const char *name);
74  virtual void SetVariableArrayStatus(const char *name, int status);
76 
77 protected:
79  ~vtkNetCDFPOPReader() override;
80 
82  vtkInformationVector*) override;
84  vtkInformationVector** inputVector,
85  vtkInformationVector* outputVector) override;
86 
87  static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid,
88  void *clientdata, void *calldata);
89 
90  static void EventCallback(vtkObject* caller, unsigned long eid,
91  void* clientdata, void* calldata);
92 
94 
95  char *FileName;
96 
100  int NCDFFD;
101 
106 
107  vtkSetStringMacro(OpenedFileName);
108 
109  int Stride[3];
110 
111 private:
112  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) = delete;
113  void operator=(const vtkNetCDFPOPReader&) = delete;
114 
115  vtkNetCDFPOPReaderInternal* Internals;
116 };
117 #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:41
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkNetCDFPOPReader::OpenedFileName
char * OpenedFileName
The file name of the opened file.
Definition: vtkNetCDFPOPReader.h:105
vtkNetCDFPOPReader
read NetCDF files .Author Joshua Wu 09.15.2009
Definition: vtkNetCDFPOPReader.h:44
vtkNetCDFPOPReader::SelectionObserver
vtkCallbackCommand * SelectionObserver
Definition: vtkNetCDFPOPReader.h:93
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:37
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:39
vtkX3D::name
Definition: vtkX3D.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkNetCDFPOPReader::FileName
char * FileName
Definition: vtkNetCDFPOPReader.h:95
vtkRectilinearGridAlgorithm::New
static vtkRectilinearGridAlgorithm * New()
vtkRectilinearGridAlgorithm.h
vtkCallbackCommand
supports function callbacks
Definition: vtkCallbackCommand.h:50
vtkNetCDFPOPReader::NCDFFD
int NCDFFD
The NetCDF file descriptor.
Definition: vtkNetCDFPOPReader.h:100
vtkRectilinearGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.