VTK  9.1.0
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
39class vtkNetCDFPOPReaderInternal;
40
41class VTKIONETCDF_EXPORT vtkNetCDFPOPReader : public vtkRectilinearGridAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
55
57
60 vtkSetVector3Macro(Stride, int);
61 vtkGetVector3Macro(Stride, int);
63
65
69 virtual const char* GetVariableArrayName(int index);
70 virtual int GetVariableArrayStatus(const char* name);
71 virtual void SetVariableArrayStatus(const char* name, int status);
73
74protected:
77
80 vtkInformationVector* outputVector) override;
81
83 vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
84
85 static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
86
88
89 char* FileName;
90
94 int NCDFFD;
95
100
101 vtkSetFilePathMacro(OpenedFileName);
102
103 int Stride[3];
104
105private:
106 vtkNetCDFPOPReader(const vtkNetCDFPOPReader&) = delete;
107 void operator=(const vtkNetCDFPOPReader&) = delete;
108
109 vtkNetCDFPOPReaderInternal* Internals;
110};
111#endif
supports function callbacks
Store on/off settings for data arrays for a vtkSource.
a simple class to control print indentation
Definition: vtkIndent.h:113
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)
Variable array selection.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkSetFilePathMacro(FileName)
The file to open.
virtual void SetVariableArrayStatus(const char *name, int status)
Variable array selection.
char * OpenedFileName
The file name of the opened file.
virtual const char * GetVariableArrayName(int index)
Variable array selection.
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
virtual int GetNumberOfVariableArrays()
Variable array selection.
vtkSetFilePathMacro(OpenedFileName)
static vtkNetCDFPOPReader * New()
vtkGetFilePathMacro(FileName)
The file to open.
~vtkNetCDFPOPReader() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int NCDFFD
The NetCDF file descriptor.
abstract base class for most VTK objects
Definition: vtkObject.h:82
Superclass for algorithms that produce only rectilinear grid as output.