Navigation
API > API/Editor > API/Editor/SequencerCore > API/Editor/SequencerCore/MVVM > API/Editor/SequencerCore/MVVM/Selection
Inheritance Hierarchy
- FSelectionBase
- TUniqueFragmentSelectionSet
- FKeySelection
References
| Module | SequencerCore |
| Header | /Engine/Source/Editor/SequencerCore/Public/MVVM/Selection/SequencerCoreSelectionTypes.h |
| Include | #include "MVVM/Selection/SequencerCoreSelectionTypes.h" |
Syntax
template<typename KeyType, typename ModelType>
class TUniqueFragmentSelectionSet : public UE::Sequencer::FSelectionBase
Remarks
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.
Functions
| Type | Name | Description | |
|---|---|---|---|
| TUniqueFragmentSelectionSetIterator< KeyType > | begin () |
||
| void | Deselect
(
KeyType InKey |
Deselect an item | |
| void | Empty () |
Empty this selection | |
| TUniqueFragmentSelectionSetIterator< KeyType > | end () |
||
| TViewModelPtr< ModelType > | GetModelForKey
(
KeyType InKey |
Retrieve the view model associated with the specified fragment selection | |
| const TSet< KeyType > & | GetSelected () |
Returns the underlying selection set (including potentially invalid items) | |
| bool | IsSelected
(
KeyType InKey |
Check whether a given item is currently selected | |
| int32 | Num () |
Returns the number of selected items (including potentially invalid items) | |
| void | RemoveByPredicate
(
Filter&& InFilter |
Remove all selected items that pass the specified filter | |
| void | ReplaceWith
(
TUniqueFragmentSelectionSet< KeyType, ModelType >&& OtherSelection |
Replace this selection set with the contents from another | |
| void | Select
(
TViewModelPtr< ModelType > InOwner, |
Select a key, optionally supplying a boolean to receieve a value indicating whether it was already selected or not | |
| 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 |