Show / Hide Table of Contents

Class CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData

Data for the simple vertices.

Inheritance
System.Object
CompoundFDPLayoutAlgorithm<TVertex, TEdge, TGraph>.VertexData
CompoundFDPLayoutAlgorithm.CompoundVertexData<>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.Layout
Assembly: GraphShape.dll
Syntax
protected abstract class VertexData

Constructors

| Improve this Doc View Source

VertexData(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 Source

ApplicationForce

Gets or sets the spring force.

Declaration
public Vector ApplicationForce { get; set; }
Property Value
Type Description
Vector
| Improve this Doc View Source

GravitationForce

Gets or sets the gravitation force.

Declaration
public Vector GravitationForce { get; set; }
Property Value
Type Description
Vector
| Improve this Doc View Source

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
| Improve this Doc View Source

Level

The level of the vertex inside the graph.

Declaration
public int Level { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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<>
| Improve this Doc View Source

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.

| Improve this Doc View Source

Position

The position of the vertex.

Declaration
public Point Position { get; set; }
Property Value
Type Description
Point
| Improve this Doc View Source

RepulsionForce

Gets or sets the repulsion force.

Declaration
public Vector RepulsionForce { get; set; }
Property Value
Type Description
Vector
| Improve this Doc View Source

Size

Gets the actual size of the vertex (inner size + border + anything else...).

Declaration
public abstract Size Size { get; }
Property Value
Type Description
Size
| Improve this Doc View Source

SpringForce

Gets or sets the spring force.

Declaration
public Vector SpringForce { get; set; }
Property Value
Type Description
Vector
| Improve this Doc View Source

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 Source

ApplyForce(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.

Extension Methods

GraphHelpers.GetDistances<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph)
GraphHelpers.GetDiameter<TVertex, TEdge, TGraph>(TGraph, out Double[,])
  • Improve this Doc
  • View Source
In This Article
Back to top GraphShape