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);
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:
80 
83  virtual int RequestInformation(vtkInformation* request,
84  vtkInformationVector** inputVector,
85  vtkInformationVector* outputVector);
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&) VTK_DELETE_FUNCTION;
113  void operator=(const vtkNetCDFPOPReader&) VTK_DELETE_FUNCTION;
114 
115  vtkNetCDFPOPReaderInternal* Internals;
116 };
117 #endif
Superclass for algorithms that produce only rectilinear grid as output.
abstract base class for most VTK objects
Definition: vtkObject.h:59
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 for a vtkSource.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkCallbackCommand * SelectionObserver
Store zero or more vtkInformation instances.