Navigation
API > API/Editor > API/Editor/SequencerCore > API/Editor/SequencerCore/MVVM > API/Editor/SequencerCore/MVVM/ViewModels
References
| Module | SequencerCore |
| Header | /Engine/Source/Editor/SequencerCore/Public/MVVM/ViewModels/ViewModelHierarchy.h |
| Include | #include "MVVM/ViewModels/ViewModelHierarchy.h" |
Syntax
class FViewModelHierarchyOperation
Remarks
Scoped utility class for batching change notifications on a view model hierarchy This class works by keeping track of models that have been changed in some way, along with their previous sibling and parent pointers before any change was made.
With this information, when all FViewModelHierarchyOperation's have gone out of scope we can compare everything with its original pointers, and only dispatch change events in the case where they have actually changed. This enables reliable and accurate event processing in cases where large updates are made to a hierarchy with little or no meaningful change to the hierarchy.
Within any given hierarhcy of FViewModelHierarchyOperation scopes, there is guaranteed to be a maximum of one event triggered for each changed node. This is achieved by tracking which models have already been handled during the event processing.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FViewModelHierarchyOperation
(
const TSharedPtr< ViewModelType >& InAnyModel |
|||
FViewModelHierarchyOperation
(
const TSharedPtr< FSharedViewModelData >& InSharedData |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | PreHierarchicalChange
(
const TSharedPtr< FViewModel >& InChangedNode |
Called before a change is made to the specified model's parent or previous sibling |