Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FInstanceIdIndexMap
- FPrimitiveInstanceDataManager
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/InstanceDataSceneProxy.h |
| Include | #include "InstanceDataSceneProxy.h" |
Syntax
class FInstanceIdIndexMap
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsValid | ||
| TArray< int32 > | IdToIndexMap | ||
| TArray< FPrimitiveInstanceId > | IndexToIdMap | Bidirectional mapping to / from ID. | |
| int32 | NumInstances | Used when the mapping is implicit (i.e., identity) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Convert an implicit identity mapping to an explicit one, by filling in the mapping arrays. | ||
| int32 | Returms the upper bound on the instance ID represented as an integer, may be larger than the number of instances but is never larger than the max that has ever been allocated. | ||
| int32 | Returns the maximum instance index (or rather the maximum valid number plus one), AKA the number of instances represented. | ||
| int32 | IdToIndex
(
FPrimitiveInstanceId InstanceId |
Translate from FPrimitiveInstanceId to Index | |
| FPrimitiveInstanceId | Translate from Index to FPrimitiveInstanceId | ||
| bool | IsIdentity () |
Returns true if the mapping is an identity mapping. | |
| bool | IsValidId
(
FPrimitiveInstanceId InstanceId |
Returns true if InstanceId is in the mapped range AND . | |
| void | Reset the mapping to an identity map of size InNumInstances. | ||
| void | ResizeExplicit
(
int32 InNumInstances, |
Make sure the mapping is explicit and add enough space to accommodate the InNumInstances & MaxInstanceId. | |
| void | SetInvalid
(
FPrimitiveInstanceId InstanceId |
Set the index mapping for the given InstanceId to INDEX_NONE. | |
| void | Update
(
FPrimitiveInstanceId InstanceId, |
Update the mapping from ID to index (and vice versa). |