VTK  9.4.20250127
vtkCollapseGraph.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3// SPDX-License-Identifier: BSD-3-Clause
4
28#ifndef vtkCollapseGraph_h
29#define vtkCollapseGraph_h
30
31#include "vtkGraphAlgorithm.h"
32#include "vtkInfovisCoreModule.h" // For export macro
33
34VTK_ABI_NAMESPACE_BEGIN
35class VTKINFOVISCORE_EXPORT vtkCollapseGraph : public vtkGraphAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
46
47protected:
50
51 int FillInputPortInformation(int port, vtkInformation* info) override;
52
54
55private:
56 vtkCollapseGraph(const vtkCollapseGraph&) = delete;
57 void operator=(const vtkCollapseGraph&) = delete;
58};
59
60VTK_ABI_NAMESPACE_END
61#endif
Proxy object to connect input/output ports.
"Collapses" vertices onto their neighbors.
void SetSelectionConnection(vtkAlgorithmOutput *)
Convenience function provided for setting the selection input.
void SetGraphConnection(vtkAlgorithmOutput *)
Convenience function provided for setting the graph input.
static vtkCollapseGraph * New()
~vtkCollapseGraph() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.