VTK
vtkDIMACSGraphWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDIMACSGraphWriter.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 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
50 #ifndef vtkDIMACSGraphWriter_h
51 #define vtkDIMACSGraphWriter_h
52 
53 #include "vtkIOInfovisModule.h" // For export macro
54 #include "vtkDataWriter.h"
55 
56 class vtkGraph;
57 
58 class VTKIOINFOVIS_EXPORT vtkDIMACSGraphWriter : public vtkDataWriter
59 {
60 public:
61  static vtkDIMACSGraphWriter *New();
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
66 
69  vtkGraph* GetInput();
70  vtkGraph* GetInput(int port);
72 
73 protected:
75  ~vtkDIMACSGraphWriter() override {}
76 
77  void WriteData() override;
78 
80 
81 private:
83  void operator=(const vtkDIMACSGraphWriter&) = delete;
84 };
85 
86 #endif
void WriteData() override
Store vtkAlgorithm input/output information.
helper class for objects that write vtk data files
Definition: vtkDataWriter.h:45
Base class for graph data types.
Definition: vtkGraph.h:287
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 DIMACS formatted file
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataWriter * New()
Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.