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 =========================================================================*/
33 #ifndef vtkNetCDFPOPReader_h
34 #define vtkNetCDFPOPReader_h
35 
36 #include "vtkIONetCDFModule.h" // For export macro
38 
40 class vtkCallbackCommand;
41 class vtkNetCDFPOPReaderInternal;
42 
44 {
45 public:
47  static vtkNetCDFPOPReader *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  vtkSetStringMacro(FileName);
53  vtkGetStringMacro(FileName);
55 
57 
58  vtkSetVector3Macro(Stride, int);
59  vtkGetVector3Macro(Stride, int);
61 
63 
64  virtual int GetNumberOfVariableArrays();
65  virtual const char *GetVariableArrayName(int idx);
66  virtual int GetVariableArrayStatus(const char *name);
67  virtual void SetVariableArrayStatus(const char *name, int status);
69 
70 protected:
73 
76  virtual int RequestInformation(vtkInformation* request,
77  vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector);
79 
80  static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid,
81  void *clientdata, void *calldata);
82 
83  static void EventCallback(vtkObject* caller, unsigned long eid,
84  void* clientdata, void* calldata);
85 
87 
88  char *FileName;
89 
91  int NCDFFD;
92 
95 
96  vtkSetStringMacro(OpenedFileName);
97 
98  int Stride[3];
99 
100 private:
101  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&); // Not implemented.
102  void operator=(const vtkNetCDFPOPReader&); // Not implemented.
103 
104  vtkNetCDFPOPReaderInternal* Internals;
105 };
106 #endif
Superclass for algorithms that produce only rectilinear grid as output.
abstract base class for most VTK objects
Definition: vtkObject.h:61
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)
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store on/off settings for data arrays for a vtkSource.
vtkCallbackCommand * SelectionObserver
Store zero or more vtkInformation instances.
#define VTKIONETCDF_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)