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;
Base class for graph data types.
incremental force-directed layout.
~vtkIncrementalForceLayout()
virtual void SetGraph(vtkGraph *g)
Set the graph to be positioned.
vtkIncrementalForceLayout()
virtual void SetFixed(vtkIdType fixed)
Set the id of the vertex that will not move during the simulation.
virtual vtkVector2f GetGravityPoint()
static vtkIncrementalForceLayout * New()
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetGravityPoint(const vtkVector2f &point)
Set the gravity point where all vertices will migrate.
void UpdatePositions()
Perform one iteration of the force-directed layout.
a simple class to control print indentation
abstract base class for most VTK objects
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.