UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::Spline::TLinearSpline< T > Class Template Reference

#include <LinearSpline.h>

+ Inheritance diagram for UE::Geometry::Spline::TLinearSpline< T >:

Public Types

using Base = TBSpline< T, 1 >
 
- Public Types inherited from UE::Geometry::Spline::TBSpline< T, 1 >
using ValueType = typename TSplineInterface< T >::ValueType
 
using FWindow = TStaticArray< const ValueType *, WindowSize >
 
- Public Types inherited from UE::Geometry::Spline::TSplineInterface< VALUETYPE >
typedef VALUETYPE ValueType
 

Public Member Functions

 DECLARE_SPLINE_TYPE_ID (TEXT("BSpline1"), *TSplineValueTypeTraits< T >::Name)
 
 TLinearSpline ()
 
virtual float GetParameter (int32 Index) const override
 
virtual bool SetParameter (int32 Index, float NewParam) override
 
- Public Member Functions inherited from UE::Geometry::Spline::TBSpline< T, 1 >
 DECLARE_SPLINE_TYPE_ID (BSplineNameSelector< DEGREE >::Name, *TSplineValueTypeTraits< T >::Name)
 
 TBSpline ()=default
 
virtual ~TBSpline () override=default
 
void Dump () const
 
virtual void Clear () override
 
virtual bool IsEqual (const ISplineInterface *OtherSpline) const override
 
virtual bool Serialize (FArchive &Ar) override
 
bool operator== (const TBSpline &Other) const
 
virtual FInterval1f GetParameterSpace () const override
 
virtual void SetClosedLoop (bool bClosed) override
 
virtual bool IsClosedLoop () const override
 
virtual TUniquePtr< ISplineInterfaceClone () const override
 
virtual int32 GetNumberOfSegments () const override
 
virtual FInterval1f GetSegmentParameterRange (int32 SegmentIndex) const override
 
virtual ValueType EvaluateImpl (float Parameter) const override
 
virtual float FindNearest (const ValueType &Point, float &OutSquaredDistance) const override
 
int32 NumKeys () const
 
const ValueTypeGetValue (int32 Idx) const
 
int32 AddValue (const ValueType &NewValue)
 
bool SetValue (int32 Idx, const ValueType &NewValue)
 
int32 InsertValue (int32 Idx, const ValueType &NewValue)
 
virtual bool RemoveValue (int32 Index)
 
virtual int32 FindIndexForParameter (float Parameter, float &OutLocalParam) const
 
const TArray< FKnot > & GetKnotVector () const
 
const TArray< FKnot > & GetPairKnots () const
 
void ResetKnotVector ()
 
int32 GetKnotMultiplicity (int32 KnotIndex) const
 
bool SetCustomKnots (const TArray< FKnot > &NewKnots)
 
virtual void Reparameterize (EParameterizationPolicy ParameterizationPolicy)
 
void SetClampedEnds (bool bInClampEnds)
 
bool IsClampedEnds () const
 
FInterval1f GetKnotRange () const
 
- Public Member Functions inherited from UE::Geometry::Spline::TSplineInterface< VALUETYPE >
 TSplineInterface ()
 
virtual ~TSplineInterface () override=default
 
ValueType Evaluate (float Parameter) const
 
virtual float FindNearest (const ValueType &Point, float &OutSquaredDistance) const =0
 
virtual FSplineTypeId::IdType GetTypeId () const override
 
virtual FString GetValueTypeName () const override
 
virtual void SetPreInfinityMode (EOutOfBoundsHandlingMode InMode)
 
virtual void SetPostInfinityMode (EOutOfBoundsHandlingMode InMode)
 
virtual EOutOfBoundsHandlingMode GetPreInfinityMode () const
 
virtual EOutOfBoundsHandlingMode GetPostInfinityMode () const
 
- Public Member Functions inherited from UE::Geometry::Spline::ISplineInterface
virtual ~ISplineInterface ()=default
 
virtual FString GetImplementationName () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from UE::Geometry::Spline::TSplineInterface< VALUETYPE >
static void SetTypeName (const FString &InTypeName)
 
- Static Public Attributes inherited from UE::Geometry::Spline::TBSpline< T, 1 >
static constexpr int32 Degree
 
static constexpr int32 WindowSize
 
- Protected Member Functions inherited from UE::Geometry::Spline::TBSpline< T, 1 >
void SetKnot (int32 KnotIdx, float NewValue)
 
bool RemoveKnot (int32 KnotIdx)
 
void SwapKnots (int32 KnotIdxA, int32 KnotIdxB)
 
bool InsertKnot (FKnot InKnot)
 
float GetNearestAvailableKnotValue (const FValidKnotSearchParams &InSearchParams) const
 
virtual int32 GetExpectedNumKnots () const
 
void GenerateUniformKnots (int32 KnotCount)
 
void GenerateChordLengthKnots (int32 KnotCount)
 
void GenerateCentripetalKnots (int32 KnotCount)
 
void ApplyClampedKnotsMultiplicity ()
 
void UpdateFlatKnotsCache () const
 
void MarkFlatKnotsCacheDirty () const
 
void PrintKnotVector () const
 
- Protected Member Functions inherited from UE::Geometry::Spline::TSplineInterface< VALUETYPE >
float HandleOutOfBounds (float Parameter) const
 
- Protected Attributes inherited from UE::Geometry::Spline::TBSpline< T, 1 >
TArray< ValueTypeValues
 
TArray< FKnotPairKnots
 
TArray< floatFlatKnots
 
bool bFlatKnotsCacheDirty
 
bool bIsClosedLoop
 
bool bClampEnds
 
- Protected Attributes inherited from UE::Geometry::Spline::TSplineInterface< VALUETYPE >
EOutOfBoundsHandlingMode PreInfinityMode = EOutOfBoundsHandlingMode::Zero
 
EOutOfBoundsHandlingMode PostInfinityMode = EOutOfBoundsHandlingMode::Zero
 

Member Typedef Documentation

◆ Base

template<typename T >
using UE::Geometry::Spline::TLinearSpline< T >::Base = TBSpline<T, 1>

Constructor & Destructor Documentation

◆ TLinearSpline()

template<typename T >
UE::Geometry::Spline::TLinearSpline< T >::TLinearSpline ( )
inline

Member Function Documentation

◆ DECLARE_SPLINE_TYPE_ID()

template<typename T >
UE::Geometry::Spline::TLinearSpline< T >::DECLARE_SPLINE_TYPE_ID ( TEXT("BSpline1")  ,
*TSplineValueTypeTraits< T >::Name   
)

◆ GetParameter()

template<typename T >
virtual float UE::Geometry::Spline::TLinearSpline< T >::GetParameter ( int32  Index) const
inlineoverridevirtual

◆ SetParameter()

template<typename T >
virtual bool UE::Geometry::Spline::TLinearSpline< T >::SetParameter ( int32  Index,
float  NewParam 
)
inlineoverridevirtual

The documentation for this class was generated from the following file: