VTK
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 
40 #ifndef vtkExpandSelectedGraph_h
41 #define vtkExpandSelectedGraph_h
42 
43 #include "vtkInfovisCoreModule.h" // For export macro
44 #include "vtkSelectionAlgorithm.h"
45 
46 class vtkGraph;
47 class vtkIdTypeArray;
48 
49 class VTKINFOVISCORE_EXPORT vtkExpandSelectedGraph : public vtkSelectionAlgorithm
50 {
51 public:
52  static vtkExpandSelectedGraph* New();
54  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55 
59  void SetGraphConnection(vtkAlgorithmOutput* in);
60 
64  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
65 
67 
71  vtkSetMacro(BFSDistance, int);
72  vtkGetMacro(BFSDistance, int);
74 
76 
82  vtkSetMacro(IncludeShortestPaths, bool);
83  vtkGetMacro(IncludeShortestPaths, bool);
84  vtkBooleanMacro(IncludeShortestPaths, bool);
86 
88 
91  vtkSetStringMacro(Domain);
92  vtkGetStringMacro(Domain);
94 
96 
100  vtkSetMacro(UseDomain, bool);
101  vtkGetMacro(UseDomain, bool);
102  vtkBooleanMacro(UseDomain, bool);
104 
105 protected:
107  ~vtkExpandSelectedGraph() VTK_OVERRIDE;
108 
109  int RequestData(
112  vtkInformationVector*) VTK_OVERRIDE;
113 
114  void Expand(vtkIdTypeArray*,vtkGraph*);
115 
116  int BFSDistance;
117  bool IncludeShortestPaths;
118  char* Domain;
119  bool UseDomain;
120 
121 private:
122  vtkExpandSelectedGraph(const vtkExpandSelectedGraph&) VTK_DELETE_FUNCTION;
123  void operator=(const vtkExpandSelectedGraph&) VTK_DELETE_FUNCTION;
124 
125  void BFSExpandSelection(vtkIdTypeArray *selection,
126  vtkGraph *graph);
127 };
128 
129 #endif
130 
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store vtkAlgorithm input/output information.
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.
dynamic, self-adjusting array of vtkIdType
Proxy object to connect input/output ports.
Base class for graph data types.
Definition: vtkGraph.h:287
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass for algorithms that produce only Selection as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.