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
42class vtkNetCDFPOPReaderInternal;
43
44class VTKIONETCDF_EXPORT vtkNetCDFPOPReader : public vtkRectilinearGridAlgorithm
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent);
50
52
55 vtkSetStringMacro(FileName);
58
60
63 vtkSetVector3Macro(Stride, int);
64 vtkGetVector3Macro(Stride, int);
66
68
72 virtual const char *GetVariableArrayName(int idx);
73 virtual int GetVariableArrayStatus(const char *name);
74 virtual void SetVariableArrayStatus(const char *name, int status);
76
77protected:
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
101
106
107 vtkSetStringMacro(OpenedFileName);
108
109 int Stride[3];
110
111private:
112 vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) VTK_DELETE_FUNCTION;
113 void operator=(const vtkNetCDFPOPReader&) VTK_DELETE_FUNCTION;
114
115 vtkNetCDFPOPReaderInternal* Internals;
116};
117#endif
supports function callbacks
Store on/off settings for data arrays for a vtkSource.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read NetCDF files .Author Joshua Wu 09.15.2009
vtkCallbackCommand * SelectionObserver
static void EventCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
virtual int GetVariableArrayStatus(const char *name)
virtual void SetVariableArrayStatus(const char *name, int status)
char * OpenedFileName
The file name of the opened file.
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int GetNumberOfVariableArrays()
Variable array selection.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkNetCDFPOPReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual const char * GetVariableArrayName(int idx)
int NCDFFD
The NetCDF file descriptor.
abstract base class for most VTK objects
Definition: vtkObject.h:60
Superclass for algorithms that produce only rectilinear grid as output.
@ name
Definition: vtkX3D.h:219
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.