VTK
|
"Collapses" vertices onto their neighbors. More...
#include <vtkCollapseGraph.h>
Inherits vtkGraphAlgorithm.
Public Types | |
typedef vtkGraphAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkCollapseGraph * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetGraphConnection (vtkAlgorithmOutput *) |
Convenience function provided for setting the graph input. More... | |
void | SetSelectionConnection (vtkAlgorithmOutput *) |
Convenience function provided for setting the selection input. More... | |
Static Public Member Functions | |
static vtkCollapseGraph * | New () |
static int | IsTypeOf (const char *type) |
static vtkCollapseGraph * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkCollapseGraph () | |
~vtkCollapseGraph () | |
int | FillInputPortInformation (int port, vtkInformation *info) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
"Collapses" vertices onto their neighbors.
vtkCollapseGraph "collapses" vertices onto their neighbors, while maintaining connectivity. Two inputs are required - a graph (directed or undirected), and a vertex selection that can be converted to indices.
Conceptually, each of the vertices specified in the input selection expands, "swallowing" adacent vertices. Edges to-or-from the "swallowed" vertices become edges to-or-from the expanding vertices, maintaining the overall graph connectivity.
In the case of directed graphs, expanding vertices only swallow vertices that are connected via out edges. This rule provides intuitive behavior when working with trees, so that "child" vertices collapse into their parents when the parents are part of the input selection.
Input port 0: graph Input port 1: selection
Definition at line 48 of file vtkCollapseGraph.h.
typedef vtkGraphAlgorithm vtkCollapseGraph::Superclass |
Definition at line 52 of file vtkCollapseGraph.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkCollapseGraph* vtkCollapseGraph::NewInstance | ( | ) | const |
void vtkCollapseGraph::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkCollapseGraph::SetGraphConnection | ( | vtkAlgorithmOutput * | ) |
Convenience function provided for setting the graph input.
void vtkCollapseGraph::SetSelectionConnection | ( | vtkAlgorithmOutput * | ) |
Convenience function provided for setting the selection input.
|
protected |
|
protected |