VTK  9.2.6
vtkNetCDFCFWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkNetCDFCFWriter.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 =========================================================================*/
15 
16 #ifndef vtkNetCDFCFWriter_h
17 #define vtkNetCDFCFWriter_h
18 
19 #include "vtkIONetCDFModule.h" // For export macro
20 #include "vtkWriter.h"
21 
22 class vtkIdList;
23 class vtkDataSet;
24 class vtkImageData;
25 
35 class VTKIONETCDF_EXPORT vtkNetCDFCFWriter : public vtkWriter
36 {
37 public:
38  static vtkNetCDFCFWriter* New();
39  vtkTypeMacro(vtkNetCDFCFWriter, vtkWriter);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkSetFilePathMacro(FileName);
47  vtkGetFilePathMacro(FileName);
49 
51 
57  vtkSetStringMacro(CellArrayNamePostfix);
58  vtkGetStringMacro(CellArrayNamePostfix);
60 
62 
68  vtkSetMacro(FillValue, int);
69  vtkGetMacro(FillValue, int);
71 
73 
78  vtkSetMacro(AttributeType, int);
79  vtkGetMacro(AttributeType, int);
81 
83 
87  vtkSetMacro(FillBlankedAttributes, bool);
88  vtkGetMacro(FillBlankedAttributes, bool);
89  vtkBooleanMacro(FillBlankedAttributes, bool);
91 
93 
111  void AddGridMappingAttribute(const char* name, const char* value);
112  void AddGridMappingAttribute(const char* name, double value);
113  void ClearGridMappingAttributes();
115 
116 protected:
118  ~vtkNetCDFCFWriter() override;
119  void WriteData() override;
120  int FillInputPortInformation(int port, vtkInformation* info) override;
121 
122  char* FileName;
127  class Implementation;
128  Implementation* Impl;
129 
130 private:
131  vtkNetCDFCFWriter(const vtkNetCDFCFWriter&) = delete;
132  void operator=(const vtkNetCDFCFWriter&) = delete;
133 };
134 
135 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
abstract class to write data to file(s)
Definition: vtkWriter.h:45
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
list of point or cell ids
Definition: vtkIdList.h:33
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