32#ifndef vtkIncrementalForceLayout_h
33#define vtkIncrementalForceLayout_h
35#include "vtkInfovisLayoutModule.h"
70 vtkSetMacro(Alpha,
float);
71 vtkGetMacro(Alpha,
float);
80 vtkSetMacro(Theta,
float);
81 vtkGetMacro(Theta,
float);
89 vtkSetMacro(Charge,
float);
90 vtkGetMacro(Charge,
float);
97 vtkSetMacro(Strength,
float);
98 vtkGetMacro(Strength,
float);
106 vtkSetMacro(Distance,
float);
107 vtkGetMacro(Distance,
float);
115 vtkSetMacro(Gravity,
float);
116 vtkGetMacro(Gravity,
float);
124 vtkSetMacro(Friction,
float);
125 vtkGetMacro(Friction,
float);
146 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