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 
39 #ifndef __vtkExpandSelectedGraph_h
40 #define __vtkExpandSelectedGraph_h
41 
42 #include "vtkSelectionAlgorithm.h"
43 
44 class vtkGraph;
45 class vtkIdTypeArray;
46 
48 {
49 public:
50  static vtkExpandSelectedGraph* New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55  void SetGraphConnection(vtkAlgorithmOutput* in);
56 
59 
61 
63  vtkSetMacro(BFSDistance, int);
64  vtkGetMacro(BFSDistance, int);
66 
68 
72  vtkSetMacro(IncludeShortestPaths, bool);
73  vtkGetMacro(IncludeShortestPaths, bool);
74  vtkBooleanMacro(IncludeShortestPaths, bool);
76 
78 
79  vtkSetStringMacro(Domain);
80  vtkGetStringMacro(Domain);
82 
84 
86  vtkSetMacro(UseDomain, bool);
87  vtkGetMacro(UseDomain, bool);
88  vtkBooleanMacro(UseDomain, bool);
90 
91 protected:
94 
95  int RequestData(
99 
100  void Expand(vtkIdTypeArray*,vtkGraph*);
101 
104  char* Domain;
105  bool UseDomain;
106 
107 private:
108  vtkExpandSelectedGraph(const vtkExpandSelectedGraph&); // Not implemented
109  void operator=(const vtkExpandSelectedGraph&); // Not implemented
110 
111  void BFSExpandSelection(vtkIdTypeArray *selection,
112  vtkGraph *graph);
113 };
114 
115 #endif
116