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
45
46class vtkGraph;
47class vtkIdTypeArray;
48
49class VTKINFOVISCORE_EXPORT vtkExpandSelectedGraph : public vtkSelectionAlgorithm
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent);
55
60
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);
94
96
100 vtkSetMacro(UseDomain, bool);
101 vtkGetMacro(UseDomain, bool);
102 vtkBooleanMacro(UseDomain, bool);
104
105protected:
108
113
115
118 char* Domain;
120
121private:
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
Proxy object to connect input/output ports.
expands a selection set of a vtkGraph
int FillInputPortInformation(int port, vtkInformation *info)
Specify the first vtkSelection input and the second vtkGraph input.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkExpandSelectedGraph * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void Expand(vtkIdTypeArray *, vtkGraph *)
void SetGraphConnection(vtkAlgorithmOutput *in)
A convenience method for setting the second input (i.e.
Base class for graph data types.
Definition: vtkGraph.h:288
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.