VTK  9.2.5
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 =========================================================================*/
97 #ifndef vtkGraphWriter_h
98 #define vtkGraphWriter_h
99 
100 #include "vtkDataWriter.h"
101 #include "vtkIOLegacyModule.h" // For export macro
102 
103 class vtkGraph;
104 class vtkMolecule;
105 
106 class VTKIOLEGACY_EXPORT vtkGraphWriter : public vtkDataWriter
107 {
108 public:
109  static vtkGraphWriter* New();
111  void PrintSelf(ostream& os, vtkIndent indent) override;
112 
114 
120 
121 protected:
122  vtkGraphWriter() = default;
123  ~vtkGraphWriter() override = default;
124 
125  void WriteData() override;
126 
127  void WriteMoleculeData(ostream* fp, vtkMolecule* m);
128 
130 
131 private:
132  vtkGraphWriter(const vtkGraphWriter&) = delete;
133  void operator=(const vtkGraphWriter&) = delete;
134 };
135 
136 #endif
helper class for objects that write VTK data files
Definition: vtkDataWriter.h:48
write vtkGraph data to a file
void WriteData() override
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)
vtkGraph * GetInput(int port)
Get the input to this writer.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGraph * GetInput()
Get the input to this writer.
static vtkGraphWriter * New()
Base class for graph data types.
Definition: vtkGraph.h:345
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:114
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453