VTK  9.0.2
vtkExpandSelectedGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExpandSelectedGraph.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
37 #ifndef vtkExpandSelectedGraph_h
38 #define vtkExpandSelectedGraph_h
39 
40 #include "vtkInfovisCoreModule.h" // For export macro
41 #include "vtkSelectionAlgorithm.h"
42 
43 class vtkGraph;
44 class vtkIdTypeArray;
45 
46 class VTKINFOVISCORE_EXPORT vtkExpandSelectedGraph : public vtkSelectionAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
57 
62 
64 
68  vtkSetMacro(BFSDistance, int);
69  vtkGetMacro(BFSDistance, int);
71 
73 
79  vtkSetMacro(IncludeShortestPaths, bool);
80  vtkGetMacro(IncludeShortestPaths, bool);
81  vtkBooleanMacro(IncludeShortestPaths, bool);
83 
85 
88  vtkSetStringMacro(Domain);
89  vtkGetStringMacro(Domain);
91 
93 
97  vtkSetMacro(UseDomain, bool);
98  vtkGetMacro(UseDomain, bool);
99  vtkBooleanMacro(UseDomain, bool);
101 
102 protected:
105 
107 
109 
112  char* Domain;
113  bool UseDomain;
114 
115 private:
117  void operator=(const vtkExpandSelectedGraph&) = delete;
118 
119  void BFSExpandSelection(vtkIdTypeArray* selection, vtkGraph* graph);
120 };
121 
122 #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:290
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453