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