VTK  9.3.0
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:
28  vtkTypeMacro(vtkNetCDFCFWriter, vtkWriter);
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 
105 protected:
107  ~vtkNetCDFCFWriter() override;
108  void WriteData() 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
abstract class to specify dataset behavior
Definition: vtkDataSet.h:53
list of point or cell ids
Definition: vtkIdList.h:23
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
a simple class to control print indentation
Definition: vtkIndent.h:29
Store vtkAlgorithm input/output information.
Writes netCDF files that follow the CF convention.
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.
static vtkNetCDFCFWriter * New()
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
@ info
Definition: vtkX3D.h:376
@ value
Definition: vtkX3D.h:220
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219