Table of Contents

Class SceneNodeGroupModel3D

Namespace
HelixToolkit.WinUI.SharpDX
Assembly
HelixToolkit.WinUI.SharpDX.dll

Used to hold scene nodes without WPF/UWP dependencies. Used for code behind only. Avoid performance penalty from Dependency Properties.

public sealed class SceneNodeGroupModel3D : Element3D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, IVisible
Inheritance
SceneNodeGroupModel3D
Implements
IWinRTObject
Inherited Members
Extension Methods

Properties

GroupNode

public GroupNode GroupNode { get; }

Property Value

GroupNode

Methods

AddNode(SceneNode)

Adds a child node. AddChildNode(SceneNode)

public bool AddNode(SceneNode node)

Parameters

node SceneNode

The node.

Returns

bool

Success or not

Clear(bool)

Clears this group. Clear(bool). If detach = false, then developer must manage the life cycle of the cleared child nodes manually.

public void Clear(bool detachChildren = true)

Parameters

detachChildren bool

MoveNode(int, int)

Moves the child node order. MoveChildNode(int, int)

public void MoveNode(int fromIndex, int toIndex)

Parameters

fromIndex int

From index.

toIndex int

To index.

OnCreateSceneNode()

Called when [create scene node].

protected override SceneNode OnCreateSceneNode()

Returns

SceneNode

RemoveNode(SceneNode, bool)

Removes child node. RemoveChildNode(SceneNode, bool) If detach = false, then developer must manage the life cycle of the removed child node manually.

public bool RemoveNode(SceneNode node, bool detachChildren = true)

Parameters

node SceneNode

The node.

detachChildren bool

Detach children after being removed.

Returns

bool

Sucess or not

TransferNode(SceneNode, GroupNodeBase)

Transfers the node to another group. TransferChildNode(SceneNode, GroupNodeBase)

public void TransferNode(SceneNode item, GroupNodeBase target)

Parameters

item SceneNode

The item.

target GroupNodeBase

The target.