FCurveEditorTree

Complete implementation of a curve editor tree.

Windows
MacOS
Linux

References

Module

CurveEditor

Header

/Engine/Source/Editor/CurveEditor/Public/Tree/CurveEditorTree.h

Include

#include "Tree/CurveEditorTree.h"

Syntax

class FCurveEditorTree

Remarks

Complete implementation of a curve editor tree. Only really defines the hierarchy and selection states for tree items.

Variables

Name Description

Public variable

FCurveEditorTre...

 

Events

Structure containing all the events for this tree

Constructors

Name Description

Public function

FCurveEditorTree()

Functions

Name Description

Public function

void

 

AddFilter

(
    TWeakPtr< FCurveEditorTreeFilter > ...
)

Add a new filter to this tree.

Public function

FCurveEditor...

 

AddItem

(
    FCurveEditorTreeItemID ParentID
)

Add a new empty item to the tree

Public function

void

 

ClearFilters()

Clear all filters from the tree

Public function

void

 

Compact()

Compact the memory used by this tree (does not modify any meaningful state)

Public function Const

const FCurve...

 

FindFilterByType

Attempt to locate a filter by its type

Public function Const

const FCurve...

 

FindItem

(
    FCurveEditorTreeItemID ItemID
)

Retrieve an item from its ID or nullptr if the ID is not valid

Public function

FCurveEditor...

 

FindItem

(
    FCurveEditorTreeItemID ItemID
)

Retrieve an item from its ID or nullptr if the ID is not valid

Public function Const

const TMap< ...

 

GetAllItems()

Retrieve all the items stored in this tree irrespective of filter state

Public function Const

TArrayView< ...

 

GetFilters()

Direct access to all current filters (potentially including expired ones)

Public function Const

ECurveEditor...

 

GetFilterState

(
    FCurveEditorTreeItemID InTreeItemID
)

Check a specific tree item's filter state

Public function Const

const FCurve...

 

GetFilterStates()

Access the filter state for this tree.

Public function Const

const FCurve...

 

GetItem

(
    FCurveEditorTreeItemID ItemID
)

Retrieve an item from its ID, assuming it is definitely valid

Public function

FCurveEditor...

 

GetItem

(
    FCurveEditorTreeItemID ItemID
)

Retrieve an item from its ID, assuming it is definitely valid

Public function Const

const TArray...

 

GetRootItems()

Retrieve this curve editor's root items irrespective of filter state

Public function Const

const TMap< ...

 

GetSelection()

Access the selection state for this tree.

Public function Const

ECurveEditor...

 

GetSelectionState

(
    FCurveEditorTreeItemID InTreeItemID
)

Check a specific tree item's selection state

Public function

FOnCurveEdit...

 

GetToggleExpansionState()

Public function

void

 

RemoveFilter

(
    TWeakPtr< FCurveEditorTreeFilter > ...
)

Remove an existing filter from this tree.

Public function

void

 

RemoveFromSelection

(
    TArrayView< const FCurveEditorTreeI...,
    FCurveEditor* InCurveEditor
)

Removes tree items from the current selection.

Public function

void

 

RemoveItem

(
    FCurveEditorTreeItemID ItemID,
    FCurveEditor* CurveEditor
)

Remove an item and all its children from this tree, destroying any curves it may have created.

Public function

void

 

RunFilters()

Run all the filters on this tree, updating filter state for all tree items

Public function

FScopedCurve...

 

ScopedEventGuard()

Retrieve a scoped event guard that will block broadcast of events until the last guard on the stack goes out of scope Can be used to defer broadcasts in situations where many changes are made to the tree at a time.

Public function

void

 

SetDirectSelection

(
    TArray< FCurveEditorTreeItemID >&&...,
    FCurveEditor* InCurveEditor
)

Inform this tree that the specified tree item IDs have been directly selected on the UI.

Public function

void

 

SetSortPredicate

(
    FTreeItemSortPredicate InSortPredic...
)

Sets a predicate which will be used to sort tree items after they're been marked as needing sort.

Public function

void

 

SortTreeItems()

Sorts all tree items which have been marked for sorting if the sort predicate has been set.

Public function

void

 

ToggleExpansionState

(
    bool bRecursive
)

Toggle the expansion state of the selected nodes or all nodes if none selected

Typedefs

Name

Description

FTreeItemSortPredicate

Defines a predicate for sorting curve editor tree item implementations.

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