Collapse the graph given a vertex array.
More...
#include <vtkCollapseVerticesByArray.h>
Inherits vtkGraphAlgorithm.
Collapse the graph given a vertex array.
vtkCollapseVerticesByArray is a class which collapses the graph using a vertex array as the key. So if the graph has vertices sharing common traits then this class combines all these vertices into one. This class does not perform aggregation on vertex data but allow to do so for edge data. Users can choose one or more edge data arrays for aggregation using AddAggregateEdgeArray function.
- Tests:
- vtkCollapseVerticesByArray (Tests)
Definition at line 40 of file vtkCollapseVerticesByArray.h.
vtkCollapseVerticesByArray::vtkCollapseVerticesByArray |
( |
| ) |
|
|
protected |
vtkCollapseVerticesByArray::~vtkCollapseVerticesByArray |
( |
| ) |
|
|
protected |
static int vtkCollapseVerticesByArray::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkCollapseVerticesByArray::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkCollapseVerticesByArray::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkCollapseVerticesByArray::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual bool vtkCollapseVerticesByArray::GetAllowSelfLoops |
( |
| ) |
|
|
virtual |
Boolean to allow self loops during collapse.
virtual void vtkCollapseVerticesByArray::SetAllowSelfLoops |
( |
bool |
| ) |
|
|
virtual |
Boolean to allow self loops during collapse.
virtual void vtkCollapseVerticesByArray::AllowSelfLoopsOn |
( |
| ) |
|
|
virtual |
Boolean to allow self loops during collapse.
virtual void vtkCollapseVerticesByArray::AllowSelfLoopsOff |
( |
| ) |
|
|
virtual |
Boolean to allow self loops during collapse.
void vtkCollapseVerticesByArray::AddAggregateEdgeArray |
( |
const char * |
arrName | ) |
|
Add arrays on which aggregation of data is allowed. Default if replaced by the last value.
void vtkCollapseVerticesByArray::ClearAggregateEdgeArray |
( |
| ) |
|
Clear the list of arrays on which aggregation was set to allow.
virtual char* vtkCollapseVerticesByArray::GetVertexArray |
( |
| ) |
|
|
virtual |
Set the array using which perform the collapse.
virtual void vtkCollapseVerticesByArray::SetVertexArray |
( |
const char * |
| ) |
|
|
virtual |
Set the array using which perform the collapse.
virtual bool vtkCollapseVerticesByArray::GetCountEdgesCollapsed |
( |
| ) |
|
|
virtual |
Set if count should be made of how many edges collapsed.
virtual void vtkCollapseVerticesByArray::SetCountEdgesCollapsed |
( |
bool |
| ) |
|
|
virtual |
Set if count should be made of how many edges collapsed.
virtual void vtkCollapseVerticesByArray::CountEdgesCollapsedOn |
( |
| ) |
|
|
virtual |
Set if count should be made of how many edges collapsed.
virtual void vtkCollapseVerticesByArray::CountEdgesCollapsedOff |
( |
| ) |
|
|
virtual |
Set if count should be made of how many edges collapsed.
virtual char* vtkCollapseVerticesByArray::GetEdgesCollapsedArray |
( |
| ) |
|
|
virtual |
Name of the array where the count of how many edges collapsed will be stored.By default the name of array is "EdgesCollapsedCountArray".
virtual void vtkCollapseVerticesByArray::SetEdgesCollapsedArray |
( |
const char * |
| ) |
|
|
virtual |
Name of the array where the count of how many edges collapsed will be stored.By default the name of array is "EdgesCollapsedCountArray".
virtual bool vtkCollapseVerticesByArray::GetCountVerticesCollapsed |
( |
| ) |
|
|
virtual |
Get/Set if count should be made of how many vertices collapsed.
virtual void vtkCollapseVerticesByArray::SetCountVerticesCollapsed |
( |
bool |
| ) |
|
|
virtual |
Get/Set if count should be made of how many vertices collapsed.
virtual void vtkCollapseVerticesByArray::CountVerticesCollapsedOn |
( |
| ) |
|
|
virtual |
Get/Set if count should be made of how many vertices collapsed.
virtual void vtkCollapseVerticesByArray::CountVerticesCollapsedOff |
( |
| ) |
|
|
virtual |
Get/Set if count should be made of how many vertices collapsed.
virtual char* vtkCollapseVerticesByArray::GetVerticesCollapsedArray |
( |
| ) |
|
|
virtual |
Name of the array where the count of how many vertices collapsed will be stored. By default name of the array is "VerticesCollapsedCountArray".
virtual void vtkCollapseVerticesByArray::SetVerticesCollapsedArray |
( |
const char * |
| ) |
|
|
virtual |
Name of the array where the count of how many vertices collapsed will be stored. By default name of the array is "VerticesCollapsedCountArray".
virtual int vtkCollapseVerticesByArray::RequestData |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedvirtual |
virtual int vtkCollapseVerticesByArray::FillOutputPortInformation |
( |
int |
port, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protectedvirtual |
vtkGraph* vtkCollapseVerticesByArray::Create |
( |
vtkGraph * |
inGraph | ) |
|
|
protected |
Create output graph given all the parameters. Helper function.
void vtkCollapseVerticesByArray::FindEdge |
( |
vtkGraph * |
outGraph, |
|
|
vtkIdType |
source, |
|
|
vtkIdType |
target, |
|
|
vtkIdType & |
edgeId |
|
) |
| |
|
protected |
bool vtkCollapseVerticesByArray::AllowSelfLoops |
|
protected |
char* vtkCollapseVerticesByArray::VertexArray |
|
protected |
bool vtkCollapseVerticesByArray::CountEdgesCollapsed |
|
protected |
char* vtkCollapseVerticesByArray::EdgesCollapsedArray |
|
protected |
bool vtkCollapseVerticesByArray::CountVerticesCollapsed |
|
protected |
char* vtkCollapseVerticesByArray::VerticesCollapsedArray |
|
protected |
vtkCollapseVerticesByArrayInternal* vtkCollapseVerticesByArray::Internal |
|
protected |
The documentation for this class was generated from the following file: