20#ifndef vtkIncrementalForceLayout_h
21#define vtkIncrementalForceLayout_h
23#include "vtkInfovisLayoutModule.h"
28VTK_ABI_NAMESPACE_BEGIN
59 vtkSetMacro(Alpha,
float);
60 vtkGetMacro(Alpha,
float);
69 vtkSetMacro(Theta,
float);
70 vtkGetMacro(Theta,
float);
78 vtkSetMacro(Charge,
float);
79 vtkGetMacro(Charge,
float);
86 vtkSetMacro(Strength,
float);
87 vtkGetMacro(Strength,
float);
95 vtkSetMacro(Distance,
float);
96 vtkGetMacro(Distance,
float);
104 vtkSetMacro(Gravity,
float);
105 vtkGetMacro(Gravity,
float);
113 vtkSetMacro(Friction,
float);
114 vtkGetMacro(Friction,
float);
135 class Implementation;
Base class for graph data types.
incremental force-directed layout.
virtual void SetGraph(vtkGraph *g)
Set the graph to be positioned.
vtkIncrementalForceLayout()
~vtkIncrementalForceLayout() override
virtual void SetFixed(vtkIdType fixed)
Set the id of the vertex that will not move during the simulation.
virtual vtkVector2f GetGravityPoint()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkIncrementalForceLayout * New()
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