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
22class vtkIdList;
23class vtkDataSet;
24class vtkImageData;
25
35class VTKIONETCDF_EXPORT vtkNetCDFCFWriter : public vtkWriter
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
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);
115
116protected:
119 void WriteData() override;
120 int FillInputPortInformation(int port, vtkInformation* info) override;
121
122 char* FileName;
127 class Implementation;
128 Implementation* Impl;
129
130private:
131 vtkNetCDFCFWriter(const vtkNetCDFCFWriter&) = delete;
132 void operator=(const vtkNetCDFCFWriter&) = delete;
133};
134
135#endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
list of point or cell ids
Definition: vtkIdList.h:34
topologically and geometrically regular array of data
Definition: vtkImageData.h:54
a simple class to control print indentation
Definition: vtkIndent.h:40
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:46