A class specialized for interrogating Sequencer entity data without applying any state to objects. 更多...
#include <MovieSceneInterrogationLinker.h>
类 UE::MovieScene::FSystemInterrogator 继承关系图:Public 成员函数 | |
| int32 | AddInterrogation (const FInterrogationParams &Params) |
| Add a new time to interrogate this linker at, in the time-base of the imported tracks. 更多... | |
| FInterrogationChannel | AllocateChannel (FInterrogationChannel ParentChannel) |
| Allocate a new interrogation channel that can be used to uniquely identify groups of tracks that animate the same property or output. 更多... | |
| FInterrogationChannel | AllocateChannel (UObject *Object, FInterrogationChannel ParentChannel) |
| Allocate a new interrogation channel that relates to a specific object | |
| FInterrogationChannel | AllocateUnboundChannel (FInterrogationChannel ParentChannel, const FTransform &CurrentValueLocalSpace) |
| Allocate a new channel for a set of transform tracks that isn't bound to any particular object (but can still exist within a hierarchy) 更多... | |
| FMovieSceneEntityID | FindEntityFromOwner (FInterrogationKey InterrogationKey, UObject *Owner, uint32 EntityID) const |
| Find an entity given the entity's owner. 更多... | |
| UObject * | FindObjectFromChannel (FInterrogationChannel Channel) const |
| Find the object that is allocated within a given channel | |
| TArrayView< const FInterrogationParams > | GetInterrogations () const |
| Retrieve the current interrogations | |
| UMovieSceneEntitySystemLinker * | GetLinker () const |
| Access the underlying linker used for interrogation. | |
| int32 | GetNumChannels () const |
| Retrieve the number of channels allocated | |
| FInterrogationChannel | ImportLocalTransforms (USceneComponent *SceneComponent, IMovieScenePlayer *InPlayer, FMovieSceneSequenceID SequenceID) |
| Import any transform tracks that relate to the specified scene component, or it's AActor if it is the root 更多... | |
| void | ImportTrack (UMovieSceneTrack *Track, const FGuid &ObjectBindingID, FInterrogationChannel InChannel) |
| Import a track into this linker. 更多... | |
| void | ImportTrack (UMovieSceneTrack *Track, FInterrogationChannel InChannel) |
| Import a track into this linker. 更多... | |
| void | ImportTracks (TArrayView< UMovieSceneTrack *const > Tracks, const FGuid &ObjectBindingID, FInterrogationChannel InChannel) |
| Import multiple tracks into this linker. 更多... | |
| FInterrogationChannel | ImportTransformHierarchy (USceneComponent *SceneComponent, IMovieScenePlayer *InPlayer, FMovieSceneSequenceID SequenceID) |
| Import the entire transform hierarchy for the specified component, including all attached parents and tracks relating to them. 更多... | |
| void | QueryLocalSpaceTransforms (const TBitArray<> &ChannelsToQuery, TSparseArray< TArray< FIntermediate3DTransform > > &OutTransformsByChannel) |
| Query a specific set of channels for their local space transforms as defined by set bits within ChannelsToQuery 更多... | |
| void | QueryLocalSpaceTransforms (FInterrogationChannel InChannel, TArray< FIntermediate3DTransform > &OutTransforms) |
| Query local space transforms 更多... | |
| void | QueryLocalSpaceTransforms (TSparseArray< TArray< FIntermediate3DTransform > > &OutTransformsByChannel) |
| Query all local space transforms, even including channels that do not have any variable track data 更多... | |
| void | QueryLocalSpaceTransforms (USceneComponent *SceneComponent, TArray< FIntermediate3DTransform > &OutTransforms) |
| Query local space transforms 更多... | |
| void | QueryWorldSpaceTransforms (const TBitArray<> &ChannelsToQuery, TSparseArray< TArray< FTransform > > &OutTransformsByChannel) |
| Query a specific set of channels for their world space transforms as defined by set bits within ChannelsToQuery 更多... | |
| void | QueryWorldSpaceTransforms (FInterrogationChannel InChannel, TArray< FTransform > &OutTransforms) |
| Query world space transforms for a channel 更多... | |
| void | QueryWorldSpaceTransforms (TSparseArray< TArray< FTransform > > &OutTransformsByChannel) |
| Query all world space transforms, even including channels that do not have any variable track data 更多... | |
| void | QueryWorldSpaceTransforms (USceneComponent *SceneComponent, TArray< FTransform > &OutTransforms) |
| Query world space transforms for a component 更多... | |
| void | Reset () |
| Reset this linker back to its original state | |
| void | TrackImportedEntities (bool bInTrackImportedEntities) |
| Indicate that consumers of this class require a reverse-lookup table for imported entities to be maintained such that the various FindEntity functions can be called. 更多... | |
| void | Update () |
| Flush this interrogator by running all the systems relevant to the current data and populating the interrogation outputs. | |
Protected 属性 | |
| FMovieSceneEvaluationFieldEntitySet | EntitiesScratch |
| Scratch buffer used for generating entities for interrogation times | |
| FMovieSceneEntityComponentField | EntityComponentField |
| Entity component field containing all the entity owners relevant at specific times | |
| TUniquePtr< FSystemInterrogatorEntityTracker > | EntityTracker |
| Tracker class that is used for keeping track of imported entities | |
| TBitArray | ImportedChannelBits |
| BitArray containing set bits for any channel that has data associated with it. 更多... | |
| TArray< FInterrogationParams > | Interrogations |
| An array of interrogation times | |
| UMovieSceneEntitySystemLinker * | Linker |
| The linker we own | |
| TMap< UObject *, FInterrogationChannel > | ObjectToChannel |
| Map from an object to its interrogation channel | |
| TSortedMap< FInterrogationChannel, FInterrogationChannelInfo > | SparseChannelInfo |
| Array of information pertaining to a given channel | |
A class specialized for interrogating Sequencer entity data without applying any state to objects.
Currently only tracks within the same time-base are supported. Will only link systems that are not excluded from EEntitySystemContext::Interrogation. Multiple different outputs can be interrogated simultaneously by Importing tracks onto separate channels allocated through AllocateChannel.
Systems may implement their own interrogation logic that can be run after updates to allow third-party interrogation behavior for specific channels or time.
Example usage: Interrogator.ImportTrack(MyTrack, FInterrogationChannel::Default());
for (int32 FrameNumber = 0; FrameNumber < 100; ++FrameNumber) Interrogator.InterrogateTime(FrameNumber);
Interrogator.Update();
UMyTrackSystem* MySystem = Interrogator.GetLinker()->FindSystem<UMyTrackSystem>(); if (MySystem) { TArray<DataType> OutData; MySystem->Interrogate(FInterogationKey::Default(), OutData); }
| int32 UE::MovieScene::FSystemInterrogator::AddInterrogation | ( | const FInterrogationParams & | Params | ) |
Add a new time to interrogate this linker at, in the time-base of the imported tracks.
| Params | The desired time to interrogate at |
| FInterrogationChannel UE::MovieScene::FSystemInterrogator::AllocateChannel | ( | FInterrogationChannel | ParentChannel | ) |
Allocate a new interrogation channel that can be used to uniquely identify groups of tracks that animate the same property or output.
| ParentChannel | The channel that should be considered this channel's parent, or FInterrogationChannel::Invalid if there is none |
| FInterrogationChannel UE::MovieScene::FSystemInterrogator::AllocateUnboundChannel | ( | FInterrogationChannel | ParentChannel, |
| const FTransform & | CurrentValueLocalSpace | ||
| ) |
Allocate a new channel for a set of transform tracks that isn't bound to any particular object (but can still exist within a hierarchy)
| ParentChannel | The channel that should be considered this channel's parent, or FInterrogationChannel::Invalid if there is none |
| CurrentValue | A value to use if this channel has now animated data after the interrogation |
| FMovieSceneEntityID UE::MovieScene::FSystemInterrogator::FindEntityFromOwner | ( | FInterrogationKey | InterrogationKey, |
| UObject * | Owner, | ||
| uint32 | EntityID | ||
| ) | const |
Find an entity given the entity's owner.
| FInterrogationChannel UE::MovieScene::FSystemInterrogator::ImportLocalTransforms | ( | USceneComponent * | SceneComponent, |
| IMovieScenePlayer * | InPlayer, | ||
| FMovieSceneSequenceID | SequenceID | ||
| ) |
Import any transform tracks that relate to the specified scene component, or it's AActor if it is the root
| SceneComponent | The scene component to import. A new channel will be allocated for this if one does not already exist. |
| InPlayer | The player interface to use for looking up object binding IDs pertaining to scene components or actors |
| SequenceID | The current sequence ID for the interrogation |
| void UE::MovieScene::FSystemInterrogator::ImportTrack | ( | UMovieSceneTrack * | Track, |
| const FGuid & | ObjectBindingID, | ||
| FInterrogationChannel | InChannel | ||
| ) |
Import a track into this linker.
This will add the track to the linker's evaluation field and cause entities to be created for it at each interrogation channel (if it is relevant at such times) Must be called before InterrogateTime() and Update().
| Track | The track to import |
| ObjectBindingID | The binding ID for the object binding that this track resides within |
| InChannel | The channel to import this track onto. FInterrogationChannel::Default() can be used if this interrogator is only being used for a single output. |
| void UE::MovieScene::FSystemInterrogator::ImportTrack | ( | UMovieSceneTrack * | Track, |
| FInterrogationChannel | InChannel | ||
| ) |
Import a track into this linker.
This will add the track to the linker's evaluation field and cause entities to be created for it at each interrogation channel (if it is relevant at such times) Must be called before InterrogateTime() and Update().
| Track | The track to import |
| InChannel | The channel to import this track onto. FInterrogationChannel::Default() can be used if this interrogator is only being used for a single output. |
|
inline |
Import multiple tracks into this linker.
See ImporTrack above.
| FInterrogationChannel UE::MovieScene::FSystemInterrogator::ImportTransformHierarchy | ( | USceneComponent * | SceneComponent, |
| IMovieScenePlayer * | InPlayer, | ||
| FMovieSceneSequenceID | SequenceID | ||
| ) |
Import the entire transform hierarchy for the specified component, including all attached parents and tracks relating to them.
| SceneComponent | The scene component to import. A new channel will be allocated for this if one does not already exist. |
| InPlayer | The player interface to use for looking up object binding IDs pertaining to scene components or actors |
| SequenceID | The current sequence ID for the interrogation |
| void UE::MovieScene::FSystemInterrogator::QueryLocalSpaceTransforms | ( | const TBitArray<> & | ChannelsToQuery, |
| TSparseArray< TArray< FIntermediate3DTransform > > & | OutTransformsByChannel | ||
| ) |
Query a specific set of channels for their local space transforms as defined by set bits within ChannelsToQuery
| ChannelsToQuery | Bit array containing set bits for each channel to query |
| OutTransformsByChannel | Sparse array to receive transforms allocated by their Channel index |
| void UE::MovieScene::FSystemInterrogator::QueryLocalSpaceTransforms | ( | FInterrogationChannel | InChannel, |
| TArray< FIntermediate3DTransform > & | OutTransforms | ||
| ) |
Query local space transforms
| InChannel | The channel to query |
| OutTransforms | Array to output transforms into, one per Interrogation |
| void UE::MovieScene::FSystemInterrogator::QueryLocalSpaceTransforms | ( | TSparseArray< TArray< FIntermediate3DTransform > > & | OutTransformsByChannel | ) |
Query all local space transforms, even including channels that do not have any variable track data
| OutTransformsByChannel | Sparse array to receive transforms allocated by their Channel index |
| void UE::MovieScene::FSystemInterrogator::QueryLocalSpaceTransforms | ( | USceneComponent * | SceneComponent, |
| TArray< FIntermediate3DTransform > & | OutTransforms | ||
| ) |
Query local space transforms
| SceneComponent | The scene component to query |
| OutTransforms | Array to output transforms into, one per Interrogation |
| void UE::MovieScene::FSystemInterrogator::QueryWorldSpaceTransforms | ( | const TBitArray<> & | ChannelsToQuery, |
| TSparseArray< TArray< FTransform > > & | OutTransformsByChannel | ||
| ) |
Query a specific set of channels for their world space transforms as defined by set bits within ChannelsToQuery
| ChannelsToQuery | Bit array containing set bits for each channel to query |
| OutTransformsByChannel | Sparse array to receive transforms allocated by their Channel index |
| void UE::MovieScene::FSystemInterrogator::QueryWorldSpaceTransforms | ( | FInterrogationChannel | InChannel, |
| TArray< FTransform > & | OutTransforms | ||
| ) |
Query world space transforms for a channel
| InChannel | The channel to query |
| OutTransforms | Array to output transforms into, one per Interrogation |
| void UE::MovieScene::FSystemInterrogator::QueryWorldSpaceTransforms | ( | TSparseArray< TArray< FTransform > > & | OutTransformsByChannel | ) |
Query all world space transforms, even including channels that do not have any variable track data
| OutTransformsByChannel | Sparse array to receive transforms allocated by their Channel index |
| void UE::MovieScene::FSystemInterrogator::QueryWorldSpaceTransforms | ( | USceneComponent * | SceneComponent, |
| TArray< FTransform > & | OutTransforms | ||
| ) |
Query world space transforms for a component
| SceneComponent | The scene component to query |
| OutTransforms | Array to output transforms into, one per Interrogation |
| void UE::MovieScene::FSystemInterrogator::TrackImportedEntities | ( | bool | bInTrackImportedEntities | ) |
Indicate that consumers of this class require a reverse-lookup table for imported entities to be maintained such that the various FindEntity functions can be called.
(Not enabled by default due to performance cost with high interrogation counts)
|
protected |
BitArray containing set bits for any channel that has data associated with it.
The number of bits (0 or 1) in this array defines how many channels are allocated