Navigation
API > API/Plugins > API/Plugins/NiagaraEditor > API/Plugins/NiagaraEditor/ViewModels > API/Plugins/NiagaraEditor/ViewModels/HierarchyEditor
Inheritance Hierarchy
- TSharedFromThis
- FTickableEditorObject
- FNiagaraHierarchyItemViewModelBase
- FNiagaraHierarchyCategoryViewModel
- FNiagaraHierarchySummaryCategoryViewModel
- FNiagaraHierarchyItemViewModel
- FNiagaraAssignmentInputViewModel
- FNiagaraFunctionViewModel
- FNiagaraHierarchyEmitterPropertiesViewModel
- FNiagaraHierarchyEventHandlerPropertiesViewModel
- FNiagaraHierarchyEventHandlerViewModel
- FNiagaraHierarchyPropertyViewModel
- FNiagaraHierarchyRendererViewModel
- FNiagaraHierarchySimStagePropertiesViewModel
- FNiagaraHierarchySimStageViewModel
- FNiagaraHierarchyUserParameterViewModel
- FNiagaraModuleInputViewModel
- FNiagaraHierarchyRootViewModel
- FNiagaraHierarchySectionViewModel
References
| Module | NiagaraEditor |
| Header | /Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/ViewModels/HierarchyEditor/NiagaraHierarchyViewModelBase.h |
| Include | #include "ViewModels/HierarchyEditor/NiagaraHierarchyViewModelBase.h" |
Syntax
struct FNiagaraHierarchyItemViewModelBase :
public TSharedFromThis< FNiagaraHierarchyItemViewModelBase > ,
public FTickableEditorObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsForHierarchy | ||
| bool | bRenamePending | ||
| TArray< FOnFilterChild > | ChildFilters | ||
| TArray< TSharedPtr< FNiagaraHierarchyItemViewModelBase > > | Children | ||
| TArray< TSharedPtr< FNiagaraHierarchyItemViewModelBase > > | FilteredChildren | ||
| TWeakObjectPtr< UNiagaraHierarchyViewModelBase > | HierarchyViewModel | ||
| UNiagaraHierarchyItemBase *const | ItemBase | ||
| FOnChildRequestedDeletion | OnChildRequestedDeletionDelegate | ||
| FSimpleDelegate | OnRequestRenameDelegate | ||
| FOnSynced | OnSyncedDelegate | ||
| TWeakPtr< FNiagaraHierarchyItemViewModelBase > | Parent | Parent should be valid for all instances of this struct except for root objects |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNiagaraHierarchyItemViewModelBase
(
UNiagaraHierarchyItemBase* InItemBase, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddChild
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > Item |
||
| UNiagaraHierarchyItemBase * | AddChild
(
TSubclassOf< UNiagaraHierarchyItemBase > NewChildClass, |
||
| void | AddChildFilter
(
FOnFilterChild InFilterChild |
||
| TSharedPtr< FNiagaraHierarchyItemViewModelBase > | AddNewItem
(
TSubclassOf< UNiagaraHierarchyItemBase > NewItemClass |
||
| bool | CanDelete () |
Returns true if deletable | |
| bool | Should return true if deletable. | ||
| FCanPerformActionResults | CanDrag () |
Should return true if an item should be draggable. | |
| FCanPerformActionResults | Should return true if draggable. | ||
| FCanPerformActionResults | CanDropOn
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > DraggedItem, |
Returns true if the given item can be dropped on the given target area. | |
| FCanPerformActionResults | CanDropOnInternal
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase >, |
Should return true if the given drag drop operation is allowed to succeed. | |
| bool | Needs to be true in order to allow drag & drop operations to parent items to this item | ||
| bool | CanRename () |
Returns true if renamable | |
| bool | Should return true if renamable | ||
| TSharedRef< class FNiagaraHierarchyDragDropOp > | Used to create customized drag drop ops. | ||
| void | Delete () |
Deleting will ask the parent to delete its child | |
| void | DeleteChild
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > Child |
||
| bool | DoesExternalDataStillExist
(
const UNiagaraHierarchyDataRefreshContext* Context |
This function determines whether a hierarchy item that represents that external data should be maintained during data refresh Needs to be implemented if RepresentsExternalData return true. | |
| TSharedRef< FNiagaraHierarchyItemViewModelBase > | DuplicateToThis
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > ItemToDuplicate, |
||
| int32 | FindIndexOfChild
(
UNiagaraHierarchyItemBase* Child |
||
| int32 | FindIndexOfDataChild
(
UNiagaraHierarchyItemBase* Child |
||
| int32 | |||
| TSharedPtr< FNiagaraHierarchyItemViewModelBase > | FindViewModelForChild
(
FNiagaraHierarchyIdentity ChildIdentity, |
||
| TSharedPtr< FNiagaraHierarchyItemViewModelBase > | FindViewModelForChild
(
UNiagaraHierarchyItemBase* Child, |
||
| const TArray< TSharedPtr< FNiagaraHierarchyItemViewModelBase > > & | GetChildren () |
||
| TArray< TSharedPtr< FNiagaraHierarchyItemViewModelBase > > & | |||
| void | GetChildrenViewModelsForType
(
TArray< TSharedPtr< ViewModelClass > >& OutChildren, |
||
| void | GetChildrenViewModelsForType
(
TArray< TSharedPtr< ViewModelChildClass > >& OutChildren, |
||
| const T * | GetData () |
||
| const UNiagaraHierarchyItemBase * | GetData () |
||
| UObject * | The UObject we display in the details panel when this item is selected. | ||
| UNiagaraHierarchyItemBase * | |||
| T * | |||
| const TArray< TSharedPtr< FNiagaraHierarchyItemViewModelBase > > & | |||
| int32 | Returns the hierarchy depth via number of parents above. | ||
| TWeakObjectPtr< UNiagaraHierarchyViewModelBase > | |||
| FSimpleDelegate & | |||
| FOnSynced & | GetOnSynced () |
||
| TWeakPtr< FNiagaraHierarchyItemViewModelBase > | GetParent () |
||
| TArray< FString > | |||
| const UNiagaraHierarchySection * | GetSection () |
Determines the section this item belongs to. | |
| const UNiagaraHierarchySection * | Can be overridden to support custom sections. | ||
| TStatId | GetStatId () |
||
| bool | HasParent
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > ParentCandidate, |
||
| void | Initialize () |
Can be implemented for additional logic that the constructor isn't valid for. | |
| FCanPerformActionResults | Should return true if properties are supposed to be editable & needs to be true if typical operations should work on it (renaming, dragging, deleting etc.) | ||
| bool | |||
| TOptional< EItemDropZone > | OnCanRowAcceptDrop
(
const FDragDropEvent& DragDropEvent, |
Returns a set result if the item can accept a drop either above/onto/below the item. | |
| FOnChildRequestedDeletion & | |||
| FReply | OnDragDetected
(
const FGeometry& Geometry, |
||
| void | OnDroppedOn
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > DroppedItem, |
Gets executed when an item was dropped on this. | |
| void | OnDroppedOnInternal
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase >, |
Override this to handle drop-on logic. | |
| FReply | OnDroppedOnRow
(
const FDragDropEvent& DragDropEvent, |
||
| void | OnRowDragLeave
(
const FDragDropEvent& DragDropEvent |
||
| void | PopulateDynamicContextMenuSection
(
FToolMenuSection& DynamicSection |
Override this to register dynamic context menu entries when right clicking a hierarchy item | |
| void | |||
| void | |||
| void | RenameInternal
(
FName NewName |
||
| TSharedRef< FNiagaraHierarchyItemViewModelBase > | ReparentToThis
(
TSharedPtr< FNiagaraHierarchyItemViewModelBase > ItemToMove, |
||
| bool | For data cleanup that represents external data, this needs to return true in order for live cleanup to work. | ||
| void | |||
| void | |||
| void | |||
| void | Tick
(
float DeltaTime |
||
| FString | ToString () |
||
| FText |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCanPerformActionResults |
Typedefs
| Name | Description |
|---|---|
| FOnChildRequestedDeletion | |
| FOnFilterChild | |
| FOnSynced |