Interface used by the camera component to figure out the final position of a motion tracked camera. 更多...
#include <IXRCamera.h>
类 IXRCamera 继承关系图:Public 成员函数 | |
| virtual void | ApplyHMDRotation (APlayerController *PC, FRotator &ViewRotation)=0 |
| Optionally called by APlayerController to apply the orientation of the headset to the PC's rotation. 更多... | |
| virtual void | CalculateStereoCameraOffset (const enum EStereoscopicPass StereoPassType, FRotator &ViewRotation, FVector &ViewLocation)=0 |
| Calculates the offset for the camera position, given the specified eye pass, position and rotation. 更多... | |
| virtual bool | GetPassthroughCameraUVs_RenderThread (TArray< FVector2D > &OutUVs) |
| Fetches the UV coordinates of an AR passthrough camera relative to the screen. 更多... | |
| virtual bool | GetUseImplicitHMDPosition () const =0 |
| Gets the view offset mode to assume an implied HMD position | |
| virtual void | OverrideFOV (float &InOutFOV)=0 |
| Override the Field of View for the player camera component. | |
| virtual void | SetupLateUpdate (const FTransform &ParentToWorld, USceneComponent *Component, bool bSkipLateUpdate)=0 |
| Setup state for applying the render thread late update | |
| virtual bool | UpdatePlayerCamera (FQuat &CurrentOrientation, FVector &CurrentPosition)=0 |
| Apply the orientation and position of the headset to the Camera. | |
| virtual void | UseImplicitHMDPosition (bool bInImplicitHMDPosition)=0 |
| Set the view offset mode to assume an implied HMD position | |
Public 成员函数 继承自 IIdentifiableXRDevice | |
| virtual int32 | GetSystemDeviceId () const =0 |
| Returns a unique identifier that can be used to reference this device within the system is belongs to. 更多... | |
Interface used by the camera component to figure out the final position of a motion tracked camera.
To reduce duplicated code, implementations should use the FXRCameraBase instead of implementing this interface directly.
|
pure virtual |
Optionally called by APlayerController to apply the orientation of the headset to the PC's rotation.
If this is not done then the PC will face differently than the camera, which might be good (depending on the game).
在 FDefaultXRCamera 内被实现.
|
pure virtual |
Calculates the offset for the camera position, given the specified eye pass, position and rotation.
An XR plugin implementing stereo rendering should forward all calls of CalculateStereoViewOffset to this method.
在 FDefaultXRCamera 内被实现.
|
inlinevirtual |
Fetches the UV coordinates of an AR passthrough camera relative to the screen.
Takes into account cropping, orientation and difference between camera and screen aspect ratios. Returns false if the UVs are not available or if the feature is not supported or implemented by the current platform. If the result is true, OutUVs will contain the four corner UVs of the passthrough camera rectangle.
This method should only be called from the render thread.