Class CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData
Data for the simple vertices.
Inheritance
Inherited Members
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
protected abstract class VertexData
Constructors
| Improve this Doc View SourceVertexData(TVertex, CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData, Boolean, Point)
Initializes a new instance of the CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData class.
Declaration
protected VertexData(TVertex vertex, CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData movableParent, bool isFixedToParent, Point position)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | Target vertex. |
CompoundFDPLayoutAlgorithm.VertexData<> | movableParent | Moveable parent vertex data. |
System.Boolean | isFixedToParent | Indicates if the vertex position is fixed to its parent. |
Point | position | Vertex position. |
Properties
| Improve this Doc View SourceApplicationForce
Gets or sets the spring force.
Declaration
public Vector ApplicationForce { get; set; }
Property Value
Type | Description |
---|---|
Vector |
GravitationForce
Gets or sets the gravitation force.
Declaration
public Vector GravitationForce { get; set; }
Property Value
Type | Description |
---|---|
Vector |
IsFixedToParent
Gets or sets that the position of the vertex is fixed to it's parent vertex or not.
Declaration
public bool IsFixedToParent { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Level
The level of the vertex inside the graph.
Declaration
public int Level { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MovableParent
If the vertex is fixed (cannot be moved), that's it's parent that could be moved (if there's any).
This property can only be set once.
Declaration
public CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData MovableParent { get; set; }
Property Value
Type | Description |
---|---|
CompoundFDPLayoutAlgorithm.VertexData<> |
Parent
Parent compound vertex.
Declaration
public CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.CompoundVertexData Parent { get; set; }
Property Value
Type | Description |
---|---|
CompoundFDPLayoutAlgorithm.CompoundVertexData<> |
Remarks
Should be not null except for root compound vertex (GraphShape.Algorithms.Layout.CompoundFDPLayoutAlgorithm`3._rootCompoundVertex.
Position
The position of the vertex.
Declaration
public Point Position { get; set; }
Property Value
Type | Description |
---|---|
Point |
RepulsionForce
Gets or sets the repulsion force.
Declaration
public Vector RepulsionForce { get; set; }
Property Value
Type | Description |
---|---|
Vector |
Size
Gets the actual size of the vertex (inner size + border + anything else...).
Declaration
public abstract Size Size { get; }
Property Value
Type | Description |
---|---|
Size |
SpringForce
Gets or sets the spring force.
Declaration
public Vector SpringForce { get; set; }
Property Value
Type | Description |
---|---|
Vector |
Vertex
Gets the vertex which is wrapped by this object. Can be null for the root vertex.
Declaration
public TVertex Vertex { get; }
Property Value
Type | Description |
---|---|
TVertex |
Methods
| Improve this Doc View SourceApplyForce(Double)
Applies forces on the wrapped vertex (bound to limit
).
Declaration
public Vector ApplyForce(double limit)
Parameters
Type | Name | Description |
---|---|---|
System.Double | limit |
Returns
Type | Description |
---|---|
Vector | Computed force. |