Navigation
Unreal Engine C++ API Reference > Editor > CurveEditor
Inheritance Hierarchy
- FCurveModel
- FChannelCurveModel
- FBezierChannelCurveModel
- FDoubleChannelCurveModel
- FTimeWarpChannelCurveModel
- FFloatChannelCurveModel
- FBoolChannelCurveModel
- FByteChannelCurveModel
- FIntegerChannelCurveModel
- FKeyBarCurveModel
- FConstraintChannelCurveModel
- FControlRigSpaceChannelCurveModel
- FPiecewiseCurveModel
- FRichCurveEditorModel
- FRichCurveEditorModelRaw
- FWaveTableCurveModel
References
Module | CurveEditor |
Header | /Engine/Source/Editor/CurveEditor/Public/CurveModel.h |
Include | #include "CurveModel.h" |
Syntax
class FCurveModel
Remarks
Class that models an underlying curve data structure through a generic abstraction that the curve editor understands.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TAttribute< bool > | bKeyDrawEnabled | Whether or not to draw curve's keys |
![]() |
FName | ChannelName | The original channel name, used mostly to make sure names match with BP/Scripting |
![]() |
FLinearColor | Color | This curve's display color |
![]() |
FSimpleMulticastDelegate | CurveModifiedDelegate | Multicast delegate broadcast on curve modification |
![]() |
float | DashLengthPx | When this curve is to be drawn dashed, the length of each dash (or 0.f if solid) |
![]() |
FString | IntentionName | This curve's short intention (such as Transform.X or Scale.X). |
![]() |
FText | LongDisplayName | This curve's long display name. |
![]() |
FString | LongIntentionName | This curve's long intention (such as foot_fk_l.Transform.X or foot_fk_r.Scale.X). |
![]() |
FText | ShortDisplayName | This curve's short display name. |
![]() |
ECurveEditorViewID | SupportedViews | A set of views supported by this curve |
![]() |
float | Thickness | Default thickness for this curve |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FCurveModel () |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~FCurveModel () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
TOptional< FKeyHandle > | AddKey
(
const FKeyPosition& NewKeyPosition, |
Helper function for adding a single key to this curve |
![]() |
void | AddKeys
(
TArrayView< const FKeyPosition > InPositions, |
Add keys to this curve |
![]() ![]() ![]() |
void | AllocateAxes
(
FCurveEditor* InCurveEditor, |
Allocate and/or assign axes for the this curve |
![]() ![]() ![]() |
TUniquePtr< IBufferedCurveModel > | Creates a copy of this curve, stored in a minimal buffered curve object. | |
![]() ![]() |
void | CreateKeyProxies
(
TArrayView< const FKeyHandle > InKeyHandles, |
Create key proxy objects for the specified key handles. |
![]() ![]() |
void | DrawCurve
(
const FCurveEditor& CurveEditor, |
Draw the curve for the specified curve editor by populating an array with points on the curve between which lines should be drawn |
![]() ![]() |
bool | Evaluate
(
double InTime, |
Evaluate this curve at the specified time |
![]() ![]() |
FName | ||
![]() ![]() ![]() |
FLinearColor | GetColor () |
Retrieve this curve's color |
![]() ![]() |
const void * | GetCurve () |
Access the raw pointer of the curve data |
![]() ![]() ![]() |
void | GetCurveAttributes
(
FCurveAttributes& OutAttributes |
Retrieve curve attributes for this curve |
![]() ![]() ![]() |
void | GetCurveColorObjectAndName
(
UObject** OutObject, |
Get the Object and the name to be used to store the curve model color (see UCurveEditorSettings). |
![]() ![]() ![]() |
FTransform2d | Return a per-curve transform for this model, if used by the view | |
![]() ![]() |
float | Get the dash length used for rendering this curve (0 indicates a solid line should be used) | |
![]() ![]() ![]() |
double | Retrieve an option input display offset (in seconds) to apply to all this curve's drawing | |
![]() ![]() |
FString | This is an internal name used to try to match different curves with each other. | |
![]() ![]() ![]() |
TPair< ERichCurveInterpMode, ERichCurveTangentMode > | GetInterpolationMode
(
const double& InTime, |
Get the interpolation mode to use at a specified time |
![]() ![]() ![]() |
void | GetKeyAttributes
(
TArrayView< const FKeyHandle > InKeys, |
Retrieve all key attributes that pertain to the specified input key handles |
![]() ![]() |
void | GetKeyDrawInfo
(
ECurvePointType PointType, |
Populate the specified draw info structure with data describing how to draw the specified point type |
![]() ![]() |
void | GetKeyPositions
(
TArrayView< const FKeyHandle > InKeys, |
Retrieve all key positions that pertain to the specified input key handles |
![]() ![]() ![]() |
void | GetKeys
(
const FCurveEditor& CurveEditor, |
|
![]() ![]() |
void | GetKeys
(
double MinTime, |
Retrieve all keys that lie in the specified time and value range |
![]() ![]() |
FText | Access this curve's long display name. | |
![]() ![]() |
FString | ||
![]() ![]() |
void | GetNeighboringKeys
(
const FKeyHandle InKeyHandle, |
Get neighboring keys given the key handle |
![]() ![]() |
int32 | GetNumKeys () |
Get the number of keys |
![]() ![]() ![]() |
UObject * | Get the UObject that owns this CurveModel, for example for Sequencer this would be the UMovieSceneSection | |
![]() ![]() |
T * | Get the owning object of this curve as the specified template type, or search is outer chain if it is not the specified type. | |
![]() ![]() |
FText | Access this curve's short display name. | |
![]() ![]() |
ECurveEditorViewID | Retrieve this curve's supported views | |
![]() ![]() |
float | GetThickness () |
Get this curve's visual thickness in screen space |
![]() ![]() |
void | GetTimeRange
(
double& MinTime, |
Get range of input time. |
![]() ![]() ![]() |
void | GetValueRange
(
double InMinTime, |
Get range of output value based on specified input times. |
![]() ![]() |
void | GetValueRange
(
double& MinValue, |
Get range of output values. |
![]() ![]() |
bool | Get if has changed and then reset it, this can be used for caching | |
![]() ![]() |
bool | Retrieves whether or not to disable drawing keys | |
![]() ![]() ![]() |
bool | IsReadOnly () |
Returns whether the curve model should be edited or not |
![]() ![]() ![]() |
void | MakeChildCurves
(
TArray< TUniquePtr< FCurveModel > >& OutChildCurves |
Called when this curve model is added to a curve editor in order to construct additional 'child' curves that are owned by this curve |
![]() |
void | Modify () |
Explicitly modify the curve data. Called before any change is made to the curve. |
![]() |
FSimpleMulticastDelegate & | Get a multicast delegate, fired when modifications are made to this curve | |
![]() |
void | RemoveKeys
(
TArrayView< const FKeyHandle > InKeys |
Remove all the keys with the specified key handles from this curve |
![]() |
void | SetChannelName
(
const FName& InChannelName |
|
![]() |
void | SetColor
(
const FLinearColor& InColor, |
|
![]() ![]() |
void | SetCurveAttributes
(
const FCurveAttributes& InAttributes |
Assign curve attributes for this curve |
![]() |
void | SetDashLength
(
float InDashLengthPx |
Set the dash length used for rendering this curve (0 indicates a solid line should be used) |
![]() |
void | SetIntentionName
(
const FString& InIntentionName |
Assign an intention name for this curve which is used internally when applying one curve to another in situations where multiple curves are visible. |
![]() |
void | SetIsKeyDrawEnabled
(
TAttribute< bool > bInKeyDrawEnabled |
Assign whether or not to disable drawing keys |
![]() ![]() |
void | SetKeyAttributes
(
TArrayView< const FKeyHandle > InKeys, |
Assign key attributes for the specified key handles |
![]() |
void | SetKeyAttributes
(
TArrayView< const FKeyHandle > InKeys, |
Helper function for assigning a the same attributes to a number of keys |
![]() |
void | SetKeyPositions
(
TArrayView< const FKeyHandle > InKeys, |
Assign key positions for the specified key handles |
![]() |
void | SetLongDisplayName
(
const FText& InLongDisplayName |
Assign a long display name for this curve used in contexts where additional context is useful. |
![]() |
void | SetLongIntentionName
(
const FString& InIntentionName |
|
![]() |
void | SetShortDisplayName
(
const FText& InDisplayName |
Assign a short display name for this curve |
![]() |
void | SetThickness
(
float InThickness |
Set this curve's visual thickness in screen space |