Navigation
API > API/Plugins > API/Plugins/AvalancheViewport > API/Plugins/AvalancheViewport/Interaction
References
| Module | AvalancheViewport |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheViewport/Public/Interaction/AvaCameraZoomController.h |
| Include | #include "Interaction/AvaCameraZoomController.h" |
Syntax
class FAvaCameraZoomController
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< IAvaViewportClient > | AvaViewportClientWeak | ||
| bool | bIsPanning | ||
| FAvaVisibleArea | CachedVisibleArea | ||
| FAvaVisibleArea | CachedZoomedVisibleArea | ||
| const float | FallbackFOV | ||
| FVector2f | PanOffsetFraction | ||
| uint8 | ZoomLevel |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAvaCameraZoomController
(
TSharedRef< IAvaViewportClient > InAvaViewportClient, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CenterOnBox
(
const FBox& InBoundingBox, |
||
| void | CenterOnPoint
(
const FVector2f& InPoint |
||
| void | EndPanning () |
||
| void | FrameActor () |
||
| const FAvaVisibleArea & | |||
| const FAvaVisibleArea & | |||
| FVector2f | |||
| float | |||
| float | |||
| float | GetFOV () |
||
| float | |||
| const FVector2f & | |||
| TSharedPtr< IAvaViewportClient > | |||
| uint8 | GetZoomLevel () |
||
| bool | |||
| bool | IsPanning () |
||
| bool | IsZoomed () |
||
| void | |||
| void | PanAdjustZoomed
(
const FVector2f& InZoomedDirection |
Adjusts zoom pan based on current zoom settings. | |
| void | PanDown () |
||
| void | PanLeft () |
||
| void | PanRight () |
||
| void | PanUp () |
||
| void | Reset () |
||
| void | SetPanOffsetFraction
(
const FVector2f& InOffsetFraction |
||
| void | SetZoomLevel
(
uint8 InZoomLevel |
||
| void | StartPanning () |
||
| void | |||
| void | ZoomIn () |
||
| void | ZoomInAroundPoint
(
const FVector2f& InScreenPosition |
Zooms in maintaining the current PanOffsetFraction. Uses the absolute screen position. | |
| void | ZoomInCursor () |
||
| void | ZoomInRelativePoint
(
const FVector2f& InViewportPosition |
Zooms in maintaining the position of the given viewport position. | |
| void | ZoomOut () |
||
| void | ZoomOutAroundPoint
(
const FVector2f& OutScreenPosition |
Zooms out maintaining the current PanOffsetFraction. Uses the absolute screen position. | |
| void | |||
| void | ZoomOutRelativePoint
(
const FVector2f& OutViewportPosition |
Zooms out maintaining the position of the given viewport position. |