vtk
Class vtkGraphLayoutFilter

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkPolyDataToPolyDataFilter
                          extended byvtk.vtkGraphLayoutFilter
All Implemented Interfaces:
java.io.Serializable

public class vtkGraphLayoutFilter
extends vtkPolyDataToPolyDataFilter
implements java.io.Serializable

vtkGraphLayoutFilter - nice layout of undirected graphs in 3D. 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). JavaBean wrapper for vtkGraphLayoutFilter object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkGraphLayoutFilter()
           
protected vtkGraphLayoutFilter(int dmy)
           
 
Method Summary
 void automaticBoundsComputationOff()
          Turn on/off automatic graph bounds calculation.
 void automaticBoundsComputationOn()
          Turn on/off automatic graph bounds calculation.
 int getAutomaticBoundsComputation()
          Turn on/off automatic graph bounds calculation.
 java.lang.String getClassName()
          Return the class name as a string.
 double getCoolDownRate()
          Set/Get the Cool-down rate.
 double getCoolDownRateMaxValue()
          Set/Get the Cool-down rate.
 double getCoolDownRateMinValue()
          Set/Get the Cool-down rate.
 double[] getGraphBounds()
          Set / get the region in space in which to place the final graph.
 int getMaxNumberOfIterations()
          Set/Get the maximum number of iterations to be used.
 int getMaxNumberOfIterationsMaxValue()
          Set/Get the maximum number of iterations to be used.
 int getMaxNumberOfIterationsMinValue()
          Set/Get the maximum number of iterations to be used.
 vtkGraphLayoutFilter getThisGraphLayoutFilter()
           
 int getThreeDimensionalLayout()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setAutomaticBoundsComputation(int id0)
          Turn on/off automatic graph bounds calculation.
 void setCoolDownRate(double id0)
          Set/Get the Cool-down rate.
 void setGraphBounds(double[] id0)
          Set / get the region in space in which to place the final graph.
 void setGraphBounds(double id0, double id1, double id2, double id3, double id4, double id5)
          Set / get the region in space in which to place the final graph.
 void setMaxNumberOfIterations(int id0)
          Set/Get the maximum number of iterations to be used.
 void setThreeDimensionalLayout(int id0)
           
 void threeDimensionalLayoutOff()
           
 void threeDimensionalLayoutOn()
           
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkPolyDataToPolyDataFilter
getInput, getThisPolyDataToPolyDataFilter, setInput
 
Methods inherited from class vtk.vtkPolyDataSource
getOutput, getOutput, getThisPolyDataSource, setOutput
 
Methods inherited from class vtk.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkGraphLayoutFilter

public vtkGraphLayoutFilter()

vtkGraphLayoutFilter

protected vtkGraphLayoutFilter(int dmy)
Method Detail

getThisGraphLayoutFilter

public vtkGraphLayoutFilter getThisGraphLayoutFilter()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkPolyDataToPolyDataFilter

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
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.

Overrides:
isA in class vtkPolyDataToPolyDataFilter

setGraphBounds

public void setGraphBounds(double id0,
                           double id1,
                           double id2,
                           double id3,
                           double id4,
                           double id5)
Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.


setGraphBounds

public void setGraphBounds(double[] id0)
Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.


getGraphBounds

public double[] getGraphBounds()
Set / get the region in space in which to place the final graph. The GraphBounds only affects the results if AutomaticBoundsComputation is off.


setAutomaticBoundsComputation

public void setAutomaticBoundsComputation(int id0)
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.


getAutomaticBoundsComputation

public int getAutomaticBoundsComputation()
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.


automaticBoundsComputationOn

public void automaticBoundsComputationOn()
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.


automaticBoundsComputationOff

public void automaticBoundsComputationOff()
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.


setMaxNumberOfIterations

public void setMaxNumberOfIterations(int id0)
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.


getMaxNumberOfIterationsMinValue

public int getMaxNumberOfIterationsMinValue()
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.


getMaxNumberOfIterationsMaxValue

public int getMaxNumberOfIterationsMaxValue()
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.


getMaxNumberOfIterations

public int getMaxNumberOfIterations()
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.


setCoolDownRate

public void setCoolDownRate(double id0)
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.


getCoolDownRateMinValue

public double getCoolDownRateMinValue()
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.


getCoolDownRateMaxValue

public double getCoolDownRateMaxValue()
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.


getCoolDownRate

public double getCoolDownRate()
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.


setThreeDimensionalLayout

public void setThreeDimensionalLayout(int id0)

getThreeDimensionalLayout

public int getThreeDimensionalLayout()

threeDimensionalLayoutOn

public void threeDimensionalLayoutOn()

threeDimensionalLayoutOff

public void threeDimensionalLayoutOff()

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkPolyDataToPolyDataFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.