ITreeItem

Base tree item interface

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

SceneOutliner

Header

/Engine/Source/Editor/SceneOutliner/Public/ITreeItem.h

Include

#include "ITreeItem.h"

Syntax

struct ITreeItem :
    public SceneOutliner::IDropTarget,
    public TSharedFromThis< ITreeItem >

Remarks

Base tree item interface

Variables

Name Description

Protected variable

TArray< TWeakPt...

 

Children

Array of children contained underneath this item

Public variable

FlagsType

 

Flags

Flags for this item

Protected variable

TWeakPtr< ITree...

 

Parent

This item's parent, if any.

Public variable

FOnRenameReques...

 

RenameRequestEvent

Broadcasts whenever a rename is requested

Protected variable

TSharedPtr< FSh...

 

SharedData

Data that is common between all outliner items - owned by the Outliner itself

Public variable

friend

 

SSceneOutliner

Friendship required for access to various internals

Protected variable

TArray< FTreeIt...

 

SubComponentItems

Array of sub-component data contained within this item

Constructors

Name Description

Protected function

ITreeItem()

Default constructor

Destructors

Name Description

Protected function Virtual

~ITreeItem()

Functions

Name Description

Public function

void

 

AddChild

(
    FTreeItemRef Child
)

Add a child to this item

Public function Const

bool

 

CanInteract()

Check whether it should be possible to interact with this tree item

Public function Const

FTreeItemPtr

 

CreateParent()

Create this item's parent. It is valid to return nullptr if this item has no parent

Public function Const

FTreeItemPtr

 

FindParent

(
    const FTreeItemMap& ExistingItems
)

Find this item's parent in the specified map.

Public function Virtual

void

 

GenerateContextMenu

(
    UToolMenu* Menu,
    SSceneOutliner& Outliner
)

Generate a context menu for this item. Only called if only this item is selected.

Public function Const

T

 

Get

(
    const TTreeItemGetter< T >& Getter
)

Get some data from this tree item using a 'getter' visitor.

Public function Const

const TArray...

 

GetChildren()

Get this item's children, if any.

Public function Const

FString

 

GetDisplayString()

Get the raw string to display for this tree item - used for sorting

Public function Const

FTreeItemID

 

GetID()

Get the ID that represents this tree item. Used to reference this item in a map

Public function Const

FTreeItemPtr

 

GetParent()

Get this item's parent. Can be nullptr.

Public function Const

const FShare...

 

GetSharedData()

Public function Const

const TArray...

 

GetSubComponentItems()

Get this item's sub-component items, if any.

Public function Const

int32

 

GetTypeSortPriority()

Get the sort priority given to this item's type

Public function Virtual

void

 

OnExpansionChanged()

Called when this item is expanded or collapsed

Public function Const

void

 

PopulateDragDropPayload

(
    FDragDropPayload& Payload
)

Populate the specified drag/drop payload with any relevant information for this type

Public function

void

 

RemoveChild

(
    const FTreeItemRef& Child
)

Remove a child from this item

Public function Virtual

void

 

SynchronizeSubItemSelection

(
    TSharedPtr< class SOutlinerTreeView...
)

Public function Const

void

 

Visit

(
    const ITreeItemVisitor& Visitor
)

Visit this tree item

Public function

void

 

Visit

(
    const IMutableTreeItemVisitor& Vis...
)

Classes

Name

Description

Public struct

FlagsType

Flags structure

Typedefs

Name

Description

FOnRenameRequest

Delegate for hooking up an inline editable text block to be notified that a rename is requested.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss