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
Methods
AddNode(SceneNode)
Adds a child node. AddChildNode(SceneNode)
public bool AddNode(SceneNode node)
Parameters
nodeSceneNodeThe 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
detachChildrenbool
MoveNode(int, int)
Moves the child node order. MoveChildNode(int, int)
public void MoveNode(int fromIndex, int toIndex)
Parameters
OnCreateSceneNode()
Called when [create scene node].
protected override SceneNode OnCreateSceneNode()
Returns
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
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
itemSceneNodeThe item.
targetGroupNodeBaseThe target.