Class ChildList
List of child nodes used in SceneNode instances. In addition to normal collection operations this type keeps track of each object's Parent property when added or removed to a node.
Implements
System.Collections.Generic.IList<SceneNode>
System.Collections.Generic.ICollection<SceneNode>
System.Collections.Generic.IReadOnlyList<SceneNode>
System.Collections.Generic.IReadOnlyCollection<SceneNode>
System.Collections.Generic.IEnumerable<SceneNode>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Clear()
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.ClearItems()
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Contains(Fusee.Engine.Core.Scene.SceneNode)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.CopyTo(Fusee.Engine.Core.Scene.SceneNode[], System.Int32)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.GetEnumerator()
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.IndexOf(Fusee.Engine.Core.Scene.SceneNode)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Insert(System.Int32, Fusee.Engine.Core.Scene.SceneNode)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Remove(Fusee.Engine.Core.Scene.SceneNode)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Count
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Item[System.Int32]
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.Items
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.Generic.ICollection<Fusee.Engine.Core.Scene.SceneNode>.IsReadOnly
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.System.Collections.IList.Item[System.Int32]
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: Fusee.Engine.Core.Scene
Assembly: Fusee.Engine.Core.dll
Syntax
public class ChildList : Collection<SceneNode>, IList<SceneNode>, ICollection<SceneNode>, IReadOnlyList<SceneNode>, IReadOnlyCollection<SceneNode>, IEnumerable<SceneNode>, IList, ICollection, IEnumerable
Methods
Add(SceneNode)
Adds a SceneNode to the parent's list of children.
Declaration
public void Add(SceneNode sn)
Parameters
Type | Name | Description |
---|---|---|
SceneNode | sn | The SceneNode. |
InsertItem(Int32, SceneNode)
Inserts the item at the given index.
Declaration
protected override void InsertItem(int index, SceneNode sn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
SceneNode | sn | The scene node to insert. |
Overrides
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.InsertItem(System.Int32, Fusee.Engine.Core.Scene.SceneNode)
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Overrides
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.RemoveItem(System.Int32)
SetItem(Int32, SceneNode)
Sets the item at the given index.
Declaration
protected override void SetItem(int index, SceneNode sn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
SceneNode | sn | The scene node to add. |
Overrides
System.Collections.ObjectModel.Collection<Fusee.Engine.Core.Scene.SceneNode>.SetItem(System.Int32, Fusee.Engine.Core.Scene.SceneNode)
Events
OnAdd
Event handler for adding additional behavior to Add(). E.g. to add the parent for the element that was added to the child list.
Declaration
public event EventHandler<AddChildEventArgs> OnAdd
Event Type
Type | Description |
---|---|
System.EventHandler<AddChildEventArgs> |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable