Class TofArPlaneManager
TofAr Planeコンポーネントとの接続を管理する
下記機能を有する
- 平面検出パラメータの設定
- 平面検出データの取得
- ストリーム開始イベント通知
- ストリーム終了イベント通知
- フレーム到着通知
- 平面検出基準点追加
- 平面検出基準点削除
- 録画ファイルの再生
Inheritance
Inherited Members
Namespace: TofAr.V0.Plane
Assembly: TofArPlaneAssembly.dll
Syntax
public class TofArPlaneManager : Singleton<TofArPlaneManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
trueの場合、アプリケーション開始時に自動的にPlaneデータのストリームを開始する
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 |
PlaneData
最新のPlaneデータ
Declaration
public PlaneData PlaneData { get; }
Property Value
Type |
---|
PlaneData |
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
AddPlane()
平面検出基準点を追加する
Declaration
public void AddPlane()
ClearPlanes()
全ての平面を削除する
Declaration
public void ClearPlanes()
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)
シリアライズ用バッファサイズを指定してコンポーネントプロパティを取得する
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)
コンポーネントプロパティを取得する
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リスト |
RegisterPlanePreProcessing(IPreProcessPlaneData)
Planeデータ送出前の処理を登録する
Declaration
public void RegisterPlanePreProcessing(IPreProcessPlaneData preProcessTof)
Parameters
Type | Name | Description |
---|---|---|
IPreProcessPlaneData | preProcessTof |
RemovePlane(Int32)
平面検出基準点を削除する
Declaration
public void RemovePlane(int idx)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | idx | 削除する平面検出基準点 |
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()
StartStream(AlgorithmConfigProperty)
ストリーミングを開始する
Declaration
public void StartStream(AlgorithmConfigProperty config)
Parameters
Type | Name | Description |
---|---|---|
AlgorithmConfigProperty | config | ストリーミングに使用する平面検出パラメータ |
StopPlayback()
録画ファイルの再生を停止する
Declaration
public void StopPlayback()
StopStream(Object)
ストリーミングを停止する
Declaration
public void StopStream(object sender = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | 送信元オブジェクト |
UnregisterPlanePreProcessing(IPreProcessPlaneData)
Planeデータ送出前の処理を登録解除する
Declaration
public void UnregisterPlanePreProcessing(IPreProcessPlaneData preProcessTof)
Parameters
Type | Name | Description |
---|---|---|
IPreProcessPlaneData | preProcessTof |
Events
OnApplicationPausing
アプリケーション一時停止開始時
Declaration
public static event TofArPlaneManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArPlaneManager.ApplicationPausingEventHandler |
OnApplicationResuming
アプリケーション復帰開始時
Declaration
public static event TofArPlaneManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArPlaneManager.ApplicationResumingEventHandler |
OnFrameArrived
新しいフレームの到着通知
Declaration
public static event TofArPlaneManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArPlaneManager.FrameArrivedEventHandler |
OnPlaneAdded
平面検出基準点追加通知
Declaration
public static event TofArPlaneManager.PlaneAddedEventHandler OnPlaneAdded
Event Type
Type | Description |
---|---|
TofArPlaneManager.PlaneAddedEventHandler |
OnPlaneRemoved
平面検出基準点削除通知
Declaration
public static event TofArPlaneManager.PlaneRemovedEventHandler OnPlaneRemoved
Event Type
Type | Description |
---|---|
TofArPlaneManager.PlaneRemovedEventHandler |
OnStreamStarted
ストリーミング開始通知
Declaration
public static event TofArPlaneManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArPlaneManager.StreamStartedEventHandler |
OnStreamStopped
ストリーミング終了通知
Declaration
public static event TofArPlaneManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArPlaneManager.StreamStoppedEventHandler |