Class TofArBodyManager
Manages the connection with TofAr Body component
Has the following functions
- Get Body data
- Notice on (data) stream starting event
- Notice on (data) stream ending event
- Notice on arrival of frame
- Notice on Body estimation result event
- Playback of recording file
Inheritance
Inherited Members
Namespace: TofAr.V0.Body
Assembly: TofArBodyAssembly.dll
Syntax
public class TofArBodyManager : Singleton<TofArBodyManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
If true, Body data stream will automatically start when the application is started
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
Properties
BodyData
Latest Body data
Declaration
public BodyData BodyData { get; }
Property Value
Type |
---|
BodyData |
DetectorType
BodyPose recognition type
Declaration
public BodyPoseDetectorType DetectorType { get; set; }
Property Value
Type |
---|
BodyPoseDetectorType |
FrameRate
Actual FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
HumanTrackingMode
Human tracking mode
Default value: TrackingOn
Declaration
public HumanTrackingMode HumanTrackingMode { get; set; }
Property Value
Type |
---|
HumanTrackingMode |
IsPlaying
True if recording file is being played
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
If true, it is streaming
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
NoiseReductor
Noise reduction level
Default value: Low
Declaration
public NoiseReductionLevel NoiseReductor { get; set; }
Property Value
Type |
---|
NoiseReductionLevel |
RecogMode
Recognition mode setting
Default value: Face2Face
Declaration
public RecogMode RecogMode { get; set; }
Property Value
Type |
---|
RecogMode |
RuntimeMode
Runtime mode selection
Declaration
public RuntimeMode RuntimeMode { get; set; }
Property Value
Type |
---|
RuntimeMode |
RuntimeModeAutoSet
Toggle for automatically setting runtime mode
Declaration
public bool RuntimeModeAutoSet { get; set; }
Property Value
Type |
---|
System.Boolean |
Stream
Stream
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
StreamPlay
Playback stream
Declaration
public Stream StreamPlay { get; }
Property Value
Type |
---|
SensCord.Stream |
SupportedRuntimeModes
List of supported runtime modes
Declaration
public RuntimeMode[] SupportedRuntimeModes { get; }
Property Value
Type |
---|
RuntimeMode[] |
Version
Component version No.
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
Disposal method
Declaration
public void Dispose()
FinalizeRestartStreamByDependManager(Object)
Post-processing of stream restart requested by dependent managers
Declaration
public void FinalizeRestartStreamByDependManager(object requestSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | requestSource | Requester |
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 |
RestartStreamByDependManager(Object)
Restart stream as requested by dependent managers
Declaration
public void RestartStreamByDependManager(object requestSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | requestSource | Requester |
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 |
StartPlayback()
Start playback using ToF stream from recording file being played as source
Declaration
public void StartPlayback()
StartPlayback(String)
Start playback of the recording file from the specified path
Declaration
public void StartPlayback(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Directory path of recording file to playback |
StartStream()
Start streaming
Declaration
public void StartStream()
StopPlayback()
Stop playback of recording file
Declaration
public void StopPlayback()
StopStream(Object)
Stop streaming
Declaration
public void StopStream(object sender = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Caller object |
Events
OnApplicationPausing
Application pausing
Declaration
public static event TofArBodyManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArBodyManager.ApplicationPausingEventHandler |
OnApplicationResuming
Application resuming
Declaration
public static event TofArBodyManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArBodyManager.ApplicationResumingEventHandler |
OnBodyPoseEstimated
Notice on Body estimation result event
Declaration
public static event TofArBodyManager.OnBodyPoseEstimatedHandler OnBodyPoseEstimated
Event Type
Type | Description |
---|---|
TofArBodyManager.OnBodyPoseEstimatedHandler |
OnFrameArrived
Notice on arrival of new frame
Declaration
public static event TofArBodyManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArBodyManager.FrameArrivedEventHandler |
OnStreamStarted
Notice on starting of streaming
Declaration
public static event TofArBodyManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArBodyManager.StreamStartedEventHandler |
OnStreamStopped
Notice on ending of streaming
Declaration
public static event TofArBodyManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArBodyManager.StreamStoppedEventHandler |