Class TofArSegmentationManager
TofAr Segmentationコンポーネントとの接続を管理する
下記機能を有する
- Segmentationデータの取得
- ストリーム開始イベント通知
- ストリーム終了イベント通知
- フレーム到着通知
- Segmentation推定結果通知
Inheritance
Inherited Members
Namespace: TofAr.V0.Segmentation
Assembly: TofArSegmentationAssembly.dll
Syntax
public class TofArSegmentationManager : Singleton<TofArSegmentationManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
trueの場合、アプリケーション開始時に自動的にSegmentationデータのストリームを開始する
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
Properties
FrameRate
実測FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
IsPlaying
trueの場合、再生中である
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
trueの場合ストリーミングを行っている
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
SegmentationData
最新のSegmentationデータ
Declaration
public SegmentationData SegmentationData { get; }
Property Value
Type |
---|
SegmentationData |
Stream
ストリーム
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
StreamPlay
再生ストリーム
Declaration
public Stream StreamPlay { get; }
Property Value
Type |
---|
SensCord.Stream |
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()
再生を開始する
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 TofArSegmentationManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArSegmentationManager.ApplicationPausingEventHandler |
OnApplicationResuming
アプリケーション復帰開始時
Declaration
public static event TofArSegmentationManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArSegmentationManager.ApplicationResumingEventHandler |
OnFrameArrived
新規フレーム到着通知
Declaration
public static event TofArSegmentationManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArSegmentationManager.FrameArrivedEventHandler |
OnSegmentationEstimated
Segmentation推定結果通知
Declaration
public static event TofArSegmentationManager.OnSegmentationEstimatedHandler OnSegmentationEstimated
Event Type
Type | Description |
---|---|
TofArSegmentationManager.OnSegmentationEstimatedHandler |
OnStreamStarted
ストリーミング開始通知
Declaration
public static event TofArSegmentationManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArSegmentationManager.StreamStartedEventHandler |
OnStreamStopped
ストリーミング終了通知
Declaration
public static event TofArSegmentationManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArSegmentationManager.StreamStoppedEventHandler |