VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkCollapseGraph Class Reference

"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)
 
vtkCollapseGraphNewInstance () 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 vtkCollapseGraphNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCollapseGraphSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkCollapseGraph ()
 
 ~vtkCollapseGraph ()
 
int FillInputPortInformation (int port, vtkInformation *info)
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Detailed Description

"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.

Member Typedef Documentation

typedef vtkGraphAlgorithm vtkCollapseGraph::Superclass

Definition at line 52 of file vtkCollapseGraph.h.

Constructor & Destructor Documentation

vtkCollapseGraph::vtkCollapseGraph ( )
protected
vtkCollapseGraph::~vtkCollapseGraph ( )
protected

Member Function Documentation

static vtkCollapseGraph* vtkCollapseGraph::New ( )
static
static int vtkCollapseGraph::IsTypeOf ( const char *  type)
static
virtual int vtkCollapseGraph::IsA ( const char *  type)
virtual
static vtkCollapseGraph* vtkCollapseGraph::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkCollapseGraph::NewInstanceInternal ( ) const
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.

int vtkCollapseGraph::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protected
int vtkCollapseGraph::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

The documentation for this class was generated from the following file: