VTK  9.4.20250131
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
38VTK_ABI_NAMESPACE_BEGIN
39class vtkGraph;
40
41class VTKIOINFOVIS_EXPORT vtkDIMACSGraphWriter : public vtkDataWriter
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
53 vtkGraph* GetInput(int port);
55
56protected:
58 ~vtkDIMACSGraphWriter() override = default;
59
60 void WriteData() override;
61
62 int FillInputPortInformation(int port, vtkInformation* info) override;
63
64private:
66 void operator=(const vtkDIMACSGraphWriter&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
write vtkGraph data to a DIMACS formatted file
vtkGraph * GetInput(int port)
Get the input to this writer.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
void WriteData() override
~vtkDIMACSGraphWriter() override=default
vtkGraph * GetInput()
Get the input to this writer.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDIMACSGraphWriter()=default
static vtkDIMACSGraphWriter * New()
helper class for objects that write VTK data files
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.