Navigation
API > API/Editor > API/Editor/SequencerCore
Selection set that defines a fragment selection of a view model where each fragment is globally unique. A good example is FKeyHandle or any other monotomic counter. Selection must be associated with a view model type defined by the template parameter ModelType.
| Name | TUniqueFragmentSelectionSet |
| Type | class |
| Header File | /Engine/Source/Editor/SequencerCore/Public/MVVM/Selection/SequencerCoreSelectionTypes.h |
| Include Path | #include "MVVM/Selection/SequencerCoreSelectionTypes.h" |
Syntax
template<typename KeyType, typename ModelType>
class TUniqueFragmentSelectionSet : public UE::Sequencer::FSelectionBase
Inheritance Hierarchy
- FSelectionBase → TUniqueFragmentSelectionSet
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KeyToViewModel | TMap< KeyType, TWeakViewModelPtr< ModelType > > | Reverse mapping from item to its owning model | MVVM/Selection/SequencerCoreSelectionTypes.h | |
| SelectionSet | TSet< KeyType > | The unique selection set of fragments | MVVM/Selection/SequencerCoreSelectionTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUniqueFragmentSelectionSetIterator< KeyType > begin() |
MVVM/Selection/SequencerCoreSelectionTypes.h | ||
void Deselect
(
KeyType InKey |
Deselect an item | MVVM/Selection/SequencerCoreSelectionTypes.h | |
void Empty() |
Empty this selection | MVVM/Selection/SequencerCoreSelectionTypes.h | |
TUniqueFragmentSelectionSetIterator< KeyType > end() |
MVVM/Selection/SequencerCoreSelectionTypes.h | ||
TViewModelPtr< ModelType > GetModelForKey
(
KeyType InKey |
Retrieve the view model associated with the specified fragment selection | MVVM/Selection/SequencerCoreSelectionTypes.h | |
const TSet< KeyType > & GetSelected() |
Returns the underlying selection set (including potentially invalid items) | MVVM/Selection/SequencerCoreSelectionTypes.h | |
bool IsSelected
(
KeyType InKey |
Check whether a given item is currently selected | MVVM/Selection/SequencerCoreSelectionTypes.h | |
int32 Num() |
Returns the number of selected items (including potentially invalid items) | MVVM/Selection/SequencerCoreSelectionTypes.h | |
void RemoveByPredicate
(
Filter&& InFilter |
Remove all selected items that pass the specified filter | MVVM/Selection/SequencerCoreSelectionTypes.h | |
void ReplaceWith
(
TUniqueFragmentSelectionSet< KeyType, ModelType >&& OtherSelection |
Replace this selection set with the contents from another | MVVM/Selection/SequencerCoreSelectionTypes.h | |
void Select
(
TViewModelPtr< ModelType > InOwner, |
Select a key, optionally supplying a boolean to receieve a value indicating whether it was already selected or not | MVVM/Selection/SequencerCoreSelectionTypes.h | |
void SelectRange
(
TViewModelPtr< ModelType > InOwner, |
Selects a range of keys, optionally supplying a boolean to receieve a value indicating whether any were newly selected or not | MVVM/Selection/SequencerCoreSelectionTypes.h |