#include <vtkGraphLayoutFilter.h>
Inheritance diagram for vtkGraphLayoutFilter:
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).
Definition at line 41 of file vtkGraphLayoutFilter.h.
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | SetThreeDimensionalLayout (int) |
virtual int | GetThreeDimensionalLayout () |
virtual void | ThreeDimensionalLayoutOn () |
virtual void | ThreeDimensionalLayoutOff () |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetGraphBounds (double, double, double, double, double, double) |
virtual void | SetGraphBounds (double[6]) |
virtual double * | GetGraphBounds () |
virtual void | GetGraphBounds (double 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 (double) |
virtual double | GetCoolDownRate () |
Static Public Member Functions | |
static vtkGraphLayoutFilter * | New () |
static int | IsTypeOf (const char *type) |
static vtkGraphLayoutFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkGraphLayoutFilter () | |
~vtkGraphLayoutFilter () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
double | GraphBounds [6] |
int | AutomaticBoundsComputation |
int | MaxNumberOfIterations |
double | CoolDownRate |
int | ThreeDimensionalLayout |
|
Reimplemented from vtkPolyDataAlgorithm. Definition at line 46 of file vtkGraphLayoutFilter.h. |
|
|
|
Definition at line 91 of file vtkGraphLayoutFilter.h. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkPolyDataAlgorithm. |
|
Reimplemented from vtkPolyDataAlgorithm. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataAlgorithm. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataAlgorithm. |
|
Reimplemented from vtkPolyDataAlgorithm. |
|
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 vtkPolyDataAlgorithm. |
|
Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off. |
|
|
|
|
|
|
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
|
|
|
|
|
|
|
|
This is called by the superclass. This is the method you should override. Reimplemented from vtkPolyDataAlgorithm. |
|
Definition at line 95 of file vtkGraphLayoutFilter.h. |
|
Definition at line 96 of file vtkGraphLayoutFilter.h. |
|
Definition at line 97 of file vtkGraphLayoutFilter.h. |
|
Definition at line 98 of file vtkGraphLayoutFilter.h. |
|
Definition at line 99 of file vtkGraphLayoutFilter.h. |