Class TofArModelingManager
Has the following functions
- Get modeling data
- Event for stream start
- Event for stream end
- Event for frame arrival
- Playback of recording file
Inheritance
Inherited Members
Namespace: TofAr.V0.Modeling
Assembly: TofArModelingAssembly.dll
Syntax
public class TofArModelingManager : Singleton<TofArModelingManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
If true, Modeling data stream will automatically start when the application is started
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
Properties
ConfidenceCorrectionInvalidValue
Invalid value to set for Depth pixel in ConfidenceCorrection process
Default: 32001
Declaration
public ushort ConfidenceCorrectionInvalidValue { get; set; }
Property Value
Type |
---|
System.UInt16 |
ConfidenceCorrectionThreshold
Threshold for ConfidenceCorrection process
Default: 0
Declaration
public ushort ConfidenceCorrectionThreshold { get; set; }
Property Value
Type |
---|
System.UInt16 |
DefineTargetSpace
Define a target reconstruction space (Default: false)
Declaration
public bool DefineTargetSpace { get; set; }
Property Value
Type |
---|
System.Boolean |
DepthConfidenceThresh
Threshold value for depth confidence map (Default: 0.5)
Declaration
public float DepthConfidenceThresh { get; set; }
Property Value
Type |
---|
System.Single |
DepthFar
Depth pixels beyond this value are excluded from modeling (Default: 3200)
Declaration
[Obsolete]
public float DepthFar { get; set; }
Property Value
Type |
---|
System.Single |
DepthScale
Scale factor for depth data
Declaration
public float DepthScale { get; set; }
Property Value
Type |
---|
System.Single |
EnableConfidenceCorrection
If true, pixels with a Confidence value less than the confidenceCorrectionThreshold will have their depth value set to confidenceCorrectionInvalidValue
Default: true
Declaration
public bool EnableConfidenceCorrection { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableFakeSparseDepth
FakeSparseDepth enabled/disabled
Declaration
public bool EnableFakeSparseDepth { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableFrustumCulling
Enable Frustum Culling (Default: true)
Declaration
public bool EnableFrustumCulling { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableVoxelPruning
Enable voxel pruning (Default: false)
Declaration
public bool EnableVoxelPruning { get; set; }
Property Value
Type |
---|
System.Boolean |
EstimateInterval
Update interval for 3DMesh output
Declaration
public uint EstimateInterval { get; set; }
Property Value
Type |
---|
System.UInt32 |
EstimateUpdatedSurface
true: Update only the part that changed when outputting 3D mesh
false: Update the whole mesh when outputting 3D mesh
(Default: false)
Declaration
public bool EstimateUpdatedSurface { get; set; }
Property Value
Type |
---|
System.Boolean |
FrameRate
Actual FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
IsPlaying
True if recording file is being played
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsProcessConfidence
true: Use confidence data for modeling
false: Do not use confidence data for modeling
(Default: false)
Declaration
public bool IsProcessConfidence { get; set; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
If true, it is streaming
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
IsVoxelProjection
VoxelProjection enabled/disabled
Declaration
public bool IsVoxelProjection { get; set; }
Property Value
Type |
---|
System.Boolean |
MaxDepthMeasurement
Maximum distance for depth measurement (Default: 5.0)
Declaration
public float MaxDepthMeasurement { get; set; }
Property Value
Type |
---|
System.Single |
MaxTargetSpace
Target space maximum values in [X,Y,Z]
Declaration
public Vector3 MaxTargetSpace { get; set; }
Property Value
Type |
---|
UnityEngine.Vector3 |
MinDepthMeasurement
Minimum distance for depth measurement (Default: 0.2)
Declaration
public float MinDepthMeasurement { get; set; }
Property Value
Type |
---|
System.Single |
MinTargetSpace
Target space minimum values in [X,Y,Z]
Declaration
public Vector3 MinTargetSpace { get; set; }
Property Value
Type |
---|
UnityEngine.Vector3 |
ModelingData
Latest Modeling data
Declaration
public ModelingData ModelingData { get; }
Property Value
Type |
---|
ModelingData |
NumMaxBlocks
Maximum number of blocks (Default: 1000)
Declaration
public uint NumMaxBlocks { get; set; }
Property Value
Type |
---|
System.UInt32 |
Stream
Stream
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
TargetFakeSparseDepthPoints
FakeSparseDepth point count
Declaration
public int TargetFakeSparseDepthPoints { get; set; }
Property Value
Type |
---|
System.Int32 |
UpdateInterval
Number of interval frames to input Depth data to modeling process (Default: 3)
Declaration
public uint UpdateInterval { get; set; }
Property Value
Type |
---|
System.UInt32 |
Version
Component version No.
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
VoxelSize
Voxel size (Default: 0.05)
Declaration
public float VoxelSize { get; set; }
Property Value
Type |
---|
System.Single |
WeightMax
Maximum weight value (Default: 30.0)
Declaration
public float WeightMax { get; set; }
Property Value
Type |
---|
System.Single |
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 | A |
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 (Can not be called if already playing)
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 TofArModelingManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArModelingManager.ApplicationPausingEventHandler |
OnApplicationResuming
Application resuming
Declaration
public static event TofArModelingManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArModelingManager.ApplicationResumingEventHandler |
OnFrameArrived
Notice on arrival of new frame
Declaration
public static event TofArModelingManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArModelingManager.FrameArrivedEventHandler |
OnStreamStarted
Notice on starting of streaming
Declaration
public static event TofArModelingManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArModelingManager.StreamStartedEventHandler |
OnStreamStopped
Notice on ending of streaming
Declaration
public static event TofArModelingManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArModelingManager.StreamStoppedEventHandler |