29#ifndef vtkIncrementalForceLayout_h
30#define vtkIncrementalForceLayout_h
32#include "vtkInfovisLayoutModule.h"
67 vtkSetMacro(Alpha,
float);
68 vtkGetMacro(Alpha,
float);
77 vtkSetMacro(Theta,
float);
78 vtkGetMacro(Theta,
float);
86 vtkSetMacro(Charge,
float);
87 vtkGetMacro(Charge,
float);
94 vtkSetMacro(Strength,
float);
95 vtkGetMacro(Strength,
float);
103 vtkSetMacro(Distance,
float);
104 vtkGetMacro(Distance,
float);
112 vtkSetMacro(Gravity,
float);
113 vtkGetMacro(Gravity,
float);
121 vtkSetMacro(Friction,
float);
122 vtkGetMacro(Friction,
float);
143 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