Navigation
API > API/Runtime > API/Runtime/GeometryCore
Typed interface for splines with a specific value type Provides evaluation and other type-specific functionality
| Name | TSplineInterface |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Splines/SplineInterfaces.h |
| Include Path | #include "Splines/SplineInterfaces.h" |
Syntax
template<typename VALUETYPE>
class TSplineInterface : public UE::Geometry::Spline::ISplineInterface
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSplineInterface() |
Default constructor - ensures value type name is set | Splines/SplineInterfaces.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TSplineInterface() |
Splines/SplineInterfaces.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ValueType | VALUETYPE | Splines/SplineInterfaces.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TypeName | FString | Initialize static member. | Splines/SplineInterfaces.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ValueType Evaluate
(
float Parameter |
Evaluates the spline at the given parameter value | Splines/SplineInterfaces.h | |
float FindNearest
(
const ValueType& Point, |
Finds the nearest parameter value to a point | Splines/SplineInterfaces.h | |
virtual EOutOfBoundsHandlingMode GetPostInfinityMode() |
Get the current Post-Infinity mode | Splines/SplineInterfaces.h | |
virtual EOutOfBoundsHandlingMode GetPreInfinityMode() |
Get the current Pre-Infinity mode | Splines/SplineInterfaces.h | |
virtual void SetPostInfinityMode
(
EOutOfBoundsHandlingMode InMode |
Set Post-Infinity handling mode when out of bounds | Splines/SplineInterfaces.h | |
virtual void SetPreInfinityMode
(
EOutOfBoundsHandlingMode InMode |
Set Pre-Infinity handling mode when out of bounds | Splines/SplineInterfaces.h |
Overridden from ISplineInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FSplineTypeId::IdType GetTypeId() |
Default implementation of type ID (derived classes should override) | Splines/SplineInterfaces.h | |
virtual FString GetValueTypeName() |
Splines/SplineInterfaces.h | ||
virtual bool Serialize
(
FArchive& Ar |
Serializes the spline | Splines/SplineInterfaces.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ValueType EvaluateImpl
(
float Parameter |
Implementation of evaluate with parameter handling | Splines/SplineInterfaces.h | |
float HandleOutOfBounds
(
float Parameter |
Apply out-of-bounds handling to parameter | Splines/SplineInterfaces.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void SetTypeName
(
const FString& InTypeName |
Set and get the type name for the value type | Splines/SplineInterfaces.h |