| LodCollection Class |
Namespace: DigitalRune.Graphics.SceneGraph
The LodCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| Add |
Adds a LOD to the LodCollection.
| |
| Clear |
Removes all LODs from the LodCollection.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IndexOf(Single) |
Determines the index of the LOD at a specific distance in the LodCollection.
| |
| IndexOf(SceneNode) |
Determines the index of a specific LOD in the LodCollection.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Remove(Int32) |
Removes the LOD at the specified index from the LodCollection.
| |
| Remove(Single) |
Removes the LOD at a specific distance from the LodCollection.
| |
| Remove(SceneNode) |
Removes the specified LOD node from the LodCollection.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AddRangeLodEntry |
Adds the specified items to the ICollectionT.
(Defined by CollectionHelper.) | |
| DoLodEntry(ActionLodEntry) | Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.) | |
| DoLodEntry(ActionLodEntry, Int32) | Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is
enumerated.
(Defined by LinqHelper.) | |
| ForEachLodEntry(ActionLodEntry) | Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.) | |
| ForEachLodEntry(ActionLodEntry, Int32) | Overloaded.
Immediately performs the given action on each element (incorporating its index) in a
sequence.
(Defined by LinqHelper.) | |
| IndexOfLodEntry |
Returns the index of the first element in a sequence that satisfies the specified condition.
(Defined by LinqHelper.) |
| Name | Description | |
|---|---|---|
| ICollectionLodEntryAdd |
Adds an item to the ICollectionT.
| |
| ICollectionLodEntryContains |
Determines whether the ICollectionT contains a specific value.
| |
| ICollectionLodEntryCopyTo | ||
| IEnumerableLodEntryGetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| IEnumerableGetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| ICollectionLodEntryIsReadOnly |
Gets a value indicating whether the ICollectionT is read-only.
| |
| ICollectionLodEntryRemove |
Removes the first occurrence of a specific object from the ICollectionT.
|
The LodCollection is a list of scene nodes sorted by distance. Each scene node represents a level of detail (LOD).
LOD0, LOD1, ... LODn-1:
LODs can be accessed by index. The LOD with index i is called LODi. By
definition, LOD0 is the highest level of detail and LODn-1 is the lowest level of
detail.
LOD Distances:
LODs are selected based on the current camera and the distance to the camera. The LOD
distances stored in the LodCollection are view-normalized distances,
which means that distance values are corrected based on the camera's field-of-view. The
resulting LOD distances are independent of the current field-of-view. See
GetViewNormalizedDistance(Single, Matrix44F) for more information.
The camera that serves as reference for LOD distance computations needs to be stored in the render context (see property LodCameraNode).