VTK  9.4.20250110
vtkNetCDFPOPReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22#ifndef vtkNetCDFPOPReader_h
23#define vtkNetCDFPOPReader_h
24
25#include "vtkIONetCDFModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
31class vtkNetCDFPOPReaderInternal;
32
33class VTKIONETCDF_EXPORT vtkNetCDFPOPReader : public vtkRectilinearGridAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
47
49
52 vtkSetVector3Macro(Stride, int);
53 vtkGetVector3Macro(Stride, int);
55
57
61 virtual const char* GetVariableArrayName(int index);
62 virtual int GetVariableArrayStatus(const char* name);
63 virtual void SetVariableArrayStatus(const char* name, int status);
65
66protected:
69
72 vtkInformationVector* outputVector) override;
73
75 vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
76
77 static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
78
80
81 char* FileName;
82
86 int NCDFFD;
87
92
93 vtkSetFilePathMacro(OpenedFileName);
94
95 int Stride[3];
96
97private:
99 void operator=(const vtkNetCDFPOPReader&) = delete;
100
101 vtkNetCDFPOPReaderInternal* Internals;
102};
103VTK_ABI_NAMESPACE_END
104#endif
supports function callbacks
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition vtkIndent.h:108
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:162
Superclass for algorithms that produce only rectilinear grid as output.