Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Core
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Core/CameraPose.h |
| Include | #include "Core/CameraPose.h" |
Syntax
USTRUCT ()
struct FCameraPose
Remarks
Structure describing the state of a camera.
Fields are private and can only be accessed via the getters and setters. The ChangedFlags structure keeps track of which fields were changed via the setters.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCameraPose () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ApplyPhysicalCameraSettings
(
FPostProcessSettings& PostProcessSettings, |
Applies the necessary post-process settings given the current values on this camera pose. | |
| void | Set all fields as clean. | ||
| FVector3d | GetAimDir () |
Gets the aiming direction of the camera. | |
| FRay3d | GetAimRay () |
Gets the aiming ray of the camera. | |
| float | GetAperture () |
||
| EAspectRatioAxisConstraint | |||
| const FCameraPoseFlags & | Get the changed flags. | ||
| FCameraPoseFlags & | Get the changed flags. | ||
| bool | |||
| void | GetDefaultSensorSize
(
float& OutSensorWidth, |
Gets the default sensor size. | |
| int32 | |||
| double | Computes the horizontal field of view of the camera. | ||
| double | GetEffectiveFieldOfView
(
float FocalLength, |
Computes the horizontal field of view of a camera. | |
| bool | |||
| float | |||
| float | |||
| float | |||
| float | |||
| float | GetISO () |
||
| FVector | GetLocation () |
||
| float | |||
| bool | |||
| float | |||
| FRotator3d | GetRotation () |
||
| double | GetSensorAspectRatio
(
float SensorWidth, |
Computes the aspect ratio of a camera sensor. | |
| double | Gets the aspect ratio of the camera sensor. | ||
| float | |||
| float | |||
| float | |||
| float | |||
| FVector3d | GetTarget
(
double InTargetDistance |
Gets the location of the camera's target given a specific distance. | |
| FVector3d | GetTarget () |
Gets the location of the camera's target. | |
| double | |||
| FTransform3d | GetTransform () |
Gets the transform of the camera. | |
| void | LerpAll
(
const FCameraPose& ToPose, |
Interpolates all properties from ToPose using the given factor. | |
| void | LerpChanged
(
const FCameraPose& ToPose, |
Interpolates changed properties from ToPose using the given factor. | |
| void | LerpChanged
(
const FCameraPose& ToPose, |
Interpolates all changed properties from ToPose using the given factor. | |
| void | OverrideAll
(
const FCameraPose& OtherPose |
Takes all properties from OtherPose and sets them on this camera pose. | |
| void | OverrideChanged
(
const FCameraPose& OtherPose |
Takes all changed properties from OtherPose and sets them on this camera pose. | |
| void | Reset () |
Resets this camera pose to its default values, with all changed flags off. | |
| void | SerializeWithFlags
(
FArchive& Ar, |
Serializes the given camera pose including the written-property flags. | |
| void | SerializeWithFlags
(
FArchive& Ar |
Serializes this camera pose including the written-property flags. | |
| void | Set all fields as changed. | ||
| void | SetAperture
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetAspectRatioAxisConstraint
(
TCallTraits< EAspectRatioAxisConstraint >::ParamType InValue, |
||
| void | SetChangedFlags
(
const FCameraPoseFlags& InChangedFlags |
Set the changed flags. | |
| void | SetConstrainAspectRatio
(
TCallTraits< bool >::ParamType InValue, |
||
| void | SetDiaphragmBladeCount
(
TCallTraits< int32 >::ParamType InValue, |
||
| void | SetEnablePhysicalCamera
(
TCallTraits< bool >::ParamType InValue, |
||
| void | SetFarClippingPlane
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetFieldOfView
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetFocalLength
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetFocusDistance
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetISO
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetLocation
(
TCallTraits< FVector >::ParamType InValue, |
||
| void | SetNearClippingPlane
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetOverrideAspectRatioAxisConstraint
(
TCallTraits< bool >::ParamType InValue, |
||
| void | SetPhysicalCameraBlendWeight
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetRotation
(
TCallTraits< FRotator3d >::ParamType InValue, |
||
| void | SetSensorHeight
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetSensorWidth
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetShutterSpeed
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetSqueezeFactor
(
TCallTraits< float >::ParamType InValue, |
||
| void | SetTargetDistance
(
TCallTraits< double >::ParamType InValue, |
||
| void | SetTransform
(
FTransform3d Transform |
Sets the transform of the camera. |