Sorted |
public abstract class SortedRenderingLayer : RenderingLayer, ISortedRenderingLayer
The SortedRenderingLayer type exposes the following members.
Name | Description | |
---|---|---|
SortedRenderingLayer | Constructor |
Name | Description | |
---|---|---|
IsSortingEnabled | If true than sortable RenderLayers will be sorted. | |
IsSortOrderDirty | Gets a Boolean that specified if sort order of RenderingItems is not correct and the Sort(RenderingContext, ICamera, Boolean) method needs to be called before getting the RenderingItems. | |
Item |
Gets a RenderingItem with the specified index
(Overrides RenderingLayerItemInt32) | |
SortingType | Gets a RenderingLayerSortTypes that specifies when the RenderingLayer needs to be resorted. |
Name | Description | |
---|---|---|
Dispose |
Dispose
(Overrides RenderingLayerDispose(Boolean)) | |
DisposeSortRelatedData | DisposeSortRelatedData disposes all data that is used to store and cache sort related data. This method is called when Disposing or when IsSortingEnabled is set to false. | |
GetEnumerator |
Returns an enumerator that iterates through the collection.
(Overrides RenderingLayerGetEnumerator) | |
GetUnsortedItems | Returns a ReadOnlyCollection that is a copy of the unsorted renderingItems. | |
OnRenderingLayerSortingCompleted | OnRenderingLayerSortingCompleted | |
Sort | Sort items in this rendering layer. | |
SortSortedIndexes | Sort items in this rendering layer by setting the sortedIndexes array. |
Name | Description | |
---|---|---|
SortingCompleted | RenderingLayerSortingCompleted event is called after this RenderingLayer is sorted. It allows the code in the event handler to change the order in which objects are rendered by changing the values in the provided SortedIndexes array (note: use renderingItems.Count to get number of items because SortedIndexes.Length may be to big). |
Name | Description | |
---|---|---|
sortedIndexes | When sortedIndexes is set, it represents an array of indexes that point to a sorted collection of the RenderingItems. |