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:
39  vtkTypeMacro(vtkNetCDFCFWriter, vtkWriter);
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 
116 protected:
118  ~vtkNetCDFCFWriter() override;
119  void WriteData() 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
abstract class to specify dataset behavior
Definition: vtkDataSet.h:172
list of point or cell ids
Definition: vtkIdList.h:143
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
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:46
@ info
Definition: vtkX3D.h:382
@ value
Definition: vtkX3D.h:226
@ port
Definition: vtkX3D.h:453
@ name
Definition: vtkX3D.h:225