VTK
vtkCollapseVerticesByArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCollapseVerticesByArray.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 =========================================================================*/
32 #ifndef vtkCollapseVerticesByArray_h__
33 #define vtkCollapseVerticesByArray_h__
34 
35 #include "vtkInfovisCoreModule.h" // For export macro
36 #include "vtkGraphAlgorithm.h"
37 
38 class vtkCollapseVerticesByArrayInternal;
39 
41 {
42 public:
45 
46  void PrintSelf(ostream &os, vtkIndent indent);
47 
49 
50  vtkGetMacro(AllowSelfLoops, bool);
51  vtkSetMacro(AllowSelfLoops, bool);
52  vtkBooleanMacro(AllowSelfLoops, bool);
54 
57  void AddAggregateEdgeArray(const char* arrName);
58 
59 
62 
64 
65  vtkGetStringMacro(VertexArray);
66  vtkSetStringMacro(VertexArray);
68 
69 
71 
72  vtkGetMacro(CountEdgesCollapsed, bool);
73  vtkSetMacro(CountEdgesCollapsed, bool);
74  vtkBooleanMacro(CountEdgesCollapsed, bool);
76 
78 
81  vtkGetStringMacro(EdgesCollapsedArray);
82  vtkSetStringMacro(EdgesCollapsedArray);
84 
85 
87 
88  vtkGetMacro(CountVerticesCollapsed, bool);
89  vtkSetMacro(CountVerticesCollapsed, bool);
90  vtkBooleanMacro(CountVerticesCollapsed, bool);
92 
94 
97  vtkGetStringMacro(VerticesCollapsedArray);
98  vtkSetStringMacro(VerticesCollapsedArray);
100 
101 protected:
102 
105 
107 
108  virtual int RequestData(vtkInformation* request,
109  vtkInformationVector** inputVector,
110  vtkInformationVector* outputVector);
112 
115 
116 
119 
121 
123  vtkIdType target, vtkIdType& edgeId);
125 
126 private:
128  vtkCollapseVerticesByArray(const vtkCollapseVerticesByArray&); // Not implemented
129  void operator=(const vtkCollapseVerticesByArray&); // Not implemented
131 
132 
133 protected:
135  char* VertexArray;
136 
139 
142 
143  vtkCollapseVerticesByArrayInternal* Internal;
144 };
145 
146 #endif // vtkCollapseVerticesByArray_h__
VTKINFOVISCORE_EXPORT
#define VTKINFOVISCORE_EXPORT
Definition: vtkInfovisCoreModule.h:15
vtkCollapseVerticesByArray::AddAggregateEdgeArray
void AddAggregateEdgeArray(const char *arrName)
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkCollapseVerticesByArray::vtkCollapseVerticesByArray
vtkCollapseVerticesByArray()
vtkCollapseVerticesByArray::Create
vtkGraph * Create(vtkGraph *inGraph)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCollapseVerticesByArray::AllowSelfLoops
bool AllowSelfLoops
Definition: vtkCollapseVerticesByArray.h:134
vtkCollapseVerticesByArray::Internal
vtkCollapseVerticesByArrayInternal * Internal
Definition: vtkCollapseVerticesByArray.h:143
vtkCollapseVerticesByArray::~vtkCollapseVerticesByArray
~vtkCollapseVerticesByArray()
vtkCollapseVerticesByArray::CountEdgesCollapsed
bool CountEdgesCollapsed
Definition: vtkCollapseVerticesByArray.h:137
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:821
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkGraphAlgorithm.h
vtkCollapseVerticesByArray::EdgesCollapsedArray
char * EdgesCollapsedArray
Definition: vtkCollapseVerticesByArray.h:138
vtkCollapseVerticesByArray::ClearAggregateEdgeArray
void ClearAggregateEdgeArray()
vtkCollapseVerticesByArray::New
static vtkCollapseVerticesByArray * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCollapseVerticesByArray::VertexArray
char * VertexArray
Definition: vtkCollapseVerticesByArray.h:135
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkInfovisCoreModule.h
vtkCollapseVerticesByArray::CountVerticesCollapsed
bool CountVerticesCollapsed
Definition: vtkCollapseVerticesByArray.h:140
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkCollapseVerticesByArray::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkCollapseVerticesByArray
Collapse the graph given a vertex array.
Definition: vtkCollapseVerticesByArray.h:41
vtkCollapseVerticesByArray::FindEdge
void FindEdge(vtkGraph *outGraph, vtkIdType source, vtkIdType target, vtkIdType &edgeId)
vtkCollapseVerticesByArray::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkCollapseVerticesByArray::VerticesCollapsedArray
char * VerticesCollapsedArray
Definition: vtkCollapseVerticesByArray.h:141
target
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:828
vtkCollapseVerticesByArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)