Skip to content
ChartForgeX
Class

GraphBarnesHutPhysicsOptions

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
sealed
Attributes
Fluent

Configures quadtree-accelerated Barnes-Hut gravity and springs.

Inheritance

Usage

Explore 31 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 16

Constructors

public GraphBarnesHutPhysicsOptions() #

Creates vis-network-like Barnes-Hut defaults.

Properties

public double Theta { get; set; } #

Gets or sets the quadtree approximation threshold; larger values are faster and less precise.

public double GravitationalConstant { get; set; } #

Gets or sets the negative gravitational constant used as node repulsion.

Extension Methods

public static GraphBarnesHutPhysicsOptions AvoidOverlap(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.AvoidOverlap: Gets or sets how strongly node dimensions contribute to collision avoidance, from zero to one.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                   // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { AvoidOverlap = value };    graphBarnesHutPhysicsOptions.AvoidOverlap(value);
public static GraphBarnesHutPhysicsOptions CentralGravity(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.CentralGravity: Gets or sets the attraction toward the graph center.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { CentralGravity = value };    graphBarnesHutPhysicsOptions.CentralGravity(value);
public static GraphBarnesHutPhysicsOptions Damping(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.Damping: Gets or sets how much velocity is discarded per simulation tick.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { Damping = value };    graphBarnesHutPhysicsOptions.Damping(value);
public static GraphBarnesHutPhysicsOptions GravitationalConstant(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphBarnesHutPhysicsOptions.GravitationalConstant: Gets or sets the negative gravitational constant used as node repulsion.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                            // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { GravitationalConstant = value };    graphBarnesHutPhysicsOptions.GravitationalConstant(value);
public static GraphBarnesHutPhysicsOptions SpringConstant(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.SpringConstant: Gets or sets the strength of edge springs.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { SpringConstant = value };    graphBarnesHutPhysicsOptions.SpringConstant(value);
public static GraphBarnesHutPhysicsOptions SpringLength(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphPhysicsSolverOptions.SpringLength: Gets or sets the resting length of physics-enabled edges.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                                   // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { SpringLength = value };    graphBarnesHutPhysicsOptions.SpringLength(value);
public static GraphBarnesHutPhysicsOptions Theta(GraphBarnesHutPhysicsOptions graphBarnesHutPhysicsOptions, double value) #

Sets GraphBarnesHutPhysicsOptions.Theta: Gets or sets the quadtree approximation threshold; larger values are faster and less precise.

Parameters

graphBarnesHutPhysicsOptions ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions required
The instance.
value double required
The value.

Returns

GraphBarnesHutPhysicsOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Interactivity.GraphBarnesHutPhysicsOptions { Theta = value };    graphBarnesHutPhysicsOptions.Theta(value);