Class TofArModelingManager
下記機能を有する
- Modelingデータの取得
- ストリーム開始イベント通知
- ストリーム終了イベント通知
- フレーム到着通知
- 録画ファイルの再生
Inheritance
Inherited Members
Namespace: TofAr.V0.Modeling
Assembly: TofArModelingAssembly.dll
Syntax
public class TofArModelingManager : Singleton<TofArModelingManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
trueの場合、アプリケーション開始時に自動的にModelingデータのストリームを開始する
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
Properties
ConfidenceCorrectionInvalidValue
ConfidenceCorrection処理でDepthピクセルに設定する無効値
デフォルト値:32001
Declaration
public ushort ConfidenceCorrectionInvalidValue { get; set; }
Property Value
Type |
---|
System.UInt16 |
ConfidenceCorrectionThreshold
ConfidenceCorrection処理の閾値
デフォルト値:0
Declaration
public ushort ConfidenceCorrectionThreshold { get; set; }
Property Value
Type |
---|
System.UInt16 |
DefineTargetSpace
ターゲットスペース定義の有無 (デフォルト値:false)
Declaration
public bool DefineTargetSpace { get; set; }
Property Value
Type |
---|
System.Boolean |
DepthConfidenceThresh
深度信頼マップの閾値 (デフォルト値:0.5)
Declaration
public float DepthConfidenceThresh { get; set; }
Property Value
Type |
---|
System.Single |
DepthFar
この設定値以遠のDepthピクセルをモデリング対象外とする(デフォルト値:3200)
Declaration
[Obsolete]
public float DepthFar { get; set; }
Property Value
Type |
---|
System.Single |
DepthScale
Depthデータのスケール係数
Declaration
public float DepthScale { get; set; }
Property Value
Type |
---|
System.Single |
EnableConfidenceCorrection
trueの場合はConfidence値がconfidenceCorrectionThresholdより小さいピクセルはDepth値をconfidenceCorrectionInvalidValueとする
デフォルト値:true
Declaration
public bool EnableConfidenceCorrection { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableFakeSparseDepth
疑似Sparse深度データの有効/無効
Declaration
public bool EnableFakeSparseDepth { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableFrustumCulling
視錐台カリングの有無 (デフォルト値:true)
Declaration
public bool EnableFrustumCulling { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableVoxelPruning
ボクセル剪定の有無 (デフォルト値:false)
Declaration
public bool EnableVoxelPruning { get; set; }
Property Value
Type |
---|
System.Boolean |
EstimateInterval
3DMesh出力を行うUpdate間隔
Declaration
public uint EstimateInterval { get; set; }
Property Value
Type |
---|
System.UInt32 |
EstimateUpdatedSurface
true: 3DMesh出力時に変化があった部分のみ更新する
false: 3DMesh出力時に全てのMeshを更新する
(デフォルト値:false)
Declaration
public bool EstimateUpdatedSurface { get; set; }
Property Value
Type |
---|
System.Boolean |
FrameRate
実測FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
IsPlaying
trueの場合、録画ファイルを再生している
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsProcessConfidence
true: Confidenceデータをモデリングに利用する
false: Confidenceデータをモデリングに利用しない
(デフォルト値:false)
Declaration
public bool IsProcessConfidence { get; set; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
trueの場合ストリーミングを行っている
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
IsVoxelProjection
VoxelProjectionの有効/無効
Declaration
public bool IsVoxelProjection { get; set; }
Property Value
Type |
---|
System.Boolean |
MaxDepthMeasurement
深度測定の最大距離 (デフォルト値:5.0)
Declaration
public float MaxDepthMeasurement { get; set; }
Property Value
Type |
---|
System.Single |
MaxTargetSpace
ターゲットスペース境界ボックス最大値の[X,Y,Z]
Declaration
public Vector3 MaxTargetSpace { get; set; }
Property Value
Type |
---|
UnityEngine.Vector3 |
MinDepthMeasurement
深度測定の最小距離 (デフォルト値:0.2)
Declaration
public float MinDepthMeasurement { get; set; }
Property Value
Type |
---|
System.Single |
MinTargetSpace
ターゲットスペース境界ボックス最小値の[X,Y,Z]
Declaration
public Vector3 MinTargetSpace { get; set; }
Property Value
Type |
---|
UnityEngine.Vector3 |
ModelingData
最新のModelingデータ
Declaration
public ModelingData ModelingData { get; }
Property Value
Type |
---|
ModelingData |
NumMaxBlocks
最大ブロック数 (デフォルト値:1000)
Declaration
public uint NumMaxBlocks { get; set; }
Property Value
Type |
---|
System.UInt32 |
Stream
ストリーム
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
TargetFakeSparseDepthPoints
疑似Sparse深度ポイント数
Declaration
public int TargetFakeSparseDepthPoints { get; set; }
Property Value
Type |
---|
System.Int32 |
UpdateInterval
Depthデータをモデリング処理に入力する間隔フレーム数(デフォルト値:3)
Declaration
public uint UpdateInterval { get; set; }
Property Value
Type |
---|
System.UInt32 |
Version
コンポーネントのバージョン番号
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
VoxelSize
ボクセルサイズ (デフォルト値:0.05)
Declaration
public float VoxelSize { get; set; }
Property Value
Type |
---|
System.Single |
WeightMax
最大ウェイト値 (デフォルト値:30.0)
Declaration
public float WeightMax { get; set; }
Property Value
Type |
---|
System.Single |
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 | A |
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 TofArModelingManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArModelingManager.ApplicationPausingEventHandler |
OnApplicationResuming
アプリケーション復帰開始時
Declaration
public static event TofArModelingManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArModelingManager.ApplicationResumingEventHandler |
OnFrameArrived
新しいフレームの到着通知
Declaration
public static event TofArModelingManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArModelingManager.FrameArrivedEventHandler |
OnStreamStarted
ストリーミング開始通知
Declaration
public static event TofArModelingManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArModelingManager.StreamStartedEventHandler |
OnStreamStopped
ストリーミング終了通知
Declaration
public static event TofArModelingManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArModelingManager.StreamStoppedEventHandler |