Navigation
API > API/Plugins > API/Plugins/CameraCalibrationCore
Camera Calibration subsystem
| Name | UCameraCalibrationSubsystem |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/CameraCalibrationCore/Source/CameraCalibrationCore/Public/CameraCalibrationSubsystem.h |
| Include Path | #include "CameraCalibrationSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UCameraCalibrationSubsystem : public UEngineSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEngineSubsystem → UCameraCalibrationSubsystem
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CameraCalibrationStepsMap | TMap< FName, TSubclassOf< UCameraCalibrationStep > > | Holds the registered camera calibration steps | CameraCalibrationSubsystem.h |
|
| CameraImageCenterAlgosMap | TMap< FName, TSubclassOf< UCameraImageCenterAlgo > > | Holds the registered camera image center algos | CameraCalibrationSubsystem.h |
|
| CameraNodalOffsetAlgosMap | TMap< FName, TSubclassOf< UCameraNodalOffsetAlgo > > | Holds the registered camera nodal offset algos | CameraCalibrationSubsystem.h |
|
| ComponentsWithAuthoritativeModels | TMap< FObjectKey, TSubclassOf< ULensModel > > | Map of actor components to the authoritative lens model that should be used with that component | CameraCalibrationSubsystem.h | |
| DefaultLensFile | TObjectPtr< ULensFile > | Default lens file to use when no override has been provided | CameraCalibrationSubsystem.h |
|
| LensModelMap | TMap< FName, TSubclassOf< ULensModel > > | Map of model names to ULensModel subclasses | CameraCalibrationSubsystem.h |
|
| PostEngineInitHandle | FDelegateHandle | CameraCalibrationSubsystem.h | ||
| RegisteredOverlayMaterials | TMap< FName, TSoftObjectPtr< UMaterialInterface > > | Map of overlay names to overlay materials | CameraCalibrationSubsystem.h | |
| SceneViewExtension | TSharedPtr< FLensDistortionSceneViewExtension, ESPMode::ThreadSafe > | Lens Distortion Scene View Extension, used to render distortion and undistortion displacement maps | CameraCalibrationSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearLensDistortionSVEState
(
ACameraActor* CameraActor |
Removes all distortion state from the Lens Distortion Scene View Extension for the input camera actor | CameraCalibrationSubsystem.h | |
PRAGMA_DISABLE_DEPRECATION_WARNINGSULensDistortionModelHandlerBase * FindDistortionModelHandler
(
FDistortionHandlerPicker& DistortionHandlerPicker, |
CameraCalibrationSubsystem.h |
|
|
ULensDistortionModelHandlerBase * FindOrCreateDistortionModelHandler
(
FDistortionHandlerPicker& DistortionHandlerPicker, |
CameraCalibrationSubsystem.h |
|
|
TSubclassOf< UCameraCalibrationStep > GetCameraCalibrationStep
(
FName Name |
Returns the camera calibration step by name | CameraCalibrationSubsystem.h |
|
| Returns an array with the names of the available camera calibration steps | CameraCalibrationSubsystem.h |
|
|
TSubclassOf< UCameraImageCenterAlgo > GetCameraImageCenterAlgo
(
FName Name |
Returns the image center algorithm by name | CameraCalibrationSubsystem.h |
|
| Returns an array with the names of the available image center algorithms | CameraCalibrationSubsystem.h |
|
|
TSubclassOf< UCameraNodalOffsetAlgo > GetCameraNodalOffsetAlgo
(
FName Name |
Returns the nodal offset algorithm by name | CameraCalibrationSubsystem.h |
|
| Returns an array with the names of the available nodal offset algorithms | CameraCalibrationSubsystem.h |
|
|
ULensFile * GetDefaultLensFile() |
Get the default lens file. | CameraCalibrationSubsystem.h |
|
TArray< ULensDistortionModelHandlerBase * > GetDistortionModelHandlers
(
UCineCameraComponent* Component |
CameraCalibrationSubsystem.h |
|
|
ULensFile * GetLensFile
(
const FLensFilePicker& Picker |
Facilitator around the picker to get the desired lens file. | CameraCalibrationSubsystem.h |
|
UMaterialInterface * GetOverlayMaterial
(
const FName& OverlayName |
Returns the overlay material associated with the input overlay name | CameraCalibrationSubsystem.h |
|
| Returns a list of all overlays known to the subsystem This includes the default overlays listed in the camera calibration settings as well as any of overlays that have been registered with this subsystem | CameraCalibrationSubsystem.h |
|
|
TSubclassOf< ULensModel > GetRegisteredLensModel
(
FName ModelName |
Return the ULensModel subclass that was registered with the input model name | CameraCalibrationSubsystem.h |
|
void RegisterDistortionModel
(
TSubclassOf< ULensModel > LensModel |
Add a new Lens Model to the registered model map | CameraCalibrationSubsystem.h | |
void RegisterOverlayMaterial
(
const FName& MaterialName, |
Register a new overlay material name and path that can be queried from camera calibration tools | CameraCalibrationSubsystem.h | |
void SetDefaultLensFile
(
ULensFile* NewDefaultLensFile |
Get the default lens file. | CameraCalibrationSubsystem.h |
|
void SetLensDistortionSVEState
(
ACameraActor* CameraActor, |
Adds the input distortion state and blending parameters to the Lens Distortion Scene View Extension for the input camera actor | CameraCalibrationSubsystem.h | |
void UnregisterDistortionModel
(
TSubclassOf< ULensModel > LensModel |
Remove a Lens Model from the registered model map | CameraCalibrationSubsystem.h | |
void UnregisterDistortionModelHandler
(
UCineCameraComponent* Component, |
CameraCalibrationSubsystem.h |
|
|
void UnregisterOverlayMaterial
(
const FName& MaterialName |
Unregister an overlay material | CameraCalibrationSubsystem.h |
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
CameraCalibrationSubsystem.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
CameraCalibrationSubsystem.h |