VTK  9.3.1
vtkDIMACSGraphWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
32 #ifndef vtkDIMACSGraphWriter_h
33 #define vtkDIMACSGraphWriter_h
34 
35 #include "vtkDataWriter.h"
36 #include "vtkIOInfovisModule.h" // For export macro
37 
38 VTK_ABI_NAMESPACE_BEGIN
39 class vtkGraph;
40 
41 class VTKIOINFOVIS_EXPORT vtkDIMACSGraphWriter : public vtkDataWriter
42 {
43 public:
44  static vtkDIMACSGraphWriter* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkGraph* GetInput();
53  vtkGraph* GetInput(int port);
55 
56 protected:
57  vtkDIMACSGraphWriter() = default;
58  ~vtkDIMACSGraphWriter() override = default;
59 
60  void WriteData() override;
61 
63 
64 private:
66  void operator=(const vtkDIMACSGraphWriter&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:36
Base class for graph data types.
Definition: vtkGraph.h:280
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.
write vtkGraph data to a DIMACS formatted file
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.