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 
37 
39 class vtkCallbackCommand;
40 class vtkNetCDFPOPReaderInternal;
41 
43 {
44 public:
46  static vtkNetCDFPOPReader *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkSetStringMacro(FileName);
52  vtkGetStringMacro(FileName);
54 
56 
57  vtkSetVector3Macro(Stride, int);
58  vtkGetVector3Macro(Stride, int);
60 
62 
63  virtual int GetNumberOfVariableArrays();
64  virtual const char *GetVariableArrayName(int idx);
65  virtual int GetVariableArrayStatus(const char *name);
66  virtual void SetVariableArrayStatus(const char *name, int status);
68 
69 protected:
72 
75  virtual int RequestInformation(vtkInformation* request,
76  vtkInformationVector** inputVector,
77  vtkInformationVector* outputVector);
78 
79  static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid,
80  void *clientdata, void *calldata);
81 
82  static void EventCallback(vtkObject* caller, unsigned long eid,
83  void* clientdata, void* calldata);
84 
86 
87  char *FileName;
88 
89  int NCDFFD; //netcdf file descriptor
90 
91  int Stride[3];
92 
93 private:
94  vtkNetCDFPOPReader(const vtkNetCDFPOPReader&); // Not implemented.
95  void operator=(const vtkNetCDFPOPReader&); // Not implemented.
96 
97  vtkNetCDFPOPReaderInternal* Internals;
98 };
99 #endif
Superclass for algorithms that produce only rectilinear grid as output.
abstract base class for most VTK objects
Definition: vtkObject.h:60
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:37
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 VTK_IO_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)