VTK  9.2.6
vtkCollapseVerticesByArray.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCollapseVerticesByArray.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=========================================================================*/
29
30#ifndef vtkCollapseVerticesByArray_h
31#define vtkCollapseVerticesByArray_h
32
33#include "vtkGraphAlgorithm.h"
34#include "vtkInfovisCoreModule.h" // For export macro
35
36class vtkCollapseVerticesByArrayInternal;
37
38class VTKINFOVISCORE_EXPORT vtkCollapseVerticesByArray : public vtkGraphAlgorithm
39{
40public:
43
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
50 vtkGetMacro(AllowSelfLoops, bool);
51 vtkSetMacro(AllowSelfLoops, bool);
52 vtkBooleanMacro(AllowSelfLoops, bool);
54
59 void AddAggregateEdgeArray(const char* arrName);
60
65
67
70 vtkGetStringMacro(VertexArray);
71 vtkSetStringMacro(VertexArray);
73
75
78 vtkGetMacro(CountEdgesCollapsed, bool);
79 vtkSetMacro(CountEdgesCollapsed, bool);
80 vtkBooleanMacro(CountEdgesCollapsed, bool);
82
84
88 vtkGetStringMacro(EdgesCollapsedArray);
89 vtkSetStringMacro(EdgesCollapsedArray);
91
93
96 vtkGetMacro(CountVerticesCollapsed, bool);
97 vtkSetMacro(CountVerticesCollapsed, bool);
98 vtkBooleanMacro(CountVerticesCollapsed, bool);
100
102
106 vtkGetStringMacro(VerticesCollapsedArray);
107 vtkSetStringMacro(VerticesCollapsedArray);
109
110protected:
113
118 vtkInformationVector* outputVector) override;
119
123 int FillOutputPortInformation(int port, vtkInformation* info) override;
124
129
134
135private:
138 void operator=(const vtkCollapseVerticesByArray&) = delete;
140
141protected:
144
147
150
151 vtkCollapseVerticesByArrayInternal* Internal;
152};
153
154#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:290
a simple class to control print indentation
Definition vtkIndent.h:34
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:332