VTK  9.3.1
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 
10 VTK_ABI_NAMESPACE_BEGIN
11 class vtkIdList;
12 class vtkDataSet;
13 class vtkImageData;
14 
24 class VTKIONETCDF_EXPORT vtkNetCDFCFWriter : public vtkWriter
25 {
26 public:
27  static vtkNetCDFCFWriter* New();
28  vtkTypeMacro(vtkNetCDFCFWriter, vtkWriter);
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkSetFilePathMacro(FileName);
36  vtkGetFilePathMacro(FileName);
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);
102  void ClearGridMappingAttributes();
104 
105 protected:
107  ~vtkNetCDFCFWriter() override;
108  void WriteData() override;
109  int FillInputPortInformation(int port, vtkInformation* info) override;
110 
111  char* FileName;
116  class Implementation;
117  Implementation* Impl;
118 
119 private:
120  vtkNetCDFCFWriter(const vtkNetCDFCFWriter&) = delete;
121  void operator=(const vtkNetCDFCFWriter&) = delete;
122 };
123 
124 VTK_ABI_NAMESPACE_END
125 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
abstract class to write data to file(s)
Definition: vtkWriter.h:34
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
list of point or cell ids
Definition: vtkIdList.h:22
Writes netCDF files that follow the CF convention.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Implementation * Impl
static vtkAlgorithm * New()
virtual void WriteData()=0