Class HeadsetCalibrationData
Data that the HoloLens device sends to the editor during calibration.
Inherited Members
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 |
---|---|
Headset |
markers
QR Code and ArUco marker locations in world space.
Declaration
public List<MarkerPair> markers
Field Value
Type | Description |
---|---|
List<Marker |
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 |
---|---|---|
Binary |
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 |
---|---|---|
Binary |
reader | Binary reader to obtain serialized data from |
Headset |
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 |
Headset |
headsetCalibrationData | output headset calibration data |
Returns
Type | Description |
---|---|
Boolean | Returns true if the provided payload could be converted into headset calibration data, otherwise false. |