Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkGraphLayoutFilter Class Reference

nice layout of undirected graphs in 3D. More...

#include <vtkGraphLayoutFilter.h>

Inheritance diagram for vtkGraphLayoutFilter:

Inheritance graph
[legend]
Collaboration diagram for vtkGraphLayoutFilter:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetThreeDimensionalLayout (int)
virtual int GetThreeDimensionalLayout ()
virtual void ThreeDimensionalLayoutOn ()
virtual void ThreeDimensionalLayoutOff ()
virtual void SetGraphBounds (float, float, float, float, float, float)
virtual void SetGraphBounds (float[6])
virtual float * GetGraphBounds ()
virtual void GetGraphBounds (float data[6])
virtual void SetAutomaticBoundsComputation (int)
virtual int GetAutomaticBoundsComputation ()
virtual void AutomaticBoundsComputationOn ()
virtual void AutomaticBoundsComputationOff ()
virtual void SetMaxNumberOfIterations (int)
virtual int GetMaxNumberOfIterations ()
virtual void SetCoolDownRate (float)
virtual float GetCoolDownRate ()

Static Public Methods

vtkGraphLayoutFilter * New ()
int IsTypeOf (const char *type)
vtkGraphLayoutFilter * SafeDownCast (vtkObject *o)

Protected Methods

 vtkGraphLayoutFilter ()
 ~vtkGraphLayoutFilter ()
void Execute ()

Protected Attributes

float GraphBounds [6]
int AutomaticBoundsComputation
int MaxNumberOfIterations
float CoolDownRate
int ThreeDimensionalLayout

Detailed Description

nice layout of undirected graphs in 3D.

Date:
2001/10/11 13:37:06
Revision:
1.5
Thanks:
Scott Hill of RPI for developing this class Mark Lacy for Procter & Gamble for support
vtkGraphLayoutFilter will reposition a network of nodes, connected by lines or polylines, into a more pleasing arrangement. The class implements a simple force-directed placement algorithm (Fruchterman & Reingold "Graph Drawing by Force-directed Placement" Software-Practice and Experience 21(11) 1991).

The input to the filter is a vtkPolyData representing the undirected graphs. A graph is represented by a set of polylines and/or lines. The output is also a vtkPolyData, where the point positions have been modified. To use the filter, specify whether you wish the layout to occur in 2D or 3D; the bounds in which the graph should lie (note that you can just use automatic bounds computation); and modify the cool down rate (controls the final process of simulated annealing).

Tests:
vtkGraphLayoutFilter (Tests)

Definition at line 71 of file vtkGraphLayoutFilter.h.


Constructor & Destructor Documentation

vtkGraphLayoutFilter::vtkGraphLayoutFilter   [protected]
 

vtkGraphLayoutFilter::~vtkGraphLayoutFilter   [inline, protected]
 

Definition at line 121 of file vtkGraphLayoutFilter.h.


Member Function Documentation

vtkGraphLayoutFilter* vtkGraphLayoutFilter::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkPolyDataSource.

virtual const char* vtkGraphLayoutFilter::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataToPolyDataFilter.

int vtkGraphLayoutFilter::IsTypeOf const char *    type [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 vtkPolyDataToPolyDataFilter.

virtual int vtkGraphLayoutFilter::IsA const char *    type [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 vtkPolyDataToPolyDataFilter.

vtkGraphLayoutFilter* vtkGraphLayoutFilter::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataToPolyDataFilter.

void vtkGraphLayoutFilter::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 vtkSource.

virtual void vtkGraphLayoutFilter::SetGraphBounds float   ,
float   ,
float   ,
float   ,
float   ,
float   
[virtual]
 

Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.

virtual void vtkGraphLayoutFilter::SetGraphBounds float   [6] [virtual]
 

Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.

virtual float* vtkGraphLayoutFilter::GetGraphBounds   [virtual]
 

Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.

virtual void vtkGraphLayoutFilter::GetGraphBounds float    data[6] [virtual]
 

Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.

virtual void vtkGraphLayoutFilter::SetAutomaticBoundsComputation int    [virtual]
 

Turn on/off automatic graph bounds calculation. If this boolean is off, then the manually specified GraphBounds is used. If on, then the input's bounds us used as the graph bounds.

virtual int vtkGraphLayoutFilter::GetAutomaticBoundsComputation   [virtual]
 

Turn on/off automatic graph bounds calculation. If this boolean is off, then the manually specified GraphBounds is used. If on, then the input's bounds us used as the graph bounds.

virtual void vtkGraphLayoutFilter::AutomaticBoundsComputationOn   [virtual]
 

Turn on/off automatic graph bounds calculation. If this boolean is off, then the manually specified GraphBounds is used. If on, then the input's bounds us used as the graph bounds.

virtual void vtkGraphLayoutFilter::AutomaticBoundsComputationOff   [virtual]
 

Turn on/off automatic graph bounds calculation. If this boolean is off, then the manually specified GraphBounds is used. If on, then the input's bounds us used as the graph bounds.

virtual void vtkGraphLayoutFilter::SetMaxNumberOfIterations int    [virtual]
 

Set/Get the maximum number of iterations to be used. The higher this number, the more iterations through the algorithm is possible, and thus, the more the graph gets modified.

virtual int vtkGraphLayoutFilter::GetMaxNumberOfIterations   [virtual]
 

Set/Get the maximum number of iterations to be used. The higher this number, the more iterations through the algorithm is possible, and thus, the more the graph gets modified.

virtual void vtkGraphLayoutFilter::SetCoolDownRate float    [virtual]
 

Set/Get the Cool-down rate. The higher this number is, the longer it will take to "cool-down", and thus, the more the graph will be modified.

virtual float vtkGraphLayoutFilter::GetCoolDownRate   [virtual]
 

Set/Get the Cool-down rate. The higher this number is, the longer it will take to "cool-down", and thus, the more the graph will be modified.

virtual void vtkGraphLayoutFilter::SetThreeDimensionalLayout int    [virtual]
 

virtual int vtkGraphLayoutFilter::GetThreeDimensionalLayout   [virtual]
 

virtual void vtkGraphLayoutFilter::ThreeDimensionalLayoutOn   [virtual]
 

virtual void vtkGraphLayoutFilter::ThreeDimensionalLayoutOff   [virtual]
 

void vtkGraphLayoutFilter::Execute   [protected, virtual]
 

This method is the old style execute method

Reimplemented from vtkSource.


Member Data Documentation

float vtkGraphLayoutFilter::GraphBounds[6] [protected]
 

Definition at line 125 of file vtkGraphLayoutFilter.h.

int vtkGraphLayoutFilter::AutomaticBoundsComputation [protected]
 

Definition at line 126 of file vtkGraphLayoutFilter.h.

int vtkGraphLayoutFilter::MaxNumberOfIterations [protected]
 

Definition at line 127 of file vtkGraphLayoutFilter.h.

float vtkGraphLayoutFilter::CoolDownRate [protected]
 

Definition at line 128 of file vtkGraphLayoutFilter.h.

int vtkGraphLayoutFilter::ThreeDimensionalLayout [protected]
 

Definition at line 129 of file vtkGraphLayoutFilter.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:29:47 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001