Navigation
API > API/Plugins > API/Plugins/PixelStreamingHMD
Inheritance Hierarchy
- FHeadMountedDisplayBase
- FHMDSceneViewExtension
- FPixelStreamingHMD
References
| Module | PixelStreamingHMD |
| Header | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreamingHMD/Public/PixelStreamingHMD.h |
| Include | #include "PixelStreamingHMD.h" |
Syntax
class FPixelStreamingHMD :
public FHeadMountedDisplayBase,
public FHMDSceneViewExtension
Remarks
Pixel Streamed Head Mounted Display
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPixelStreamingHMD
(
const FAutoRegister& |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| void | SetTransform
(
FTransform Transform |
Overridden from IXRTrackingSystem
| Type | Name | Description | |
|---|---|---|---|
| bool | EnumerateTrackedDevices
(
TArray< int32 >& OutDevices, |
Reports all devices currently available to the system, optionally limiting the result to a given class of devices. | |
| FQuat | Returns current base orientation of HMD as a quaternion. | ||
| FRotator | Returns current base orientation of HMD as yaw-pitch-roll combination. | ||
| bool | GetCurrentPose
(
int32 DeviceId, |
Get the current pose for a device. | |
| IHeadMountedDisplay * | GetHMDDevice () |
Access HMD rendering-related features. | |
| TSharedPtr< class IStereoRendering, ESPMode::ThreadSafe > | Access Stereo rendering device associated with this XR system. | ||
| float | FXRTrackingSystemBase protected interface | ||
| int32 | Returns device specific flags. | ||
| void | ResetOrientation
(
float Yaw |
Resets orientation by setting roll and pitch to 0, assuming that current yaw is forward direction. | |
| void | ResetOrientationAndPosition
(
float Yaw |
Resets orientation by setting roll and pitch to 0, assuming that current yaw is forward direction and assuming current position as a 'zero-point' (for positional tracking). | |
| void | Resets position, assuming current position as a 'zero-point'. | ||
| void | SetBaseOrientation
(
const FQuat& BaseOrient |
Sets base orientation, assuming that this is forward direction. Position is not changed. | |
| void | SetBaseRotation
(
const FRotator& BaseRot |
Sets base orientation by setting yaw, pitch, roll, assuming that this is forward direction. |
Overridden from IXRSystemIdentifier
| Type | Name | Description | |
|---|---|---|---|
| FName | IXRTrackingSystem interface |
Overridden from IHeadMountedDisplay
| Type | Name | Description | |
|---|---|---|---|
| void | DrawDistortionMesh_RenderThread
(
FHeadMountedDisplayPassContext& Context, |
||
| void | EnableHMD
(
bool bEnable |
Enables or disables switching to stereo. | |
| void | GetEyeRenderParams_RenderThread
(
const FHeadMountedDisplayPassContext& Context, |
Returns eye render params, used from PostProcessHMD, RenderThread. | |
| void | GetFieldOfView
(
float& InOutHFOVInDegrees, |
Calculates the FOV, based on the screen dimensions of the device. Original FOV is passed as params. | |
| bool | Get the name or id of the display to output for this HMD. | ||
| float | |||
| bool | Returns 'false' if chromatic aberration correction is off. | ||
| bool | IHeadMountedDisplay interface | ||
| bool | IsHMDEnabled () |
Whether or not switching to stereo is enabled; if it is false, then EnableStereo(true) will do nothing. | |
| void | SetInterpupillaryDistance
(
float NewInterpupillaryDistance |
Accessors to modify the interpupillary distance (meters) |
Overridden from IStereoRendering
| Type | Name | Description | |
|---|---|---|---|
| void | AdjustViewRect
(
int32 ViewIndex, |
Adjusts the viewport rectangle for stereo, based on which eye pass is being rendered. | |
| void | CalculateStereoViewOffset
(
const int32 ViewIndex, |
Calculates the offset for the camera position, given the specified position, rotation, and world scale Specifying eSSE_MONOSCOPIC for the view index returns a center offset behind the stereo views | |
| bool | EnableStereo
(
bool stereo |
Switches stereo rendering on / off. Returns current state of stereo. | |
| FMatrix | GetStereoProjectionMatrix
(
const int32 ViewIndex |
Gets a projection matrix for the device, given the specified view index Specifying eSSE_MONOSCOPIC for the view index returns a center projection matrix encompassing all views | |
| bool | IStereoRendering interface |
Overridden from ISceneViewExtension
| Type | Name | Description | |
|---|---|---|---|
| void | BeginRenderViewFamily
(
FSceneViewFamily& InViewFamily |
Called on game thread when view family is about to be rendered. | |
| void | PreRenderView_RenderThread
(
FRDGBuilder& GraphBuilder, |
Called on render thread at the start of rendering, for each view, after PreRenderViewFamily_RenderThread call. | |
| void | PreRenderViewFamily_RenderThread
(
FRDGBuilder& GraphBuilder, |
Called on render thread at the start of rendering. | |
| void | SetupView
(
FSceneViewFamily& InViewFamily, |
Called on game thread when creating the view. | |
| void | SetupViewFamily
(
FSceneViewFamily& InViewFamily |
ISceneViewExtension interface |