Navigation
API > API/Editor > API/Editor/SequencerCore > API/Editor/SequencerCore/MVVM > API/Editor/SequencerCore/MVVM/ViewModels
Inheritance Hierarchy
- ICastable
- TSharedFromThis
- FDynamicExtensionContainer
- FViewModel
- FCategoryModel
- FChannelGroupModel
- FChannelModel
- FEditorViewModel
- FSequencerEditorViewModel
- FLayerBarModel
- FOutlinerSpacer
- FOutlinerViewModel
- FSequencerOutlinerViewModel
- FSectionModel
- FSequenceModel
- FTrackAreaViewModel
- FSequencerTrackAreaViewModel
References
Module | SequencerCore |
Header | /Engine/Source/Editor/SequencerCore/Public/MVVM/ViewModels/ViewModel.h |
Include | #include "MVVM/ViewModels/ViewModel.h" |
Syntax
class FViewModel :
public UE::Sequencer::ICastable,
public TSharedFromThis< FViewModel >,
public UE::Sequencer::FDynamicExtensionContainer
Remarks
Base class for a sequencer data model. This might wrap an underlying UObject, or be a purely logical construct for the sequencer UI.
WARNING: most of the casting and hierarchy related methods are not safe to call from a sub-class' constructor because they rely on shared-pointers to be available for `this_.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FAutoRegisterTypeTable | AutoRegisterTypeTable | |
![]() |
static::UE::Sequencer::TAutoRegisterViewModelTypeID< FViewModel > | ID |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FViewModel () |
Builds a new data model | |
![]() |
FViewModel
(
const FViewModel& |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~FViewModel () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
T & | AddDynamicExtension
(
const TViewModelTypeID< T >& TypeID, |
Adds a dynamic extension to this data model |
![]() |
T & | AddDynamicExtension
(
InArgTypes&&... Args |
Adds a dynamic extension to this data model |
![]() ![]() |
TViewModelPtr< T > | CastParent () |
Gets the parent data model |
![]() |
TViewModelPtr< T > | Casts this data model to an extension, or to a child class implementation | |
![]() ![]() |
TViewModelPtr< const T > | Casts this data model to an extension, or to a child class implementation | |
![]() |
TSharedPtr< T > | Casts this data model to an extension, or to a child class implementation | |
![]() ![]() |
TSharedPtr< const T > | Casts this data model to an extension, or to a child class implementation | |
![]() |
void | Unlinks the head of the children list | |
![]() ![]() |
TViewModelPtr< T > | FindAncestorOfType
(
bool bIncludeThis |
Finds the first ancestor view model that implements the given type. |
![]() ![]() |
FViewModelPtr | FindAncestorOfType
(
FViewModelTypeID Type, |
Finds a parent data model of a given type among the ancestry of this data model. |
![]() ![]() |
FViewModelPtr | FindAncestorOfTypes
(
TArrayView< const FViewModelTypeID > Types, |
Finds a parent data model that supports all the given interface types among the ancestry of this data model. |
![]() |
TOptional< FViewModelChildren > | FindChildList
(
EViewModelListType InType |
Retrieve the first child list that matches the specified type (if any) |
![]() ![]() |
FParentModelIterator | GetAncestors
(
bool bIncludeThis |
Iterates over the ancestry of this data model. |
![]() ![]() |
TParentModelIterator< T > | GetAncestorsOfType
(
bool bIncludeThis |
Iterates over all ancestors of a given time along the ancestry of this data model. |
![]() |
FViewModelChildren | GetChildList
(
EViewModelListType InType |
Retrieve the first child list that matches the specified type. Asserts on failure. |
![]() ![]() |
FViewModelListIterator | GetChildren
(
EViewModelListType InFilter |
Gets an iterator for the data model's default children list |
![]() |
FViewModelChildren | GetChildrenForList
(
FViewModelListHead* ListHead |
Retrieve the children for the specified child list head |
![]() ![]() |
TViewModelListIterator< T > | GetChildrenOfType
(
EViewModelListType InFilter |
Gets children of a given type from the view-model's children lists, or the specified list |
![]() ![]() |
FParentFirstChildIterator | GetDescendants
(
bool bIncludeThis, |
Gets all children and their descendants in the hierarchy below this data model. |
![]() ![]() |
void | GetDescendantsOfType
(
FViewModelTypeID Type, |
Gets all children and descendants of a given type in the hierarchy below this data model. |
![]() ![]() |
TParentFirstChildIterator< T > | GetDescendantsOfType
(
bool bIncludeThis, |
Gets all children and descendants of a given type in the hierarchy below this data model. |
![]() ![]() |
int32 | Gets the hierarchical depth of this data model, i.e. the number of levels to the top-most parent. | |
![]() ![]() |
TSharedPtr< FViewModel > | Gets the next sibling of this data model in the children list it belongs to | |
![]() ![]() |
FViewModelPtr | GetParent () |
Gets the parent data model |
![]() ![]() |
TSharedPtr< FViewModel > | Gets the next sibling of this data model in the children list it belongs to | |
![]() ![]() |
FViewModelPtr | GetRoot () |
Returns the root model of the hierarchy, i.e. the parent model that has no parent |
![]() ![]() |
TSharedPtr< FSharedViewModelData > | ||
![]() ![]() |
bool | HasChildren () |
Returns whether this model has any children in any of its child lists |
![]() ![]() |
bool | ||
![]() |
void | RegisterChildList
(
FViewModelListHead* InChildren |
Chain a new children list to the existing children lists |
![]() ![]() |
void | ||
![]() |
void | Remove this model from its parent | |
![]() |
void | SetSharedData
(
TSharedPtr< FSharedViewModelData > InSharedData |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FViewModel & | operator=
(
const FViewModel& |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ESetParentResult |
Typedefs
Name | Description |
---|---|
Implements |