VTK  9.0.1
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 "vtkGraphAlgorithm.h"
47 #include "vtkInfovisCoreModule.h" // For export macro
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 
68 
69 private:
70  vtkCollapseGraph(const vtkCollapseGraph&) = delete;
71  void operator=(const vtkCollapseGraph&) = delete;
72 };
73 
74 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkCollapseGraph
"Collapses" vertices onto their neighbors.
Definition: vtkCollapseGraph.h:49
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()