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 =========================================================================*/
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) VTK_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() VTK_OVERRIDE;
77 
78  int RequestData(vtkInformation*,vtkInformationVector**,
79  vtkInformationVector*) VTK_OVERRIDE;
80  int RequestInformation(vtkInformation* request,
81  vtkInformationVector** inputVector,
82  vtkInformationVector* outputVector) VTK_OVERRIDE;
83 
84  static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid,
85  void *clientdata, void *calldata);
86 
87  static void EventCallback(vtkObject* caller, unsigned long eid,
88  void* clientdata, void* calldata);
89 
90  vtkCallbackCommand* SelectionObserver;
91 
92  char *FileName;
93 
97  int NCDFFD;
98 
102  char* OpenedFileName;
103 
104  vtkSetStringMacro(OpenedFileName);
105 
106  int Stride[3];
107 
108 private:
109  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) VTK_DELETE_FUNCTION;
110  void operator=(const vtkNetCDFPOPReader&) VTK_DELETE_FUNCTION;
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:53
Store vtkAlgorithm input/output information.
read NetCDF files .Author Joshua Wu 09.15.2009
static vtkRectilinearGridAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:33
Store on/off settings for data arrays for a vtkSource.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Store zero or more vtkInformation instances.