VTK
vtkBoostBreadthFirstSearch.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoostBreadthFirstSearch.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 -------------------------------------------------------------------------*/
39 #ifndef vtkBoostBreadthFirstSearch_h
40 #define vtkBoostBreadthFirstSearch_h
41 
42 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
43 #include "vtkStdString.h" // For string type
44 #include "vtkVariant.h" // For variant type
45 
46 #include "vtkGraphAlgorithm.h"
47 
48 class vtkSelection;
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
61  {
62  this->SetInputConnection(1, algOutput);
63  }
65 
69 
75 
80  void SetOriginVertexString(char* arrayName, char* value);
81 
83 
85  vtkSetStringMacro(OutputArrayName);
87 
89 
93  vtkSetMacro(OriginFromSelection, bool);
94  vtkGetMacro(OriginFromSelection, bool);
95  vtkBooleanMacro(OriginFromSelection, bool);
97 
99 
102  vtkGetMacro(OutputSelection, bool);
103  vtkSetMacro(OutputSelection, bool);
104  vtkBooleanMacro(OutputSelection, bool);
106 
108 
111  vtkSetStringMacro(OutputSelectionType);
113 
114 protected:
117 
118  virtual int RequestData(
119  vtkInformation *,
122 
124  int port, vtkInformation* info);
125 
127  int port, vtkInformation* info);
128 
129 private:
130 
131  vtkIdType OriginVertexIndex;
132  char* InputArrayName;
133  char* OutputArrayName;
134  vtkVariant OriginValue;
135  bool OutputSelection;
136  bool OriginFromSelection;
137  char* OutputSelectionType;
138 
140 
141  vtkSetStringMacro(InputArrayName);
143 
145 
147  vtkIdType GetVertexIndex(
148  vtkAbstractArray *abstract,vtkVariant value);
150 
151  vtkBoostBreadthFirstSearch(const vtkBoostBreadthFirstSearch&); // Not implemented.
152  void operator=(const vtkBoostBreadthFirstSearch&); // Not implemented.
153 };
154 
155 #endif
vtkStdString.h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkVariant.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkgl::s
GLdouble s
Definition: vtkgl.h:11594
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInfovisBoostGraphAlgorithmsModule.h
vtkBoostBreadthFirstSearch::~vtkBoostBreadthFirstSearch
~vtkBoostBreadthFirstSearch()
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:45
vtkBoostBreadthFirstSearch::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkBoostBreadthFirstSearch::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBoostBreadthFirstSearch::SetOriginSelection
void SetOriginSelection(vtkSelection *s)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkBoostBreadthFirstSearch::vtkBoostBreadthFirstSearch
vtkBoostBreadthFirstSearch()
vtkBoostBreadthFirstSearch::SetOriginVertexString
void SetOriginVertexString(char *arrayName, char *value)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT
#define VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT
Definition: vtkInfovisBoostGraphAlgorithmsModule.h:15
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkBoostBreadthFirstSearch
Boost breadth_first_search on a vtkGraph.
Definition: vtkBoostBreadthFirstSearch.h:51
vtkBoostBreadthFirstSearch::SetOriginVertex
void SetOriginVertex(vtkStdString arrayName, vtkVariant value)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBoostBreadthFirstSearch::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkBoostBreadthFirstSearch::SetOriginSelectionConnection
void SetOriginSelectionConnection(vtkAlgorithmOutput *algOutput)
Definition: vtkBoostBreadthFirstSearch.h:60
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:65
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkBoostBreadthFirstSearch::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkBoostBreadthFirstSearch::New
static vtkBoostBreadthFirstSearch * New()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkBoostBreadthFirstSearch::SetOriginVertex
void SetOriginVertex(vtkIdType index)