VTK  9.3.20240424
vtkExpandSelectedGraph.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
21#ifndef vtkExpandSelectedGraph_h
22#define vtkExpandSelectedGraph_h
23
24#include "vtkInfovisCoreModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkGraph;
29class vtkIdTypeArray;
30
31class VTKINFOVISCORE_EXPORT vtkExpandSelectedGraph : public vtkSelectionAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
42
46 int FillInputPortInformation(int port, vtkInformation* info) override;
47
49
53 vtkSetMacro(BFSDistance, int);
54 vtkGetMacro(BFSDistance, int);
56
58
64 vtkSetMacro(IncludeShortestPaths, bool);
65 vtkGetMacro(IncludeShortestPaths, bool);
66 vtkBooleanMacro(IncludeShortestPaths, bool);
68
70
73 vtkSetStringMacro(Domain);
74 vtkGetStringMacro(Domain);
76
78
82 vtkSetMacro(UseDomain, bool);
83 vtkGetMacro(UseDomain, bool);
84 vtkBooleanMacro(UseDomain, bool);
86
87protected:
90
92
94
97 char* Domain;
99
100private:
102 void operator=(const vtkExpandSelectedGraph&) = delete;
103
104 void BFSExpandSelection(vtkIdTypeArray* selection, vtkGraph* graph);
105};
106
107VTK_ABI_NAMESPACE_END
108#endif
Proxy object to connect input/output ports.
expands a selection set of a vtkGraph
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkExpandSelectedGraph() override
static vtkExpandSelectedGraph * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void Expand(vtkIdTypeArray *, vtkGraph *)
void SetGraphConnection(vtkAlgorithmOutput *in)
A convenience method for setting the second input (i.e.
int FillInputPortInformation(int port, vtkInformation *info) override
Specify the first vtkSelection input and the second vtkGraph input.
Base class for graph data types.
Definition vtkGraph.h:340
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.