VTK  9.3.1
vtkStructuredGridWriter.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
17 #ifndef vtkStructuredGridWriter_h
18 #define vtkStructuredGridWriter_h
19 
20 #include "vtkDataWriter.h"
21 #include "vtkIOLegacyModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkStructuredGrid;
25 
26 class VTKIOLEGACY_EXPORT vtkStructuredGridWriter : public vtkDataWriter
27 {
28 public:
29  static vtkStructuredGridWriter* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
40 
42 
49  vtkSetMacro(WriteExtent, bool);
50  vtkGetMacro(WriteExtent, bool);
51  vtkBooleanMacro(WriteExtent, bool);
53 
54 protected:
56  : WriteExtent(false)
57  {
58  }
59  ~vtkStructuredGridWriter() override = default;
60 
61  void WriteData() override;
62 
64 
66 
67 private:
69  void operator=(const vtkStructuredGridWriter&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:36
write vtk structured grid data file
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
topologically regular array of data
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
static vtkDataWriter * New()
Create object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.