Cesium for Unreal 2.24.1
Loading...
Searching...
No Matches
FCesiumCamera Struct Reference

A camera description that ACesium3DTilesets can use to decide what tiles need to be loaded to sufficiently cover the camera view. More...

#include <CesiumCamera.h>

Public Member Functions

 FCesiumCamera ()
 Construct an uninitialized FCesiumCamera object.
 
 FCesiumCamera (const FVector2D &ViewportSize, const FVector &Location, const FRotator &Rotation, double FieldOfViewDegrees)
 Construct a new FCesiumCamera object.
 
 FCesiumCamera (const FVector2D &ViewportSize, const FVector &Location, const FRotator &Rotation, double FieldOfViewDegrees, double OverrideAspectRatio)
 Construct a new FCesiumCamera object.
 

Public Attributes

ECameraParameterSource ParameterSource = ECameraParameterSource::Manual
 The desired source of camera parameters.
 
FVector2D ViewportSize
 The pixel dimensions of the viewport.
 
TSoftObjectPtr< UCameraComponent > CameraComponent
 The camera component from which to retrieve parameters.
 
FVector Location
 The Unreal location of the camera.
 
FRotator Rotation
 The Unreal rotation of the camera.
 
double FieldOfViewDegrees
 The horizontal field of view of the camera in degrees.
 
double OverrideAspectRatio = 0.0
 The overriden aspect ratio for this camera.
 

Detailed Description

A camera description that ACesium3DTilesets can use to decide what tiles need to be loaded to sufficiently cover the camera view.

Definition at line 33 of file CesiumCamera.h.

Constructor & Destructor Documentation

◆ FCesiumCamera() [1/3]

FCesiumCamera::FCesiumCamera ( )

Construct an uninitialized FCesiumCamera object.

◆ FCesiumCamera() [2/3]

FCesiumCamera::FCesiumCamera ( const FVector2D & ViewportSize,
const FVector & Location,
const FRotator & Rotation,
double FieldOfViewDegrees )

Construct a new FCesiumCamera object.

Parameters
ViewportSizeThe viewport pixel size.
LocationThe Unreal location.
RotationThe Unreal rotation.
FieldOfViewDegreesThe horizontal field of view in degrees.

◆ FCesiumCamera() [3/3]

FCesiumCamera::FCesiumCamera ( const FVector2D & ViewportSize,
const FVector & Location,
const FRotator & Rotation,
double FieldOfViewDegrees,
double OverrideAspectRatio )

Construct a new FCesiumCamera object.

Parameters
ViewportSizeThe viewport pixel size.
LocationThe Unreal location.
RotationThe Unreal rotation.
FieldOfViewDegreesThe horizontal field of view in degrees.
OverrideAspectRatioThe overriden aspect ratio.

Member Data Documentation

◆ CameraComponent

TSoftObjectPtr<UCameraComponent> FCesiumCamera::CameraComponent

The camera component from which to retrieve parameters.

Due to UI limitations, this property must be set through Blueprints or C++. Used when ParameterSource is set to Camera Component.

Definition at line 61 of file CesiumCamera.h.

◆ FieldOfViewDegrees

double FCesiumCamera::FieldOfViewDegrees

The horizontal field of view of the camera in degrees.

Used when Parameter Source is set to Manual.

Definition at line 97 of file CesiumCamera.h.

◆ Location

FVector FCesiumCamera::Location

The Unreal location of the camera.

Used when Parameter Source is set to Manual.

Definition at line 73 of file CesiumCamera.h.

◆ OverrideAspectRatio

double FCesiumCamera::OverrideAspectRatio = 0.0

The overriden aspect ratio for this camera.

When this is 0.0f, use the aspect ratio implied by ViewportSize.

This may be different from the aspect ratio implied by the ViewportSize and black bars are added as needed in order to achieve this aspect ratio within a larger viewport.

Definition at line 109 of file CesiumCamera.h.

◆ ParameterSource

ECameraParameterSource FCesiumCamera::ParameterSource = ECameraParameterSource::Manual

The desired source of camera parameters.

Definition at line 41 of file CesiumCamera.h.

◆ Rotation

FRotator FCesiumCamera::Rotation

The Unreal rotation of the camera.

Used when Parameter Source is set to Manual.

Definition at line 85 of file CesiumCamera.h.

◆ ViewportSize

FVector2D FCesiumCamera::ViewportSize

The pixel dimensions of the viewport.

Definition at line 47 of file CesiumCamera.h.


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