Class TofArManager
Provides SDK common functions
Inheritance
Implements
Inherited Members
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
public class TofArManager : Singleton<TofArManager>, IDisposable
Fields
autoTrackCameraPose
If true, get CameraPose from cameraPoseTracker every frame.
Declaration
[HideInInspector]
public bool autoTrackCameraPose
Field Value
Type |
---|
System.Boolean |
cameraPoseTracker
If not null, get and cache CameraPosse. CameraPose is exposed to other components via CameraPoseProperty.
Declaration
[HideInInspector]
public Transform cameraPoseTracker
Field Value
Type |
---|
UnityEngine.Transform |
deviceOrientationUpdateIntervalMs
Device rotation detection interval (ms)
Declaration
public uint deviceOrientationUpdateIntervalMs
Field Value
Type |
---|
System.UInt32 |
deviceOrientationUpdateIntervalMsOnEditorDebbug
Device rotation detection interval (ms) when connecting to TofArServer
Declaration
public uint deviceOrientationUpdateIntervalMsOnEditorDebbug
Field Value
Type |
---|
System.UInt32 |
EnabledOrientations
Enabled device orientations
Declaration
[HideInInspector]
public EnabledOrientation EnabledOrientations
Field Value
Type |
---|
EnabledOrientation |
Properties
CameraStartOrder
Start order of color and depth stream
Declaration
public CameraStartOrder CameraStartOrder { get; }
Property Value
Type |
---|
CameraStartOrder |
IsMirroring
If true, the image is flipped horizontally
Declaration
public bool IsMirroring { get; set; }
Property Value
Type |
---|
System.Boolean |
Logger
Log output process
Declaration
public static Logger Logger { get; }
Property Value
Type |
---|
Logger |
RuntimeSettings
Runtime settings
Declaration
public RuntimeSettingsProperty RuntimeSettings { get; }
Property Value
Type |
---|
RuntimeSettingsProperty |
Stream
Stream
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
UsingIos
Check for using iOS devices
*When using ToF AR Server, the information obtained from Unity Editor becomes information of device operating ToF AR Server
Declaration
public bool UsingIos { get; }
Property Value
Type |
---|
System.Boolean |
Version
Component version No.
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
Disposal method
Declaration
public void Dispose()
ForceUpdateCameraPose()
Force acquisition of CameraPose of TofArManager.cameraPoseTracker and update internal cache
Declaration
public void ForceUpdateCameraPose()
ForceUpdateDeviceOrientation()
Force update screen and device rotation cache
Declaration
public void ForceUpdateDeviceOrientation()
GetConfigSource()
Get device specific config source
Declaration
public ConfigSource GetConfigSource()
Returns
Type | Description |
---|---|
ConfigSource | Device specific config source |
GetDeviceOrientation()
Get device rotation
Declaration
public int GetDeviceOrientation()
Returns
Type | Description |
---|---|
System.Int32 | Device rotation (Unit: degrees) is returned as the following values
|
GetProperty<T>()
Get component property
Declaration
public T GetProperty<T>()
where T : class, IBaseProperty, new()
Returns
Type | Description |
---|---|
T | Property class |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty inherited class |
GetProperty<T>(T)
Get property of Component. Input parameter value may be designated.
Declaration
public T GetProperty<T>(T value)
where T : class, IBaseProperty
Parameters
Type | Name | Description |
---|---|---|
T | value | Input parameter |
Returns
Type | Description |
---|---|
T | Property class |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty inherited class |
GetProperty<T>(T, Int32)
Set the size of the serialization buffer and get component properties. Input parameter value may be designated.
Declaration
public T GetProperty<T>(T value, int bufferSize)
where T : class, IBaseProperty, new()
Parameters
Type | Name | Description |
---|---|---|
T | value | Input parameter |
System.Int32 | bufferSize | Serialization buffer size |
Returns
Type | Description |
---|---|
T | Property class |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty inherited class |
GetPropertyList()
Get property list
Declaration
public string[] GetPropertyList()
Returns
Type | Description |
---|---|
System.String[] | Property list |
GetScreenOrientation()
Get screen rotation
Declaration
public int GetScreenOrientation()
Returns
Type | Description |
---|---|
System.Int32 | Screen rotation (Unit: degrees) is returned as the following values
|
SetProperty<T>(T)
Set component property
Declaration
public void SetProperty<T>(T value)
where T : class, IBaseProperty
Parameters
Type | Name | Description |
---|---|---|
T | value | Input parameter |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty inherited class |
Events
OnApplicationPausing
Application pausing
Declaration
public static event TofArManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArManager.ApplicationPausingEventHandler |
OnApplicationResuming
Application resuming
Declaration
public static event TofArManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArManager.ApplicationResumingEventHandler |
OnDeviceOrientationUpdated
Device rotation changed event
*When using ToF AR Server, the information obtained from Unity Editor becomes information of device operating ToF AR Server
Declaration
public static event TofArManager.OnDeviceRotationChangedEvent OnDeviceOrientationUpdated
Event Type
Type | Description |
---|---|
TofArManager.OnDeviceRotationChangedEvent |
OnScreenOrientationUpdated
Screen rotation changed event
*When using ToF AR Server, the information obtained from Unity Editor becomes information of device operating ToF AR Server
Declaration
public static event TofArManager.OnScreenRotationChangedEvent OnScreenOrientationUpdated
Event Type
Type | Description |
---|---|
TofArManager.OnScreenRotationChangedEvent |