VTK
vtkCollapseGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCollapseGraph.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 
43 #ifndef vtkCollapseGraph_h
44 #define vtkCollapseGraph_h
45 
46 #include "vtkInfovisCoreModule.h" // For export macro
47 #include "vtkGraphAlgorithm.h"
48 
49 class VTKINFOVISCORE_EXPORT vtkCollapseGraph : public vtkGraphAlgorithm
50 {
51 public:
52  static vtkCollapseGraph* New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57  void SetGraphConnection(vtkAlgorithmOutput*);
59  void SetSelectionConnection(vtkAlgorithmOutput*);
60 
61 protected:
63  ~vtkCollapseGraph() override;
64 
66 
67  int RequestData(
70  vtkInformationVector*) override;
71 
72 private:
73  vtkCollapseGraph(const vtkCollapseGraph&) = delete;
74  void operator=(const vtkCollapseGraph&) = delete;
75 };
76 
77 #endif
78 
static vtkGraphAlgorithm * New()
"Collapses" vertices onto their neighbors.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only graph as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.