![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IMediaView.h>
Public Member Functions | |
| virtual bool | GetViewField (float &OutHorizontal, float &OutVertical) const |
| virtual bool | GetViewOrientation (FQuat &OutOrientation) const |
| virtual bool | SetViewField (float Horizontal, float Vertical, bool Absolute) |
| virtual bool | SetViewOrientation (const FQuat &Orientation, bool Absolute) |
| virtual bool | IsViewFocusEnabled () const |
| virtual bool | SetViewFocusEnabled (bool Enabled) |
| virtual bool | SetViewFocusField (float Horizontal, float Vertical) |
| virtual bool | SetViewFocusOffImportance (float Importance) |
| virtual bool | SetViewFocusOrientation (const FQuat &Orientation) |
| virtual bool | SetInteroccularDistance (float Distance) |
| virtual PRAGMA_DISABLE_DEPRECATION_WARNINGS bool | GetVisibleTiles (TMap< int32, TSet< FMediaTileCoordinate > > &OutTiles) const |
| virtual bool | SetVisibleTiles (TMap< int32, TSet< FMediaTileCoordinate > > &&InTiles) |
| virtual | ~IMediaView () |
Interface for a media player's viewing settings.
This interface is used to control viewing parameters in media players that support 360-degree or stereoscopic video output, or spatial audio output. There are currently three sets of configurable parameters: view, view focus and user settings.
The view is the area that the user is looking at. Media players may use it to optimize the decoding of the media, i.e. only decode the sub-section of the video that is actually visible.
The view focus is an optional area that allows for specifying which area the user is or should be focusing on. Media players may use it for foveated video rendering or for making the focused area more audible.
The user settings can be used by media players to customize the generated audio or video output for specific users.
Note: This view class has now been extended to also support tiled media sources such as tiled exr image sequences. Sets of visible tiles can be specified per mip level.
|
inlinevirtual |
Virtual destructor.
|
inlinevirtual |
Get the field of view.
| OutHorizontal | Will contain the horizontal field of view. |
| OutVertical | Will contain the vertical field of view. |
Get the view's orientation.
| OutOrientation | Will contain the view orientation. |
|
inlinevirtual |
Get the visible tiles per mip-level.
| OutTiles | Map of visible tile sets per mip level index. |
Whether the view focus is enabled.
Set the inter-ocular distance.
| Distance | The inter-ocular distance (in centimeters). |
|
inlinevirtual |
Set the field of view.
| Horizontal | Horizontal field of view (in Euler degrees). |
| Vertical | Vertical field of view (in Euler degrees). |
| Whether | the field of view change should be absolute (true) or relative (false). |
Enable or disable view focus.
| Enabled | true to enable, false to disable. |
Set the view's focused field of view.
| Horizontal | Horizontal field of view (in Euler degrees). |
| Vertical | Vertical field of view (in Euler degrees). |
Set the importance of the area that is not in focus.
| Importance | Off-area importance (0.0 = no importance, 1.0 = important). |
Set the view's focused orientation.
| Orientation | Quaternion representing the viewer's orientation. |
|
inlinevirtual |
Set the view's orientation.
| Orientation | Quaternion representing the orientation. |
| Whether | the orientation change should be absolute (true) or relative (false). |
|
inlinevirtual |
Set the visible tiles per mip-level.
| InTiles | Map of visible tile sets per mip level index. |