VTK  9.3.20240419
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:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
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
write vtkGraph data to a DIMACS formatted file
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteData() override
~vtkDIMACSGraphWriter() override=default
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGraph * GetInput(int port)
Get the input to this writer.
vtkGraph * GetInput()
Get the input to this writer.
static vtkDIMACSGraphWriter * New()
vtkDIMACSGraphWriter()=default
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:37
Base class for graph data types.
Definition: vtkGraph.h:340
a simple class to control print indentation
Definition: vtkIndent.h:108
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447