Navigation
API > API/Editor > API/Editor/CurveEditor
References
| Module | CurveEditor |
| Header | /Engine/Source/Editor/CurveEditor/Public/CurveEditorSelection.h |
| Include | #include "CurveEditorSelection.h" |
Syntax
struct FCurveEditorSelection
Remarks
Class responsible for tracking selections of keys. Only one type of point selection is supported at a time (key, arrive tangent, or leave tangent)
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
FCurveEditorSelection
(
TWeakPtr< FCurveEditor > InWeakCurveEditor |
Constructor which takes a reference to the curve editor, which is used to find if a model is read only |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
FCurveModelID CurveID, |
Add a key handle to this selection, changing the selection type if necessary. | |
| void | Add
(
FCurveModelID CurveID, |
Add key handles to this selection, changing the selection type if necessary. | |
| void | Add
(
FCurvePointHandle InHandle |
Add a point handle to this selection, changing the selection type if necessary. | |
| void | Clear () |
Clear the selection entirely | |
| bool | Contains
(
FCurveModelID CurveID, |
Check whether the specified handle and curve ID is contained in this selection. | |
| int32 | Count () |
Count the total number of selected keys by accumulating the number of selected keys for each curve | |
| const FKeyHandleSet * | FindForCurve
(
FCurveModelID InCurveID |
Retrieve a set of selected key handles for the specified curve | |
| const TMap< FCurveModelID, FKeyHandleSet > & | GetAll () |
Retrieve all selected key handles, organized by curve ID | |
| uint32 | Retrieve this selection's serial number. Incremented whenever a change is made to the selection. | ||
| bool | IsEmpty () |
Check whether the selection is empty | |
| bool | IsSelected
(
FCurvePointHandle InHandle |
Check whether the specified handle is selected | |
| void | Remove
(
FCurvePointHandle InHandle |
Remove the specified point handle from the selection | |
| void | Remove
(
FCurveModelID InCurveID |
Remove all key handles associated with the specified curve ID from the selection | |
| void | Remove
(
FCurveModelID CurveID, |
Remove the specified key handle from the selection | |
| void | Remove
(
FCurveModelID CurveID, |
Remove the specified key handles from the selection | |
| void | Toggle
(
FCurveModelID CurveID, |
Toggle the selection of the specified key handle, changing the selection type if necessary. | |
| void | Toggle
(
FCurvePointHandle InHandle |
Toggle the selection of the specified point handle, changing the selection type if necessary. | |
| void | Toggle
(
FCurveModelID CurveID, |
Toggle the selection of the specified key handles, changing the selection type if necessary. |