VTK
9.0.1
Infovis
Layout
vtkIncrementalForceLayout.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkScatterPlotMatrix.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
29
#ifndef vtkIncrementalForceLayout_h
30
#define vtkIncrementalForceLayout_h
31
32
#include "vtkInfovisLayoutModule.h"
// For export macro
33
#include "
vtkObject.h
"
34
35
#include "
vtkVector.h
"
// For vector ivars
36
37
class
vtkGraph
;
38
39
class
VTKINFOVISLAYOUT_EXPORT
vtkIncrementalForceLayout
:
public
vtkObject
40
{
41
public
:
42
vtkTypeMacro(
vtkIncrementalForceLayout
,
vtkObject
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
44
static
vtkIncrementalForceLayout
*
New
();
45
47
50
virtual
void
SetGraph(
vtkGraph
* g);
51
vtkGetObjectMacro(Graph,
vtkGraph
);
53
55
59
virtual
void
SetFixed(
vtkIdType
fixed);
60
vtkGetMacro(Fixed,
vtkIdType
);
62
64
67
vtkSetMacro(Alpha,
float
);
68
vtkGetMacro(Alpha,
float
);
70
72
77
vtkSetMacro(Theta,
float
);
78
vtkGetMacro(Theta,
float
);
80
82
86
vtkSetMacro(Charge,
float
);
87
vtkGetMacro(Charge,
float
);
89
91
94
vtkSetMacro(Strength,
float
);
95
vtkGetMacro(Strength,
float
);
97
99
103
vtkSetMacro(Distance,
float
);
104
vtkGetMacro(Distance,
float
);
106
108
112
vtkSetMacro(Gravity,
float
);
113
vtkGetMacro(Gravity,
float
);
115
117
121
vtkSetMacro(Friction,
float
);
122
vtkGetMacro(Friction,
float
);
124
130
virtual
void
SetGravityPoint
(
const
vtkVector2f
&
point
) { this->GravityPoint =
point
; }
131
virtual
vtkVector2f
GetGravityPoint
() {
return
this->GravityPoint; }
132
136
void
UpdatePositions();
137
138
protected
:
139
vtkIncrementalForceLayout
();
140
~
vtkIncrementalForceLayout
()
override
;
141
142
vtkGraph
*
Graph
;
143
class
Implementation;
144
Implementation*
Impl
;
145
vtkIdType
Fixed
;
146
vtkVector2f
GravityPoint
;
147
float
Alpha
;
148
float
Theta
;
149
float
Charge
;
150
float
Strength
;
151
float
Distance
;
152
float
Gravity
;
153
float
Friction
;
154
155
private
:
156
vtkIncrementalForceLayout
(
const
vtkIncrementalForceLayout
&) =
delete
;
157
void
operator=(
const
vtkIncrementalForceLayout
&) =
delete
;
158
};
159
#endif
vtkIncrementalForceLayout::GravityPoint
vtkVector2f GravityPoint
Definition:
vtkIncrementalForceLayout.h:146
vtkIncrementalForceLayout
incremental force-directed layout.
Definition:
vtkIncrementalForceLayout.h:39
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkVector.h
vtkIncrementalForceLayout::Charge
float Charge
Definition:
vtkIncrementalForceLayout.h:149
vtkIncrementalForceLayout::Graph
vtkGraph * Graph
Definition:
vtkIncrementalForceLayout.h:142
vtkIncrementalForceLayout::Friction
float Friction
Definition:
vtkIncrementalForceLayout.h:153
vtkIncrementalForceLayout::GetGravityPoint
virtual vtkVector2f GetGravityPoint()
Definition:
vtkIncrementalForceLayout.h:131
vtkX3D::point
@ point
Definition:
vtkX3D.h:242
vtkIncrementalForceLayout::Alpha
float Alpha
Definition:
vtkIncrementalForceLayout.h:147
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkIncrementalForceLayout::Strength
float Strength
Definition:
vtkIncrementalForceLayout.h:150
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIncrementalForceLayout::Impl
Implementation * Impl
Definition:
vtkIncrementalForceLayout.h:143
vtkObject.h
vtkIncrementalForceLayout::Fixed
vtkIdType Fixed
Definition:
vtkIncrementalForceLayout.h:145
vtkIncrementalForceLayout::Theta
float Theta
Definition:
vtkIncrementalForceLayout.h:148
vtkGraph
Base class for graph data types.
Definition:
vtkGraph.h:289
vtkIncrementalForceLayout::Distance
float Distance
Definition:
vtkIncrementalForceLayout.h:151
vtkVector2f
Definition:
vtkVector.h:432
vtkIncrementalForceLayout::SetGravityPoint
virtual void SetGravityPoint(const vtkVector2f &point)
Set the gravity point where all vertices will migrate.
Definition:
vtkIncrementalForceLayout.h:130
vtkIncrementalForceLayout::Gravity
float Gravity
Definition:
vtkIncrementalForceLayout.h:152
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17