UCameraLensDistortionAlgo

Defines the interface that any lens distortion algorithm should implement in order to be used and listed by the Lens Distortion Tool.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UCameraLensDistortionAlgo

References

Module

CameraCalibrationCore

Header

/Engine/Plugins/VirtualProduction/CameraCalibrationCore/Source/CameraCalibrationCore/Public/CameraLensDistortionAlgo.h

Include

#include "CameraLensDistortionAlgo.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Abstract)
class UCameraLensDistortionAlgo : public UObject

Remarks

Defines the interface that any lens distortion algorithm should implement in order to be used and listed by the Lens Distortion Tool.

Functions

Name Description

Public function Virtual

TSharedRef< ...

 

BuildUI()

Returns the UI of this calibrator. Expected to only be called once

Public function Virtual Const

FName

 

FriendlyName()

Returns a descriptive name/title of this nodal offset algorithm

Public function Virtual

bool

 

GetLensDistortion

(
    float& OutFocus,
    float& OutZoom,
    FDistortionInfo& OutDistortionInfo,
    FFocalLengthInfo& OutFocalLengthIn...,
    FImageCenterInfo& OutImageCenterIn...,
    TSubclassOf< ULensModel >& OutLens...,
    double& OutError,
    FText& OutErrorMessage
)

Returns the lens distortion calibration data

Public function Virtual

void

 

Initialize

(
    ULensDistortionTool* InTool
)

Make sure you initialize before using the object

Public function Virtual

void

 

OnDistortionSavedToLens()

Called when the data sample was saved to the lens file

Public function Virtual

bool

 

OnViewportClicked

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Callback when viewport is clicked. Returns false if the event was not handled.

Public function Virtual

void

 

Shutdown()

Clean up resources

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

Called every frame

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss