VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkExpandSelectedGraph Class Reference

expands a selection set of a vtkGraph More...

#include <vtkExpandSelectedGraph.h>

Inheritance diagram for vtkExpandSelectedGraph:
Inheritance graph
[legend]
Collaboration diagram for vtkExpandSelectedGraph:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkSelectionAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetGraphConnection (vtkAlgorithmOutput *in)
int FillInputPortInformation (int port, vtkInformation *info)
virtual void SetBFSDistance (int)
virtual int GetBFSDistance ()
virtual void SetIncludeShortestPaths (bool)
virtual bool GetIncludeShortestPaths ()
virtual void IncludeShortestPathsOn ()
virtual void IncludeShortestPathsOff ()
virtual void SetDomain (const char *)
virtual char * GetDomain ()
virtual void SetUseDomain (bool)
virtual bool GetUseDomain ()
virtual void UseDomainOn ()
virtual void UseDomainOff ()

Static Public Member Functions

static vtkExpandSelectedGraphNew ()
static int IsTypeOf (const char *type)
static vtkExpandSelectedGraphSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkExpandSelectedGraph ()
 ~vtkExpandSelectedGraph ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void Expand (vtkIdTypeArray *, vtkGraph *)

Protected Attributes

int BFSDistance
bool IncludeShortestPaths
char * Domain
bool UseDomain

Detailed Description

expands a selection set of a vtkGraph

The first input is a vtkSelection containing the selected vertices. The second input is a vtkGraph. This filter 'grows' the selection set in one of the following ways 1) SetBFSDistance controls how many 'hops' the selection is grown from each seed point in the selection set (defaults to 1) 2) IncludeShortestPaths controls whether this filter tries to 'connect' the vertices in the selection set by computing the shortest path between the vertices (if such a path exists) Note: IncludeShortestPaths is currently non-functional

Examples:
vtkExpandSelectedGraph (Examples)

Definition at line 47 of file vtkExpandSelectedGraph.h.


Member Typedef Documentation

Reimplemented from vtkSelectionAlgorithm.

Definition at line 51 of file vtkExpandSelectedGraph.h.


Constructor & Destructor Documentation

vtkExpandSelectedGraph::vtkExpandSelectedGraph ( ) [protected]
vtkExpandSelectedGraph::~vtkExpandSelectedGraph ( ) [protected]

Member Function Documentation

static vtkExpandSelectedGraph* vtkExpandSelectedGraph::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkSelectionAlgorithm.

virtual const char* vtkExpandSelectedGraph::GetClassName ( ) [virtual]

Reimplemented from vtkSelectionAlgorithm.

static int vtkExpandSelectedGraph::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkSelectionAlgorithm.

virtual int vtkExpandSelectedGraph::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkSelectionAlgorithm.

static vtkExpandSelectedGraph* vtkExpandSelectedGraph::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkSelectionAlgorithm.

void vtkExpandSelectedGraph::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkSelectionAlgorithm.

void vtkExpandSelectedGraph::SetGraphConnection ( vtkAlgorithmOutput in)

A convenience method for setting the second input (i.e. the graph).

int vtkExpandSelectedGraph::FillInputPortInformation ( int  port,
vtkInformation info 
) [virtual]

Specify the first vtkSelection input and the second vtkGraph input.

Reimplemented from vtkSelectionAlgorithm.

virtual void vtkExpandSelectedGraph::SetBFSDistance ( int  ) [virtual]

Set/Get BFSDistance which controls how many 'hops' the selection is grown from each seed point in the selection set (defaults to 1)

virtual int vtkExpandSelectedGraph::GetBFSDistance ( ) [virtual]

Set/Get BFSDistance which controls how many 'hops' the selection is grown from each seed point in the selection set (defaults to 1)

virtual void vtkExpandSelectedGraph::SetIncludeShortestPaths ( bool  ) [virtual]

Set/Get IncludeShortestPaths controls whether this filter tries to 'connect' the vertices in the selection set by computing the shortest path between the vertices (if such a path exists) Note: IncludeShortestPaths is currently non-functional

virtual bool vtkExpandSelectedGraph::GetIncludeShortestPaths ( ) [virtual]

Set/Get IncludeShortestPaths controls whether this filter tries to 'connect' the vertices in the selection set by computing the shortest path between the vertices (if such a path exists) Note: IncludeShortestPaths is currently non-functional

virtual void vtkExpandSelectedGraph::IncludeShortestPathsOn ( ) [virtual]

Set/Get IncludeShortestPaths controls whether this filter tries to 'connect' the vertices in the selection set by computing the shortest path between the vertices (if such a path exists) Note: IncludeShortestPaths is currently non-functional

virtual void vtkExpandSelectedGraph::IncludeShortestPathsOff ( ) [virtual]

Set/Get IncludeShortestPaths controls whether this filter tries to 'connect' the vertices in the selection set by computing the shortest path between the vertices (if such a path exists) Note: IncludeShortestPaths is currently non-functional

virtual void vtkExpandSelectedGraph::SetDomain ( const char *  ) [virtual]

Set/Get the vertex domain to use in the expansion.

virtual char* vtkExpandSelectedGraph::GetDomain ( ) [virtual]

Set/Get the vertex domain to use in the expansion.

virtual void vtkExpandSelectedGraph::SetUseDomain ( bool  ) [virtual]

Whether or not to use the domain when deciding to add a vertex to the expansion. Defaults to false.

virtual bool vtkExpandSelectedGraph::GetUseDomain ( ) [virtual]

Whether or not to use the domain when deciding to add a vertex to the expansion. Defaults to false.

virtual void vtkExpandSelectedGraph::UseDomainOn ( ) [virtual]

Whether or not to use the domain when deciding to add a vertex to the expansion. Defaults to false.

virtual void vtkExpandSelectedGraph::UseDomainOff ( ) [virtual]

Whether or not to use the domain when deciding to add a vertex to the expansion. Defaults to false.

int vtkExpandSelectedGraph::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkSelectionAlgorithm.

void vtkExpandSelectedGraph::Expand ( vtkIdTypeArray ,
vtkGraph  
) [protected]

Member Data Documentation

Definition at line 102 of file vtkExpandSelectedGraph.h.

Definition at line 103 of file vtkExpandSelectedGraph.h.

char* vtkExpandSelectedGraph::Domain [protected]

Definition at line 104 of file vtkExpandSelectedGraph.h.

Definition at line 105 of file vtkExpandSelectedGraph.h.


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