41 #ifndef __vtkConstrained2DLayoutStrategy_h
42 #define __vtkConstrained2DLayoutStrategy_h
44 #include "vtkInfovisLayoutModule.h"
47 #include "vtkSmartPointer.h"
59 void PrintSelf(ostream& os, vtkIndent indent);
65 vtkSetClampMacro(RandomSeed,
int, 0, VTK_INT_MAX);
66 vtkGetMacro(RandomSeed,
int);
75 vtkSetClampMacro(MaxNumberOfIterations,
int, 0, VTK_INT_MAX);
76 vtkGetMacro(MaxNumberOfIterations,
int);
84 vtkSetClampMacro(IterationsPerLayout,
int, 0, VTK_INT_MAX);
85 vtkGetMacro(IterationsPerLayout,
int);
92 vtkSetClampMacro(InitialTemperature,
float, 0.0, VTK_FLOAT_MAX);
93 vtkGetMacro(InitialTemperature,
float);
101 vtkSetClampMacro(CoolDownRate,
double, 0.01, VTK_DOUBLE_MAX);
102 vtkGetMacro(CoolDownRate,
double);
109 vtkSetMacro(RestDistance,
float);
110 vtkGetMacro(RestDistance,
float);
130 vtkSetStringMacro(InputArrayName);
131 vtkGetStringMacro(InputArrayName);
156 vtkSmartPointer<vtkFastSplatter> DensityGrid;
157 vtkSmartPointer<vtkImageData> SplatImage;
158 vtkSmartPointer<vtkFloatArray> RepulsionArray;
159 vtkSmartPointer<vtkFloatArray> AttractionArray;
162 vtkLayoutEdge *EdgeArray;
165 int IterationsPerLayout;
171 char* InputArrayName;
174 void GenerateCircularSplat(vtkImageData *splat,
int x,
int y);
175 void GenerateGaussianSplat(vtkImageData *splat,
int x,
int y);
176 void ResolveCoincidentVertices();
abstract superclass for all graph layout strategies
int MaxNumberOfIterations
A splatter optimized for splatting single kernels.
a simple fast 2D graph layout that looks for a 'constraint' array (vtkDoubleArray). Any entry in the constraint array will indicate the level of impedance a node has to the force calculations during the layout optimization. The array is assumed to be normalized between zero and one, with one being totally constrained, so no force will be applied to the node (i.e. no movement), and zero being full range of movement (no constraints).
virtual int IsLayoutComplete()
virtual void Initialize()
void PrintSelf(ostream &os, vtkIndent indent)