engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FCurveEdInterface类 参考

Interface that allows the CurveEditor to edit this type of object. 更多...

#include <CurveEdInterface.h>

被 UDistribution , 以及 UInterpTrack 继承.

Public 成员函数

virtual int32 CreateNewKey (float KeyIn)
 Add a new key to the curve with the specified input. 更多...
 
virtual void DeleteKey (int32 KeyIndex)
 Remove the specified key from the curve. 更多...
 
virtual float EvalSub (int32 SubIndex, float InVal)
 Evaluate a subcurve at an arbitary point. 更多...
 
virtual void GetInRange (float &MinIn, float &MaxIn) const
 Get input range of keys. 更多...
 
virtual FColor GetKeyColor (int32 SubIndex, int32 KeyIndex, const FColor &CurveColor)
 Provides the color for the given key at the given sub-curve. 更多...
 
virtual float GetKeyIn (int32 KeyIndex)
 Get the input value for the Key with the specified index. 更多...
 
virtual EInterpCurveMode GetKeyInterpMode (int32 KeyIndex) const
 Get the interpolation mode of the specified keyframe. 更多...
 
virtual float GetKeyOut (int32 SubIndex, int32 KeyIndex)
 Get the output value for the key with the specified index on the specified sub-curve. 更多...
 
virtual int32 GetNumKeys () const
 Get number of keyframes in curve.
 
virtual int32 GetNumSubCurves () const
 Get number of 'sub curves' in this Curve. 更多...
 
virtual void GetOutRange (float &MinOut, float &MaxOut) const
 Get overall range of output values.
 
virtual FColor GetSubCurveButtonColor (int32 SubCurveIndex, bool bIsSubCurveHidden) const
 Provides the color for the sub-curve button that is present on the curve tab. 更多...
 
virtual void GetTangents (int32 SubIndex, int32 KeyIndex, float &ArriveTangent, float &LeaveTangent) const
 Get the incoming and outgoing tangent for the given subcurve and key. 更多...
 
virtual int32 SetKeyIn (int32 KeyIndex, float NewInVal)
 Set the input value of the specified Key. 更多...
 
virtual void SetKeyInterpMode (int32 KeyIndex, EInterpCurveMode NewMode)
 Set the method to use for interpolating between the give keyframe and the next one. 更多...
 
virtual void SetKeyOut (int32 SubIndex, int32 KeyIndex, float NewOutVal)
 Set the output values of the specified key. 更多...
 
virtual void SetTangents (int32 SubIndex, int32 KeyIndex, float ArriveTangent, float LeaveTangent)
 Set the incoming and outgoing tangent for the given subcurve and key. 更多...
 

详细描述

Interface that allows the CurveEditor to edit this type of object.

成员函数说明

◆ CreateNewKey()

virtual int32 FCurveEdInterface::CreateNewKey ( float  KeyIn)
inlinevirtual

Add a new key to the curve with the specified input.

Its initial value is set using EvalSub at that location. Returns the index of the new key.

◆ DeleteKey()

virtual void FCurveEdInterface::DeleteKey ( int32  KeyIndex)
inlinevirtual

Remove the specified key from the curve.

KeyIndex must be within range ie >=0 and < NumKeys.

◆ EvalSub()

virtual float FCurveEdInterface::EvalSub ( int32  SubIndex,
float  InVal 
)
inlinevirtual

Evaluate a subcurve at an arbitary point.

Outside the keyframe range, curves are assumed to continue their end values.

◆ GetInRange()

virtual void FCurveEdInterface::GetInRange ( float &  MinIn,
float &  MaxIn 
) const
inlinevirtual

Get input range of keys.

Outside this region curve continues constantly the start/end values.

◆ GetKeyColor()

virtual FColor FCurveEdInterface::GetKeyColor ( int32  SubIndex,
int32  KeyIndex,
const FColor &  CurveColor 
)
inlinevirtual

Provides the color for the given key at the given sub-curve.

参数
SubIndexThe index of the sub-curve
KeyIndexThe index of the key in the sub-curve
[in]CurveColorThe color of the curve
返回
The color that is associated the given key at the given sub-curve

◆ GetKeyIn()

virtual float FCurveEdInterface::GetKeyIn ( int32  KeyIndex)
inlinevirtual

Get the input value for the Key with the specified index.

KeyIndex must be within range ie >=0 and < NumKeys.

◆ GetKeyInterpMode()

virtual EInterpCurveMode FCurveEdInterface::GetKeyInterpMode ( int32  KeyIndex) const
inlinevirtual

Get the interpolation mode of the specified keyframe.

This can be CIM_Constant, CIM_Linear or CIM_Curve. KeyIndex must be within range ie >=0 and < NumKeys.

◆ GetKeyOut()

virtual float FCurveEdInterface::GetKeyOut ( int32  SubIndex,
int32  KeyIndex 
)
inlinevirtual

Get the output value for the key with the specified index on the specified sub-curve.

SubIndex must be within range ie >=0 and < NumSubCurves. KeyIndex must be within range ie >=0 and < NumKeys.

◆ GetNumSubCurves()

virtual int32 FCurveEdInterface::GetNumSubCurves ( ) const
inlinevirtual

Get number of 'sub curves' in this Curve.

For example, a vector curve will have 3 sub-curves, for X, Y and Z.

◆ GetSubCurveButtonColor()

virtual FColor FCurveEdInterface::GetSubCurveButtonColor ( int32  SubCurveIndex,
bool  bIsSubCurveHidden 
) const
inlinevirtual

Provides the color for the sub-curve button that is present on the curve tab.

参数
SubCurveIndexThe index of the sub-curve. Cannot be negative nor greater or equal to the number of sub-curves.
bIsSubCurveHiddenIs the curve hidden?
返回
The color associated to the given sub-curve index.

◆ GetTangents()

virtual void FCurveEdInterface::GetTangents ( int32  SubIndex,
int32  KeyIndex,
float &  ArriveTangent,
float &  LeaveTangent 
) const
inlinevirtual

Get the incoming and outgoing tangent for the given subcurve and key.

SubIndex must be within range ie >=0 and < NumSubCurves. KeyIndex must be within range ie >=0 and < NumKeys.

◆ SetKeyIn()

virtual int32 FCurveEdInterface::SetKeyIn ( int32  KeyIndex,
float  NewInVal 
)
inlinevirtual

Set the input value of the specified Key.

This may change the index of the key, so the new index of the key is retured. KeyIndex must be within range ie >=0 and < NumKeys.

◆ SetKeyInterpMode()

virtual void FCurveEdInterface::SetKeyInterpMode ( int32  KeyIndex,
EInterpCurveMode  NewMode 
)
inlinevirtual

Set the method to use for interpolating between the give keyframe and the next one.

KeyIndex must be within range ie >=0 and < NumKeys.

◆ SetKeyOut()

virtual void FCurveEdInterface::SetKeyOut ( int32  SubIndex,
int32  KeyIndex,
float  NewOutVal 
)
inlinevirtual

Set the output values of the specified key.

SubIndex must be within range ie >=0 and < NumSubCurves. KeyIndex must be within range ie >=0 and < NumKeys.

◆ SetTangents()

virtual void FCurveEdInterface::SetTangents ( int32  SubIndex,
int32  KeyIndex,
float  ArriveTangent,
float  LeaveTangent 
)
inlinevirtual

Set the incoming and outgoing tangent for the given subcurve and key.

SubIndex must be within range ie >=0 and < NumSubCurves. KeyIndex must be within range ie >=0 and < NumKeys.


该类的文档由以下文件生成: