VTK  9.5.20251211
vtkCollapseVerticesByArray.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20
21#ifndef vtkCollapseVerticesByArray_h
22#define vtkCollapseVerticesByArray_h
23
24#include "vtkGraphAlgorithm.h"
25#include "vtkInfovisCoreModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkCollapseVerticesByArrayInternal;
29
30class VTKINFOVISCORE_EXPORT vtkCollapseVerticesByArray : public vtkGraphAlgorithm
31{
32public:
35
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
42 vtkGetMacro(AllowSelfLoops, bool);
43 vtkSetMacro(AllowSelfLoops, bool);
44 vtkBooleanMacro(AllowSelfLoops, bool);
46
51 void AddAggregateEdgeArray(const char* arrName);
52
57
59
62 vtkGetStringMacro(VertexArray);
63 vtkSetStringMacro(VertexArray);
65
67
70 vtkGetMacro(CountEdgesCollapsed, bool);
71 vtkSetMacro(CountEdgesCollapsed, bool);
72 vtkBooleanMacro(CountEdgesCollapsed, bool);
74
76
80 vtkGetStringMacro(EdgesCollapsedArray);
81 vtkSetStringMacro(EdgesCollapsedArray);
83
85
88 vtkGetMacro(CountVerticesCollapsed, bool);
89 vtkSetMacro(CountVerticesCollapsed, bool);
90 vtkBooleanMacro(CountVerticesCollapsed, bool);
92
94
98 vtkGetStringMacro(VerticesCollapsedArray);
99 vtkSetStringMacro(VerticesCollapsedArray);
101
102protected:
105
110 vtkInformationVector* outputVector) override;
111
115 int FillOutputPortInformation(int port, vtkInformation* info) override;
116
121
126
127private:
130 void operator=(const vtkCollapseVerticesByArray&) = delete;
132
133protected:
136
139
142
143 vtkCollapseVerticesByArrayInternal* Internal;
144};
145
146VTK_ABI_NAMESPACE_END
147#endif // vtkCollapseVerticesByArray_h__
int FillOutputPortInformation(int port, vtkInformation *info) override
Pipeline function.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Pipeline function.
void FindEdge(vtkGraph *outGraph, vtkIdType source, vtkIdType target, vtkIdType &edgeId)
Helper function.
static vtkCollapseVerticesByArray * New()
vtkCollapseVerticesByArrayInternal * Internal
void AddAggregateEdgeArray(const char *arrName)
Add arrays on which aggregation of data is allowed.
vtkGraph * Create(vtkGraph *inGraph)
Create output graph given all the parameters.
~vtkCollapseVerticesByArray() override
void ClearAggregateEdgeArray()
Clear the list of arrays on which aggregation was set to allow.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Base class for graph data types.
Definition vtkGraph.h:342
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition vtkType.h:367