ULensModel

Abstract base class for lens models

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CameraCalibrationCore

Header

/Engine/Plugins/VirtualProduction/CameraCalibrationCore/Source/CameraCalibrationCore/Public/Models/LensModel.h

Include

#include "Models/LensModel.h"

Syntax

UCLASS(Abstract)
class ULensModel : public UObject

Remarks

Abstract base class for lens models

Functions

Name Description

Public function

void

 

FromArray

(
    const TArray< float >& SrcArray,
    StructType& DstData
)

Populate the float fields in the destination struct with the values in the source array

Protected function Virtual

void

 

FromArray_Internal

(
    UScriptStruct* TypeStruct,
    const TArray< float >& SrcArray,
    void* DstData
)

Internal implementation of FromArray. See declaration of public template method.

Public function Static

TSubclassOf<...

 

GetHandlerClass

(
    TSubclassOf< ULensModel > LensModel
)

Returns the first handler that supports the given LensModel

Public function Virtual Const

FName

 

GetModelName()

Get the lens model name

Public function Virtual Const

uint32

 

GetNumParameters()

Get the number of float fields in the parameter struct supported by this model

Public function Virtual Const

TArray< FTex...

 

GetParameterDisplayNames()

Get the names of each float parameters supported by this model

Public function Virtual Const

UScriptStruc...

 

GetParameterStruct()

Get the struct of distortion parameters supported by this model

Public function Virtual Const

FName

 

GetShortModelName()

Get the lens model short name

Public function Const

void

 

ToArray

(
    const StructType& SrcData,
    TArray< float >& DstArray
)

Fill the destination array of floats with the values of the fields in the source struct

Public function Const

void

 

ToArray

(
    const FStructOnScope& SrcData,
    TArray< float >& DstArray
)

ToArray specialization taking a StructOnScope containing type and data

Protected function Virtual Const

void

 

ToArray_Internal

(
    const UScriptStruct* TypeStruc...,
    const void* SrcData,
    TArray< float >& DstArray
)

Internal implementation of ToArray. See declaration of public template method.