VTK  9.4.20250509
vtkNetCDFCFWriter.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
3
4#ifndef vtkNetCDFCFWriter_h
5#define vtkNetCDFCFWriter_h
6
7#include "vtkIONetCDFModule.h" // For export macro
8#include "vtkWriter.h"
9
10VTK_ABI_NAMESPACE_BEGIN
11class vtkIdList;
12class vtkDataSet;
13class vtkImageData;
14
24class VTKIONETCDF_EXPORT vtkNetCDFCFWriter : public vtkWriter
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
38
40
46 vtkSetStringMacro(CellArrayNamePostfix);
47 vtkGetStringMacro(CellArrayNamePostfix);
49
51
57 vtkSetMacro(FillValue, int);
58 vtkGetMacro(FillValue, int);
60
62
67 vtkSetMacro(AttributeType, int);
68 vtkGetMacro(AttributeType, int);
70
72
76 vtkSetMacro(FillBlankedAttributes, bool);
77 vtkGetMacro(FillBlankedAttributes, bool);
78 vtkBooleanMacro(FillBlankedAttributes, bool);
80
82
100 void AddGridMappingAttribute(const char* name, const char* value);
101 void AddGridMappingAttribute(const char* name, double value);
104
105protected:
108 void WriteData() override;
109 int FillInputPortInformation(int port, vtkInformation* info) override;
110
111 char* FileName;
116 class Implementation;
117 Implementation* Impl;
118
119private:
120 vtkNetCDFCFWriter(const vtkNetCDFCFWriter&) = delete;
121 void operator=(const vtkNetCDFCFWriter&) = delete;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
list of point or cell ids
Definition vtkIdList.h:133
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
Writes netCDF files that follow the CF convention.
static vtkNetCDFCFWriter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Get/Set the file name of the file.
Implementation * Impl
void AddGridMappingAttribute(const char *name, const char *value)
Add/clear attributes that define the grid mapping (or the coordinate reference system (CRS))
vtkGetFilePathMacro(FileName)
Get/Set the file name of the file.
void AddGridMappingAttribute(const char *name, double value)
Add/clear attributes that define the grid mapping (or the coordinate reference system (CRS))
~vtkNetCDFCFWriter() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void ClearGridMappingAttributes()
Add/clear attributes that define the grid mapping (or the coordinate reference system (CRS))
void WriteData() override
abstract class to write data to file(s)
Definition vtkWriter.h:35