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:
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 
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
vtkNetCDFPOPReader::GetVariableArrayName
virtual const char * GetVariableArrayName(int idx)
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
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
vtkNetCDFPOPReader::GetNumberOfVariableArrays
virtual int GetNumberOfVariableArrays()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkNetCDFPOPReader::GetVariableArrayStatus
virtual int GetVariableArrayStatus(const char *name)
vtkNetCDFPOPReader::OpenedFileName
char * OpenedFileName
Definition: vtkNetCDFPOPReader.h:94
vtkNetCDFPOPReader
read NetCDF files .Author Joshua Wu 09.15.2009
Definition: vtkNetCDFPOPReader.h:44
vtkNetCDFPOPReader::SelectionObserver
vtkCallbackCommand * SelectionObserver
Definition: vtkNetCDFPOPReader.h:86
vtkNetCDFPOPReader::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:34
vtkNetCDFPOPReader::New
static vtkNetCDFPOPReader * New()
vtkNetCDFPOPReader::SetVariableArrayStatus
virtual void SetVariableArrayStatus(const char *name, int status)
vtkNetCDFPOPReader::~vtkNetCDFPOPReader
~vtkNetCDFPOPReader()
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkNetCDFPOPReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkNetCDFPOPReader::EventCallback
static void EventCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkNetCDFPOPReader::FileName
char * FileName
Definition: vtkNetCDFPOPReader.h:88
vtkRectilinearGridAlgorithm.h
VTKIONETCDF_EXPORT
#define VTKIONETCDF_EXPORT
Definition: vtkIONetCDFModule.h:15
vtkCallbackCommand
supports function callbacks
Definition: vtkCallbackCommand.h:50
vtkNetCDFPOPReader::NCDFFD
int NCDFFD
Definition: vtkNetCDFPOPReader.h:91
vtkNetCDFPOPReader::SelectionModifiedCallback
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
vtkIONetCDFModule.h
vtkNetCDFPOPReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkNetCDFPOPReader::vtkNetCDFPOPReader
vtkNetCDFPOPReader()