VTK  9.2.6
vtkGraphWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkGraphWriter_h
29 #define vtkGraphWriter_h
30 
31 #include "vtkDataWriter.h"
32 #include "vtkIOLegacyModule.h" // For export macro
33 
34 class vtkGraph;
35 class vtkMolecule;
36 
37 class VTKIOLEGACY_EXPORT vtkGraphWriter : public vtkDataWriter
38 {
39 public:
40  static vtkGraphWriter* New();
41  vtkTypeMacro(vtkGraphWriter, vtkDataWriter);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkGraph* GetInput();
49  vtkGraph* GetInput(int port);
51 
52 protected:
53  vtkGraphWriter() = default;
54  ~vtkGraphWriter() override = default;
55 
56  void WriteData() override;
57 
58  void WriteMoleculeData(ostream* fp, vtkMolecule* m);
59 
61 
62 private:
63  vtkGraphWriter(const vtkGraphWriter&) = delete;
64  void operator=(const vtkGraphWriter&) = delete;
65 };
66 
67 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:94
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:47
Base class for graph data types.
Definition: vtkGraph.h:295
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
write vtkGraph data to a 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.