ISceneOutlinerTreeItem

Base tree item interface

Inheritance Hierarchy

References

Module

SceneOutliner

Header

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

Include

#include "ISceneOutlinerTreeItem.h"

Syntax

struct ISceneOutlinerTreeItem : public TSharedFromThis< ISceneOutlinerTreeItem >

Remarks

Base tree item interface

Variables

Name Description

Protected variable

TSet< TWeakPtr<...

 

Children

Array of children contained underneath this item

Public variable

FlagsType

 

Flags

Flags for this item

Protected variable

TWeakPtr< IScen...

 

Parent

This item's parent, if any.

Public variable

FOnRenameReques...

 

RenameRequestEvent

Broadcasts whenever a rename is requested

Public variable

friend

 

SSceneOutliner

Friendship required for access to various internals

Protected variable

FSceneOutlinerT...

 

TreeType

Tree item type identifier

Public variable

TWeakPtr< IScen...

 

WeakSceneOutliner

Weak Outliner pointer

Constructors

Name Description

Protected function

ISceneOutlinerTreeItem

(
    FSceneOutlinerTreeItemType InType
)

Default constructor

Destructors

Name Description

Protected function Virtual

~ISceneOutlinerTreeItem()

Functions

Name Description

Public function

void

 

AddChild

(
    FSceneOutlinerTreeItemRef 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

T *

 

CastTo()

Attempt to cast this item to another type if it is of that type. Returns nullptr if it fails

Public function Const

const T *...

 

CastTo()

Attempt to cast this item to another type if it is of that type. Returns nullptr if it fails

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 Virtual

TSharedRef< ...

 

GenerateLabelWidget

(
    ISceneOutliner& Outliner,
    const STableRow< FSceneOutlinerTree...
)

Generate the label widget for this item

Public function Const

const TSet< ...

 

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

FSceneOutlin...

 

GetID()

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

Public function Const

FSceneOutlin...

 

GetParent()

Get this item's parent. Can be nullptr.

Public function Virtual Const

bool

 

GetPinnedState()

Query the pinned staet of this item. Only called if the item has its own pinned state info

Public function Virtual Const

FFolder::FRo...

 

GetRootObject()

Get the optional context object root of a tree item.

Public function Virtual Const

bool

 

GetVisibility()

Query this items visibility state. Only called if the item type has visibility info

Public function Virtual Const

bool

 

HasPinnedStateInfo()

Returns true if this item can set its own pinned state

Public function Virtual Const

bool

 

HasVisibilityInfo()

Returns true if this item can set its own visibility

Public function Const

bool

 

IsA()

Returns true if this item is of the specified type

Public function Const

bool

 

IsValid()

Returns true if the data the item references is valid

Public function Virtual

void

 

OnExpansionChanged()

Called when this item is expanded or collapsed

Public function Virtual

void

 

OnLabelChanged()

Called when this item's label has changed

Public function Virtual

void

 

OnVisibilityChanged

(
    const bool bNewVisibility
)

Called when this items visibility changed

Public function

void

 

RemoveChild

(
    const FSceneOutlinerTreeItemRef& C...
)

Remove a child from this item

Public function Virtual Const

bool

 

ShouldShowPinnedState()

Returns true if this item should show pinned state

Public function Virtual Const

bool

 

ShouldShowVisibilityState()

Returns true if this item should show its visibility state

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.

Constants

Name

Description

Type

Static type identifier for the base class tree item

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