Navigation
API > API/Runtime > API/Runtime/Slate
Attribute Interpolator Base Class
| Name | TAttributeInterpolator |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Animation/AttributeInterpolator.h |
| Include Path | #include "Framework/Animation/AttributeInterpolator.h" |
Syntax
template<typename NumericType>
class TAttributeInterpolator
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAttributeInterpolator() |
Default constructor | Framework/Animation/AttributeInterpolator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TAttributeInterpolator() |
Default destructor | Framework/Animation/AttributeInterpolator.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FInterpolatorEvent | TMulticastDelegate_OneParam< void, TOptional< NumericType > > | Framework/Animation/AttributeInterpolator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Equals
(
const float& InA, |
Framework/Animation/AttributeInterpolator.h | ||
bool Equals
(
const double& InA, |
Framework/Animation/AttributeInterpolator.h | ||
const NumericType & Get() |
Returns the interpolated value | Framework/Animation/AttributeInterpolator.h | |
double GetOverAllDeltaTime() |
Returns the delta time between the start of the animation and now | Framework/Animation/AttributeInterpolator.h | |
bool IdenticalTo
(
const TAttributeInterpolator* InOther |
Compares this interpolator to another one | Framework/Animation/AttributeInterpolator.h | |
bool IsEnabled() |
Returns true if the interpolator is enabled | Framework/Animation/AttributeInterpolator.h | |
bool IsSet() |
Returns true if this interpolator's value has even been set | Framework/Animation/AttributeInterpolator.h | |
bool IsTypeOf
(
EAttributeInterpolatorType InType |
Returns true if the interpolator is of a given type | Framework/Animation/AttributeInterpolator.h | |
FInterpolatorEvent & OnInterpolationStarted() |
Returns the delegate to react to the interpolator starting to interpolate | Framework/Animation/AttributeInterpolator.h | |
FInterpolatorEvent & OnInterpolationStopped() |
Returns the delegate to react to the interpolator ending to interpolate | Framework/Animation/AttributeInterpolator.h | |
void Reset() |
Resets the interpolator | Framework/Animation/AttributeInterpolator.h | |
void SetDelayOneShot
(
float InDelay |
Sets the delay for the next shot - delays are consumed and only used once | Framework/Animation/AttributeInterpolator.h | |
void SetEnabled
(
bool InEnabled |
Enables (or disables) the interpolator | Framework/Animation/AttributeInterpolator.h | |
void SetTolerance
(
float InTolerance |
Sets the tolerance on this interpolator | Framework/Animation/AttributeInterpolator.h | |
void SetValue
(
const NumericType& InValue |
Set the internal state of the interpolator | Framework/Animation/AttributeInterpolator.h | |
void SetValueAndStop
(
const NumericType& InValue |
Set the internal state of the interpolator and disables animation | Framework/Animation/AttributeInterpolator.h | |
void Tick
(
float InDeltaTime |
Updates the interpolator | Framework/Animation/AttributeInterpolator.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Interpolate() |
Interpolates the internal value against the new value This method is expected to set the Value member | Framework/Animation/AttributeInterpolator.h | |
bool IsPlaying() |
Returns true if this interpolator is currently playing. | Framework/Animation/AttributeInterpolator.h | |
virtual bool PlayIfStopped() |
Framework/Animation/AttributeInterpolator.h | ||
virtual bool Restart() |
Restart the animation | Framework/Animation/AttributeInterpolator.h | |
virtual bool Start() |
Starts the animation and records time. | Framework/Animation/AttributeInterpolator.h | |
virtual bool Stop() |
Stops the animation and stops recording time. | Framework/Animation/AttributeInterpolator.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool Equals
(
const NumericType& InA, |
Helper function to compare to values - to allow to specialize per type as needed | Framework/Animation/AttributeInterpolator.h |