Navigation
API > API/Editor > API/Editor/CurveEditor
A set of key handles implemented as a sorted array for transparent passing to TArrayView<> APIs. Lookup is achieved via binary search: O(log(n)).
| Name | FKeyHandleSet |
| Type | struct |
| Header File | /Engine/Source/Editor/CurveEditor/Public/CurveEditorSelection.h |
| Include Path | #include "CurveEditorSelection.h" |
Syntax
struct FKeyHandleSet
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HandleToPointType | TMap< FKeyHandle, ECurvePointType > | Map of handle to point type (point, left, or right tangent) | CurveEditorSelection.h | |
| SortedHandles | TArray< FKeyHandle, TInlineAllocator< 1 > > | Sorted array of key handles | CurveEditorSelection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
FKeyHandle Handle, |
Add a new key handle to this set | CurveEditorSelection.h | |
TArrayView< const FKeyHandle > AsArray() |
Retrieve a constant view of this set as an array | CurveEditorSelection.h | |
bool Contains
(
FKeyHandle Handle, |
Check whether the specified handle exists in this set | CurveEditorSelection.h | |
int32 Num() |
Retrieve the number of handles in this set | CurveEditorSelection.h | |
ECurvePointType PointType
(
FKeyHandle Handle |
Retrieve the point type for this handle | CurveEditorSelection.h | |
void Remove
(
FKeyHandle Handle, |
Remove a handle from this set | CurveEditorSelection.h | |
void Toggle
(
FKeyHandle Handle, |
Remove a handle from this set if it already exists, otherwise add it to the set | CurveEditorSelection.h |