Go to the documentation of this file.
32 #ifndef vtkIncrementalForceLayout_h
33 #define vtkIncrementalForceLayout_h
35 #include "vtkInfovisLayoutModule.h"
71 vtkGetMacro(Alpha,
float);
81 vtkGetMacro(Theta,
float);
90 vtkGetMacro(Charge,
float);
98 vtkGetMacro(Strength,
float);
107 vtkGetMacro(Distance,
float);
116 vtkGetMacro(Gravity,
float);
125 vtkGetMacro(Friction,
float);
134 { this->GravityPoint =
point; }
136 {
return this->GravityPoint; }
148 class Implementation;
static vtkIncrementalForceLayout * New()
incremental force-directed layout.
~vtkIncrementalForceLayout()
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract base class for most VTK objects
virtual vtkVector2f GetGravityPoint()
virtual void SetGraph(vtkGraph *g)
Set the graph to be positioned.
vtkIncrementalForceLayout()
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void SetFixed(vtkIdType fixed)
Set the id of the vertex that will not move during the simulation.
Base class for graph data types.
void UpdatePositions()
Perform one iteration of the force-directed layout.
virtual void SetGravityPoint(const vtkVector2f &point)
Set the gravity point where all vertices will migrate.