Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250409
vtkGraphWriter.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
16#ifndef vtkGraphWriter_h
17#define vtkGraphWriter_h
18
19#include "vtkDataWriter.h"
20#include "vtkIOLegacyModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkGraph;
24class vtkMolecule;
25
26class VTKIOLEGACY_EXPORT vtkGraphWriter : public vtkDataWriter
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
38 vtkGraph* GetInput(int port);
40
41protected:
42 vtkGraphWriter() = default;
43 ~vtkGraphWriter() override = default;
44
45 void WriteData() override;
46
47 void WriteMoleculeData(ostream* fp, vtkMolecule* m);
48
49 int FillInputPortInformation(int port, vtkInformation* info) override;
50
51private:
52 vtkGraphWriter(const vtkGraphWriter&) = delete;
53 void operator=(const vtkGraphWriter&) = delete;
54};
55
56VTK_ABI_NAMESPACE_END
57#endif
helper class for objects that write VTK data files
write vtkGraph data to a file
void WriteData() override
static vtkGraphWriter * New()
vtkGraph * GetInput()
Get the input to this writer.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
~vtkGraphWriter() override=default
vtkGraphWriter()=default
void WriteMoleculeData(ostream *fp, vtkMolecule *m)
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.
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.
class describing a molecule
Definition vtkMolecule.h:84