UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CurveEdInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Math/Color.h"
8
11{
12public:
14 virtual int32 GetNumKeys() const { return 0; }
15
17 virtual int32 GetNumSubCurves() const { return 0; }
18
26 virtual FColor GetSubCurveButtonColor(int32 SubCurveIndex, bool bIsSubCurveHidden) const { return bIsSubCurveHidden ? FColor( 32, 0, 0) : FColor(255, 0, 0); }
27
29 virtual float GetKeyIn(int32 KeyIndex) { return 0.f; }
30
36 virtual float GetKeyOut(int32 SubIndex, int32 KeyIndex) { return 0.f; }
37
46 virtual FColor GetKeyColor(int32 SubIndex, int32 KeyIndex, const FColor& CurveColor) { return CurveColor; }
47
49 virtual float EvalSub(int32 SubIndex, float InVal) { return 0.f; }
50
55 virtual EInterpCurveMode GetKeyInterpMode(int32 KeyIndex) const { return CIM_Linear; }
56
62 virtual void GetTangents(int32 SubIndex, int32 KeyIndex, float& ArriveTangent, float& LeaveTangent) const { ArriveTangent=0.f; LeaveTangent=0.f; }
63
65 virtual void GetInRange(float& MinIn, float& MaxIn) const { MinIn=0.f; MaxIn=0.f; }
66
68 virtual void GetOutRange(float& MinOut, float& MaxOut) const { MinOut=0.f; MaxOut=0.f; }
69
74 virtual int32 CreateNewKey(float KeyIn) { return INDEX_NONE; }
75
80 virtual void DeleteKey(int32 KeyIndex) {}
81
86 virtual int32 SetKeyIn(int32 KeyIndex, float NewInVal) { return KeyIndex; }
87
93 virtual void SetKeyOut(int32 SubIndex, int32 KeyIndex, float NewOutVal) {}
94
100
101
107 virtual void SetTangents(int32 SubIndex, int32 KeyIndex, float ArriveTangent, float LeaveTangent) {}
108};
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EInterpCurveMode
Definition InterpCurvePoint.h:16
@ CIM_Linear
Definition InterpCurvePoint.h:18
Definition CurveEdInterface.h:11
virtual EInterpCurveMode GetKeyInterpMode(int32 KeyIndex) const
Definition CurveEdInterface.h:55
virtual void SetTangents(int32 SubIndex, int32 KeyIndex, float ArriveTangent, float LeaveTangent)
Definition CurveEdInterface.h:107
virtual FColor GetKeyColor(int32 SubIndex, int32 KeyIndex, const FColor &CurveColor)
Definition CurveEdInterface.h:46
virtual int32 CreateNewKey(float KeyIn)
Definition CurveEdInterface.h:74
virtual int32 GetNumKeys() const
Definition CurveEdInterface.h:14
virtual float EvalSub(int32 SubIndex, float InVal)
Definition CurveEdInterface.h:49
virtual float GetKeyOut(int32 SubIndex, int32 KeyIndex)
Definition CurveEdInterface.h:36
virtual void SetKeyInterpMode(int32 KeyIndex, EInterpCurveMode NewMode)
Definition CurveEdInterface.h:99
virtual void SetKeyOut(int32 SubIndex, int32 KeyIndex, float NewOutVal)
Definition CurveEdInterface.h:93
virtual float GetKeyIn(int32 KeyIndex)
Definition CurveEdInterface.h:29
virtual int32 GetNumSubCurves() const
Definition CurveEdInterface.h:17
virtual void GetInRange(float &MinIn, float &MaxIn) const
Definition CurveEdInterface.h:65
virtual int32 SetKeyIn(int32 KeyIndex, float NewInVal)
Definition CurveEdInterface.h:86
virtual void DeleteKey(int32 KeyIndex)
Definition CurveEdInterface.h:80
virtual void GetOutRange(float &MinOut, float &MaxOut) const
Definition CurveEdInterface.h:68
virtual void GetTangents(int32 SubIndex, int32 KeyIndex, float &ArriveTangent, float &LeaveTangent) const
Definition CurveEdInterface.h:62
virtual FColor GetSubCurveButtonColor(int32 SubCurveIndex, bool bIsSubCurveHidden) const
Definition CurveEdInterface.h:26
Definition Color.h:486