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 
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:
49  static vtkExpandSelectedGraph* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  void SetGraphConnection(vtkAlgorithmOutput* in);
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:
104  ~vtkExpandSelectedGraph() override;
105 
107 
108  void Expand(vtkIdTypeArray*, vtkGraph*);
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
vtkExpandSelectedGraph::BFSDistance
int BFSDistance
Definition: vtkExpandSelectedGraph.h:110
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSelectionAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSelectionAlgorithm.h
vtkSelectionAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
Definition: vtkX3D.h:453
vtkExpandSelectedGraph::UseDomain
bool UseDomain
Definition: vtkExpandSelectedGraph.h:113
vtkSelectionAlgorithm::New
static vtkSelectionAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSelectionAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExpandSelectedGraph::IncludeShortestPaths
bool IncludeShortestPaths
Definition: vtkExpandSelectedGraph.h:111
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkExpandSelectedGraph
expands a selection set of a vtkGraph
Definition: vtkExpandSelectedGraph.h:46
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkExpandSelectedGraph::Domain
char * Domain
Definition: vtkExpandSelectedGraph.h:112