Navigation
API > API/Plugins > API/Plugins/AvalancheViewport
| Name | FAvaViewportUtils |
| Type | struct |
| Header File | /Engine/Plugins/VirtualProduction/Avalanche/Source/AvalancheViewport/Public/AvaViewportUtils.h |
| Include Path | #include "AvaViewportUtils.h" |
Syntax
struct FAvaViewportUtils
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float CalcFOV
(
float InViewportDimension, |
AvaViewportUtils.h | ||
static TSharedPtr< IAvaViewportClient > GetAsAvaViewportClient
(
FEditorViewportClient* InViewportClient |
Uses the viewport client casters to attempt to create an IAvaViewportClient. | AvaViewportUtils.h | |
static FEditorViewportClient * GetAsEditorViewportClient
(
FViewport* InViewport |
Uses the viewport caster to attempt to get an FEditorViewportClient*. | AvaViewportUtils.h | |
static TSharedPtr< IAvaViewportClient > GetAvaViewportClient
(
FViewport* InViewport |
Uses the viewport caster to attempt to get an FEditorViewportClient*. | AvaViewportUtils.h | |
static FVector2D GetFrustumSizeAtDistance
(
float InHorizontalFoVDegrees, |
Calculates the size of the frustum plane parallel to the camera's near clip plane at the given distance. | AvaViewportUtils.h | |
static FTransform GetViewportViewTransform
(
FEditorViewportClient* InViewportClient |
Calcs a viewport client's scene view and returns a transform of its rotation and location. | AvaViewportUtils.h | |
static bool IsValidViewportSize
(
const FVector2f& InViewportSize |
AvaViewportUtils.h | ||
static bool IsValidViewportSize
(
const FIntPoint& InViewportSize |
AvaViewportUtils.h | ||
static FDelegateHandle RegisterViewportCaster
(
FAvaViewportCastDelegate::TFuncType InFunction |
AvaViewportUtils.h | ||
static FDelegateHandle RegisterViewportClientCaster
(
FAvaViewportClientCastDelegate::TFuncType InFunction |
AvaViewportUtils.h | ||
static void UnregisterViewportCaster
(
FDelegateHandle InDelegateHandle |
AvaViewportUtils.h | ||
static void UnregisterViewportClientCaster
(
FDelegateHandle InDelegateHandle |
AvaViewportUtils.h | ||
static FVector ViewportPositionToWorldPositionOrthographic
(
const FVector2f& InViewportSize, |
Translates the viewport position to the corresponding position on the frustum plane parallel to the camera's near clip plane at the given distance for orthographic views. | AvaViewportUtils.h | |
static FVector ViewportPositionToWorldPositionPerspective
(
const FVector2f& InViewportSize, |
Translates the viewport position to the corresponding position on the frustum plane parallel to the camera's near clip plane at the given distance for perspective views. | AvaViewportUtils.h | |
static void WorldPositionToViewportPositionOrthographic
(
const FVector2f& InViewportSize, |
Translates the position on the frustum plane parallel to the camera's near clip plane to the corresponding viewport position for orthographic views. | AvaViewportUtils.h | |
static void WorldPositionToViewportPositionPerspective
(
const FVector2f& InViewportSize, |
Translates the position on the frustum plane parallel to the camera's near clip plane to the corresponding viewport position for perspective views. | AvaViewportUtils.h |