Show / Hide Table of Contents

    Class HeadsetCalibrationData

    Data that the HoloLens device sends to the editor during calibration.

    Inheritance
    Object
    HeadsetCalibrationData
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class HeadsetCalibrationData

    Fields

    headsetData

    The headset world position and orientation.

    Declaration
    public HeadsetData headsetData
    Field Value
    Type Description
    HeadsetData

    markers

    QR Code and ArUco marker locations in world space.

    Declaration
    public List<MarkerPair> markers
    Field Value
    Type Description
    List<MarkerPair>

    timestamp

    The HoloLens device's application time when this data was created.

    Declaration
    public float timestamp
    Field Value
    Type Description
    Single

    Methods

    Serialize()

    Call to serialize class contents into a byte array for sending over a network.

    Declaration
    public byte[] Serialize()
    Returns
    Type Description
    Byte[]

    byte array payload

    SerializeAndWrite(BinaryWriter)

    Call to serialize and write a byte array to the provided binary writer.

    Declaration
    public void SerializeAndWrite(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    Writer that serialized data is written to

    TryDeserialize(BinaryReader, out HeadsetCalibrationData)

    Call to try and create a HeadsetCalibrationData instance from a binary reader.

    Declaration
    public static bool TryDeserialize(BinaryReader reader, out HeadsetCalibrationData headsetCalibrationData)
    Parameters
    Type Name Description
    BinaryReader reader

    Binary reader to obtain serialized data from

    HeadsetCalibrationData headsetCalibrationData

    output headset calibration data

    Returns
    Type Description
    Boolean

    Returns true if the provided binary reader could be used to create headset calibration data, otherwise false.

    TryDeserialize(Byte[], out HeadsetCalibrationData)

    Called to try and create a HeadsetCalibrationData instance from a byte array.

    Declaration
    public static bool TryDeserialize(byte[] payload, out HeadsetCalibrationData headsetCalibrationData)
    Parameters
    Type Name Description
    Byte[] payload

    byte array to deserialize

    HeadsetCalibrationData headsetCalibrationData

    output headset calibration data

    Returns
    Type Description
    Boolean

    Returns true if the provided payload could be converted into headset calibration data, otherwise false.

    In This Article
    • Fields
      • headsetData
      • markers
      • timestamp
    • Methods
      • Serialize()
      • SerializeAndWrite(BinaryWriter)
      • TryDeserialize(BinaryReader, out HeadsetCalibrationData)
      • TryDeserialize(Byte[], out HeadsetCalibrationData)
    Back to top Generated by DocFX