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 
36 #ifndef __vtkExpandSelectedGraph_h
37 #define __vtkExpandSelectedGraph_h
38 
39 #include "vtkSelectionAlgorithm.h"
40 
41 class vtkGraph;
42 class vtkIdTypeArray;
43 
45 {
46 public:
47  static vtkExpandSelectedGraph* New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52  void SetGraphConnection(vtkAlgorithmOutput* in);
53 
56 
58 
60  vtkSetMacro(BFSDistance, int);
61  vtkGetMacro(BFSDistance, int);
63 
65 
69  vtkSetMacro(IncludeShortestPaths, bool);
70  vtkGetMacro(IncludeShortestPaths, bool);
71  vtkBooleanMacro(IncludeShortestPaths, bool);
73 
75 
76  vtkSetStringMacro(Domain);
77  vtkGetStringMacro(Domain);
79 
81 
83  vtkSetMacro(UseDomain, bool);
84  vtkGetMacro(UseDomain, bool);
85  vtkBooleanMacro(UseDomain, bool);
87 
88 protected:
91 
92  int RequestData(
96 
97  void Expand(vtkIdTypeArray*,vtkGraph*);
98 
101  char* Domain;
102  bool UseDomain;
103 
104 private:
105  vtkExpandSelectedGraph(const vtkExpandSelectedGraph&); // Not implemented
106  void operator=(const vtkExpandSelectedGraph&); // Not implemented
107 
108  void BFSExpandSelection(vtkIdTypeArray *selection,
109  vtkGraph *graph);
110 };
111 
112 #endif
113 
Store vtkAlgorithm input/output information.
virtual int FillInputPortInformation(int port, vtkInformation *info)
expands a selection set of a vtkGraph
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:37
Superclass for algorithms that produce only Selection as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INFOVIS_EXPORT
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)