Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DOMDeviceServiceProvider

Hierarchy

Index

Constructors

constructor

Properties

Private _localOriginEUS

_localOriginEUS: Entity = new Entity({position: new ConstantPositionProperty(Cartesian3.ZERO, this.deviceService.localOrigin),orientation: new ConstantProperty(Quaternion.fromAxisAngle(Cartesian3.UNIT_X, CesiumMath.PI_OVER_TWO))})

Private _scratchCartesian

_scratchCartesian: Cartesian3 = new Cartesian3

Private _scratchMatrix3

_scratchMatrix3: Matrix3 = new Matrix3

Private _scratchMatrix4

_scratchMatrix4: Matrix4 = new Matrix4

Private _scratchQuaternion

_scratchQuaternion: Quaternion = new Quaternion

Private _scratchQuaternion2

_scratchQuaternion2: Quaternion = new Quaternion

Private Optional _vrFrameData

_vrFrameData: any

autoSubmitFrame

autoSubmitFrame: boolean = true

Protected contextService

contextService: ContextService

Protected contextServiceProvider

contextServiceProvider: ContextServiceProvider

defaultUserHeightHMD

defaultUserHeightHMD: number = AVERAGE_EYE_HEIGHT

defaultUserHeightHandheld

defaultUserHeightHandheld: number = AVERAGE_EYE_HEIGHT / 2

Protected deviceService

deviceService: DeviceService

Protected sessionService

sessionService: SessionService

standingSpace

standingSpace: Entity = new Entity({position: new ConstantPositionProperty(Cartesian3.ZERO, this._localOriginEUS),orientation: new ConstantProperty(Quaternion.IDENTITY)})

Defines a +Y coordinate system positioned at the local origin, by default.

Protected viewService

viewService: ViewService

Accessors

defaultUserHeight

  • get defaultUserHeight(): number

Methods

Private _updateFrameStateFromWebVR

cancelAnimationFrame

  • cancelAnimationFrame(id: number): void

Protected configureLocalOrigin

  • configureLocalOrigin(longitude?: number, latitude?: number, altitude?: number, geoHorizontalAccuracy?: number, geoVerticalAccuracy?: number): void

configureStandingSpaceHeadingOffset

  • configureStandingSpaceHeadingOffset(headingOffset?: number): void
  • Rotate the standing space around +Y

    Parameters

    • Default value headingOffset: number = 0

    Returns void

onExitPresentHMD

  • onExitPresentHMD(session: SessionPort): Promise<void>

Protected onRequestFrameState

onRequestPresentHMD

  • onRequestPresentHMD(session: SessionPort): Promise<void>

Protected onStartGeolocationUpdates

Protected onStopGeolocationUpdates

  • onStopGeolocationUpdates(): void

Protected onUpdate

requestAnimationFrame

  • requestAnimationFrame(callback: function): any
  • Request an animation frame callback for the current view.

    Parameters

    • callback: function
        • (timestamp: number): void
        • Parameters

          • timestamp: number

          Returns void

    Returns any

Protected setPresentingHMD

  • setPresentingHMD(state: boolean): void

update

Protected updateStageDefault

  • updateStageDefault(): void

Static isAvailable

  • isAvailable(): boolean

Generated using TypeDoc