VTK  9.3.20240329
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
25 #include "vtkSelectionAlgorithm.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkGraph;
29 class vtkIdTypeArray;
30 
31 class VTKINFOVISCORE_EXPORT vtkExpandSelectedGraph : public vtkSelectionAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
42 
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 
87 protected:
90 
92 
94 
97  char* Domain;
98  bool UseDomain;
99 
100 private:
102  void operator=(const vtkExpandSelectedGraph&) = delete;
103 
104  void BFSExpandSelection(vtkIdTypeArray* selection, vtkGraph* graph);
105 };
106 
107 VTK_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
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkExpandSelectedGraph * New()
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447