Navigation
API > API/Plugins > API/Plugins/AvalancheViewport
Provider utility for converting to and from viewport/world coordinates and frustrum sizes.
| Name | IAvaViewportWorldCoordinateConverter |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/Avalanche/Source/AvalancheViewport/Public/ViewportClient/IAvaViewportWorldCoordinateConverter.h |
| Include Path | #include "ViewportClient/IAvaViewportWorldCoordinateConverter.h" |
Syntax
class IAvaViewportWorldCoordinateConverter : public IAvaTypeCastable
Implements Interfaces
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAvaInherits | TAvaInherits< IAvaViewportWorldCoordinateConverter, IAvaTypeCastable > | ViewportClient/IAvaViewportWorldCoordinateConverter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector2D GetFrustumSizeAtDistance
(
double InDistance |
Calculates the size of the frustum plane parallel to the camera's near clip plane at the given distance. | ViewportClient/IAvaViewportWorldCoordinateConverter.h | |
FVector2f GetViewportSize() |
Gets the full size of the viewport when not zoomed in. | ViewportClient/IAvaViewportWorldCoordinateConverter.h | |
FTransform GetViewportViewTransform() |
Returns the current view transform. | ViewportClient/IAvaViewportWorldCoordinateConverter.h | |
FVector ViewportPositionToWorldPosition
(
const FVector2f& InViewportPosition, |
Translates the viewport position to the corresponding position on the frustum plane parallel to the camera's near clip plane at the given distance. | ViewportClient/IAvaViewportWorldCoordinateConverter.h | |
void WorldPositionToViewportPosition
(
const FVector& InWorldPosition, |
Translates the position on the frustum plane parallel to the camera's near clip plane to the corresponding viewport position. | ViewportClient/IAvaViewportWorldCoordinateConverter.h |
Overridden from IAvaTypeCastable
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const void * CastTo_Impl
(
FAvaTypeId InCastToType |
ViewportClient/IAvaViewportWorldCoordinateConverter.h | ||
virtual FAvaTypeId GetTypeId() |
ViewportClient/IAvaViewportWorldCoordinateConverter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FAvaTypeId GetStaticTypeId() |
ViewportClient/IAvaViewportWorldCoordinateConverter.h |