Class TofArBodyManager
TofAr Bodyコンポーネントとの接続を管理する
下記機能を有する
- Bodyデータの取得
- ストリーム開始イベント通知
- ストリーム終了イベント通知
- フレーム到着通知
- Body推定結果通知
- 録画ファイルの再生
Inheritance
Inherited Members
Namespace: TofAr.V0.Body
Assembly: TofArBodyAssembly.dll
Syntax
public class TofArBodyManager : Singleton<TofArBodyManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
trueの場合、アプリケーション開始時に自動的にBodyデータのストリームを開始する
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
Properties
BodyData
最新のBodyデータ
Declaration
public BodyData BodyData { get; }
Property Value
Type |
---|
BodyData |
DetectorType
BodyPose認識種別
Declaration
public BodyPoseDetectorType DetectorType { get; set; }
Property Value
Type |
---|
BodyPoseDetectorType |
FrameRate
実測FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
HumanTrackingMode
人物トラッキングモード
デフォルト値:TrackingOn
Declaration
public HumanTrackingMode HumanTrackingMode { get; set; }
Property Value
Type |
---|
HumanTrackingMode |
IsPlaying
trueの場合、録画ファイルを再生している
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
trueの場合ストリーミングを行っている
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
NoiseReductor
スムージングモード
デフォルト値:Low
Declaration
public NoiseReductionLevel NoiseReductor { get; set; }
Property Value
Type |
---|
NoiseReductionLevel |
RecogMode
認識モードの指定
デフォルト値:Face2Face
Declaration
public RecogMode RecogMode { get; set; }
Property Value
Type |
---|
RecogMode |
RuntimeMode
実行モードの指定
Declaration
public RuntimeMode RuntimeMode { get; set; }
Property Value
Type |
---|
RuntimeMode |
RuntimeModeAutoSet
実行モードの自動設定ON/OFF
Declaration
public bool RuntimeModeAutoSet { get; set; }
Property Value
Type |
---|
System.Boolean |
Stream
ストリーム
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
StreamPlay
再生ストリーム
Declaration
public Stream StreamPlay { get; }
Property Value
Type |
---|
SensCord.Stream |
SupportedRuntimeModes
サポートする実行モードリスト
Declaration
public RuntimeMode[] SupportedRuntimeModes { get; }
Property Value
Type |
---|
RuntimeMode[] |
Version
コンポーネントのバージョン番号
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
破棄処理
Declaration
public void Dispose()
Dispose(Boolean)
破棄処理
Declaration
public void Dispose(bool ignoreEventRelease)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ignoreEventRelease | trueの場合、イベントハンドラのクリアをスキップする |
FinalizeRestartStreamByDependManager(Object)
依存するManagerから要求されたストリーミング再スタート後処理
Declaration
public void FinalizeRestartStreamByDependManager(object requestSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | requestSource | 要求元 |
GetProperty<T>()
コンポーネントプロパティを取得する
Declaration
public T GetProperty<T>()
where T : class, IBaseProperty, new()
Returns
Type | Description |
---|---|
T | プロパティクラス |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
GetProperty<T>(T)
コンポーネントプロパティを取得する。入力パラメータvalueを指定可能。
Declaration
public T GetProperty<T>(T value)
where T : class, IBaseProperty
Parameters
Type | Name | Description |
---|---|---|
T | value | 入力パラメータ |
Returns
Type | Description |
---|---|
T | プロパティクラス |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
GetProperty<T>(T, Int32)
シリアライズ用バッファサイズを指定してコンポーネントプロパティを取得する。入力パラメータvalueを指定可能。
Declaration
public T GetProperty<T>(T value, int bufferSize)
where T : class, IBaseProperty, new()
Parameters
Type | Name | Description |
---|---|---|
T | value | 入力パラメータ |
System.Int32 | bufferSize | シリアライズ用バッファサイズ |
Returns
Type | Description |
---|---|
T | プロパティクラス |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
GetPropertyList()
Propertyリストを取得する
Declaration
public string[] GetPropertyList()
Returns
Type | Description |
---|---|
System.String[] | Propertyリスト |
RestartStreamByDependManager(Object)
依存するManagerから要求されたストリーミング再スタートを開始する
Declaration
public void RestartStreamByDependManager(object requestSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | requestSource | 要求元 |
SetProperty<T>(T)
コンポーネントプロパティを設定する
Declaration
public void SetProperty<T>(T value)
where T : class, IBaseProperty
Parameters
Type | Name | Description |
---|---|---|
T | value | 入力パラメータ |
Type Parameters
Name | Description |
---|---|
T | IBaseProperty継承クラス |
StartPlayback()
録画ファイル再生中のToFストリームをソースとして再生を開始する
Declaration
public void StartPlayback()
StartPlayback(String)
指定されたパス内の録画ファイルの再生を開始する
Declaration
public void StartPlayback(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | 再生する録画ファイルを含むディレクトリのパス |
StartStream()
ストリーミングを開始する
Declaration
public void StartStream()
StopPlayback()
録画ファイルの再生を停止する
Declaration
public void StopPlayback()
StopStream(Object)
ストリーミングを停止する
Declaration
public void StopStream(object sender = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | 送信元オブジェクト |
Events
OnApplicationPausing
アプリケーション一時停止開始時
Declaration
public static event TofArBodyManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArBodyManager.ApplicationPausingEventHandler |
OnApplicationResuming
アプリケーション復帰開始時
Declaration
public static event TofArBodyManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArBodyManager.ApplicationResumingEventHandler |
OnBodyPoseEstimated
Body推定結果通知
Declaration
public static event TofArBodyManager.OnBodyPoseEstimatedHandler OnBodyPoseEstimated
Event Type
Type | Description |
---|---|
TofArBodyManager.OnBodyPoseEstimatedHandler |
OnFrameArrived
新しいフレームの到着通知
Declaration
public static event TofArBodyManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArBodyManager.FrameArrivedEventHandler |
OnStreamStarted
ストリーミング開始通知
Declaration
public static event TofArBodyManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArBodyManager.StreamStartedEventHandler |
OnStreamStopped
ストリーミング終了通知
Declaration
public static event TofArBodyManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArBodyManager.StreamStoppedEventHandler |