Show / Hide Table of Contents

    Class SpatialCoordinateSystemParticipant

    The SpectatorView helper class for managing a participant in the spatial coordinate system

    Inheritance
    Object
    SpatialCoordinateSystemParticipant
    Implements
    IPeerConnection
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class SpatialCoordinateSystemParticipant : DisposableBase, IPeerConnection

    Constructors

    SpatialCoordinateSystemParticipant(SocketEndpoint, GameObject, Single)

    Declaration
    public SpatialCoordinateSystemParticipant(SocketEndpoint endpoint, GameObject debugVisualPrefab, float debugVisualScale)
    Parameters
    Type Name Description
    SocketEndpoint endpoint
    GameObject debugVisualPrefab
    Single debugVisualScale

    Properties

    Coordinate

    Declaration
    public ISpatialCoordinate Coordinate { get; set; }
    Property Value
    Type Description
    ISpatialCoordinate

    CurrentLocalizationSession

    Gets the currently-running localization session for this participant;

    Declaration
    public ISpatialLocalizationSession CurrentLocalizationSession { get; }
    Property Value
    Type Description
    ISpatialLocalizationSession

    IsLocatingSpatialCoordinate

    Declaration
    public bool IsLocatingSpatialCoordinate { get; }
    Property Value
    Type Description
    Boolean

    PeerDeviceTrackingState

    Gets the last-reported tracking status of the peer device.

    Declaration
    public TrackingState PeerDeviceTrackingState { get; }
    Property Value
    Type Description
    TrackingState

    PeerIsLocatingSpatialCoordinate

    Gets whether or not the peer device is actively attempting to locate the shared spatial coordinate.

    Declaration
    public bool PeerIsLocatingSpatialCoordinate { get; }
    Property Value
    Type Description
    Boolean

    PeerSpatialCoordinateIsLocated

    Gets the last-reported status of whether or not the peer's spatial coordinate is located and tracking.

    Declaration
    public bool PeerSpatialCoordinateIsLocated { get; }
    Property Value
    Type Description
    Boolean

    PeerSpatialCoordinateWorldPosition

    Gets the position of the shared spatial coordinate in the peer device's world space.

    Declaration
    public Vector3 PeerSpatialCoordinateWorldPosition { get; }
    Property Value
    Type Description
    Vector3

    PeerSpatialCoordinateWorldRotation

    Gets the rotation of the shared spatial coordinate in the peer device's world space.

    Declaration
    public Quaternion PeerSpatialCoordinateWorldRotation { get; }
    Property Value
    Type Description
    Quaternion

    ShowDebugVisuals

    Declaration
    public bool ShowDebugVisuals { get; set; }
    Property Value
    Type Description
    Boolean

    SocketEndpoint

    Declaration
    public SocketEndpoint SocketEndpoint { get; }
    Property Value
    Type Description
    SocketEndpoint

    Methods

    EnsureStateChangesAreBroadcast()

    Declaration
    public void EnsureStateChangesAreBroadcast()

    GetPeerSupportedLocalizersAsync()

    Declaration
    public Task<ISet<Guid>> GetPeerSupportedLocalizersAsync()
    Returns
    Type Description
    Task<ISet<Guid>>

    OnManagedDispose()

    Declaration
    protected override void OnManagedDispose()

    SendData(Action<BinaryWriter>)

    Declaration
    public void SendData(Action<BinaryWriter> writeCallback)
    Parameters
    Type Name Description
    Action<BinaryWriter> writeCallback

    Implements

    IPeerConnection
    In This Article
    • Constructors
      • SpatialCoordinateSystemParticipant(SocketEndpoint, GameObject, Single)
    • Properties
      • Coordinate
      • CurrentLocalizationSession
      • IsLocatingSpatialCoordinate
      • PeerDeviceTrackingState
      • PeerIsLocatingSpatialCoordinate
      • PeerSpatialCoordinateIsLocated
      • PeerSpatialCoordinateWorldPosition
      • PeerSpatialCoordinateWorldRotation
      • ShowDebugVisuals
      • SocketEndpoint
    • Methods
      • EnsureStateChangesAreBroadcast()
      • GetPeerSupportedLocalizersAsync()
      • OnManagedDispose()
      • SendData(Action<BinaryWriter>)
    • Implements
    Back to top Generated by DocFX