UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::Spline::FSplineTypeRegistry Class Reference

#include <SplineTypeRegistry.h>

Public Types

using TypeId = FSplineTypeId::IdType
 
using FactoryFunction = TFunction< TUniquePtr< ISplineInterface >()>
 

Static Public Member Functions

static bool RegisterType (TypeId TypeId, const FString &ImplName, const FString &ValueTypeName, FactoryFunction Factory)
 
static TUniquePtr< ISplineInterfaceCreateSpline (TypeId TypeId)
 
static TUniquePtr< ISplineInterfaceCreateSpline (const FString &ImplName, const FString &ValueTypeName)
 
static bool GetTypeNames (TypeId TypeId, FString &OutImplName, FString &OutValueTypeName)
 
static TypeId GetTypeId (const FString &ImplName, const FString &ValueTypeName)
 

Detailed Description

Registry for spline types Handles registration, lookup, and creation of spline implementations

Member Typedef Documentation

◆ FactoryFunction

Factory function type for creating spline instances

◆ TypeId

Member Function Documentation

◆ CreateSpline() [1/2]

static TUniquePtr< ISplineInterface > UE::Geometry::Spline::FSplineTypeRegistry::CreateSpline ( const FString &  ImplName,
const FString &  ValueTypeName 
)
inlinestatic

Creates a spline instance by name pair

Parameters
ImplNameImplementation name
ValueTypeNameValue type name
Returns
A new spline instance or nullptr if not found

◆ CreateSpline() [2/2]

static TUniquePtr< ISplineInterface > UE::Geometry::Spline::FSplineTypeRegistry::CreateSpline ( TypeId  TypeId)
inlinestatic

Creates a spline instance from a type ID

Parameters
TypeIdThe type ID to create
Returns
A new spline instance or nullptr if not found

◆ GetTypeId()

static TypeId UE::Geometry::Spline::FSplineTypeRegistry::GetTypeId ( const FString &  ImplName,
const FString &  ValueTypeName 
)
inlinestatic

Gets the type ID for a name pair

Parameters
ImplNameImplementation name
ValueTypeNameValue type name
Returns
The type ID or 0 if not found

◆ GetTypeNames()

static bool UE::Geometry::Spline::FSplineTypeRegistry::GetTypeNames ( TypeId  TypeId,
FString &  OutImplName,
FString &  OutValueTypeName 
)
inlinestatic

Gets the names associated with a type ID

Parameters
TypeIdThe type ID to look up
OutImplName[out] Implementation name
OutValueTypeName[out] Value type name
Returns
True if the type ID was found

◆ RegisterType()

static bool UE::Geometry::Spline::FSplineTypeRegistry::RegisterType ( TypeId  TypeId,
const FString &  ImplName,
const FString &  ValueTypeName,
FactoryFunction  Factory 
)
inlinestatic

Registers a type ID with a factory function

Parameters
TypeIdThe type ID to register
ImplNameImplementation name
ValueTypeNameValue type name
FactoryFunction that creates instances of this type
Returns
True if registration succeeded

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