Navigation
API > API/Editor > API/Editor/DataHierarchyEditor
| Name | FHierarchySectionViewModel |
| Type | struct |
| Header File | /Engine/Source/Editor/DataHierarchyEditor/Public/DataHierarchyViewModelBase.h |
| Include Path | #include "DataHierarchyViewModelBase.h" |
Syntax
struct FHierarchySectionViewModel : public FHierarchyElementViewModel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FHierarchyElementViewModel → FHierarchySectionViewModel
- FTickableObjectBase → FTickableEditorObject → FHierarchyElementViewModel → FHierarchySectionViewModel
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FHierarchySectionViewModel
(
UHierarchySection* InItem, |
DataHierarchyViewModelBase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FHierarchySectionViewModel() |
DataHierarchyViewModelBase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SectionImage | const FSlateBrush * | DataHierarchyViewModelBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const UHierarchySection * GetSectionData() |
A custom function to retrieve data; if it's the all section, we want to return nullptr as that's what it serializes as. | DataHierarchyViewModelBase.h | |
virtual const FSlateBrush * GetSectionImageBrush() |
DataHierarchyViewModelBase.h | ||
FName GetSectionName() |
DataHierarchyViewModelBase.h | ||
FText GetSectionNameAsText() |
DataHierarchyViewModelBase.h | ||
FText GetSectionTooltip() |
DataHierarchyViewModelBase.h | ||
bool IsAllSection() |
DataHierarchyViewModelBase.h | ||
void SetSectionImage
(
const FSlateBrush* InSectionImage |
DataHierarchyViewModelBase.h | ||
void SetSectionName
(
FName InSectionName |
DataHierarchyViewModelBase.h | ||
void SetSectionNameAsText
(
const FText& Text |
DataHierarchyViewModelBase.h |
Overridden from FHierarchyElementViewModel
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString ToString() |
DataHierarchyViewModelBase.h |
Protected
Overridden from FHierarchyElementViewModel
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowEditingInDetailsPanel () |
Source items are transient, which is why we don't allow editing by default. | DataHierarchyViewModelBase.h | |
virtual FResultWithUserFeedback CanContainInternal
(
TSubclassOf< UHierarchyElement > InHierarchyElementType |
Should return true if this element can contain other elements as children. | DataHierarchyViewModelBase.h | |
virtual bool CanDeleteInternal () |
Should return true if deletable. | DataHierarchyViewModelBase.h | |
virtual FResultWithUserFeedback CanDragInternal () |
Should return true if draggable. | DataHierarchyViewModelBase.h | |
virtual FResultWithUserFeedback CanDropOnInternal
(
TSharedPtr< FHierarchyElementViewModel > DraggedElement, |
Should return true if the given drag drop operation is allowed to succeed. | DataHierarchyViewModelBase.h | |
virtual FResultWithUserFeedback CanHaveChildren() |
Technically a section does not have 'children' but for drag & drop logic it is considered as such | DataHierarchyViewModelBase.h | |
virtual bool CanRenameInternal() |
We can only rename hierarchy sections | DataHierarchyViewModelBase.h | |
virtual void FinalizeInternal () |
Optionally implement this to handle shutdown logic. | DataHierarchyViewModelBase.h | |
virtual FResultWithUserFeedback IsEditableByUser() |
Only hierarchy sections are editable | DataHierarchyViewModelBase.h | |
virtual TOptional< bool > OnDroppedOnOverride
(
TSharedPtr< FHierarchyElementViewModel > DroppedItem, |
We override the default dropped on behavior given sections don't actually contain children. | DataHierarchyViewModelBase.h | |
virtual void RenameInternal
(
FName NewName |
DataHierarchyViewModelBase.h |