Class TofArSegmentationManager
Manage the connection with TofAr Segmentation component
Has the following functions
- Get Segmentation data
- Event for stream start
- Event for stream end
- Event for stream arrival
- Event for Segmentation estimation result
Inheritance
Inherited Members
Namespace: TofAr.V0.Segmentation
Assembly: TofArSegmentationAssembly.dll
Syntax
public class TofArSegmentationManager : Singleton<TofArSegmentationManager>, IStreamStoppable, IDisposable, IStreamHolder, IDependManager
Fields
autoStart
If true, Segmentation data stream will automatically start when the application is started
Declaration
public bool autoStart
Field Value
Type |
---|
System.Boolean |
Properties
FrameRate
Actual FPS
Declaration
public float FrameRate { get; }
Property Value
Type |
---|
System.Single |
IsPlaying
true if playing
Declaration
public bool IsPlaying { get; }
Property Value
Type |
---|
System.Boolean |
IsStreamActive
If true, it is streaming
Declaration
public bool IsStreamActive { get; }
Property Value
Type |
---|
System.Boolean |
SegmentationData
Latest Segmentation data
Declaration
public SegmentationData SegmentationData { get; }
Property Value
Type |
---|
SegmentationData |
Stream
Stream
Declaration
public Stream Stream { get; }
Property Value
Type |
---|
SensCord.Stream |
StreamPlay
Playback stream
Declaration
public Stream StreamPlay { get; }
Property Value
Type |
---|
SensCord.Stream |
Version
Component version No.
Declaration
public string Version { get; }
Property Value
Type |
---|
System.String |
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 | IBaseProperty inherited class |
StartPlayback()
Start playback
Declaration
public void StartPlayback()
StartPlayback(String)
Start playback
Declaration
public void StartPlayback(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Playback file path |
StartStream()
Start streaming
Declaration
public void StartStream()
StopPlayback()
Stop playback
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 TofArSegmentationManager.ApplicationPausingEventHandler OnApplicationPausing
Event Type
Type | Description |
---|---|
TofArSegmentationManager.ApplicationPausingEventHandler |
OnApplicationResuming
Application resuming
Declaration
public static event TofArSegmentationManager.ApplicationResumingEventHandler OnApplicationResuming
Event Type
Type | Description |
---|---|
TofArSegmentationManager.ApplicationResumingEventHandler |
OnFrameArrived
Notice on arrival of new frame
Declaration
public static event TofArSegmentationManager.FrameArrivedEventHandler OnFrameArrived
Event Type
Type | Description |
---|---|
TofArSegmentationManager.FrameArrivedEventHandler |
OnSegmentationEstimated
Notice on Segmentation estimation result event
Declaration
public static event TofArSegmentationManager.OnSegmentationEstimatedHandler OnSegmentationEstimated
Event Type
Type | Description |
---|---|
TofArSegmentationManager.OnSegmentationEstimatedHandler |
OnStreamStarted
Notice on starting of streaming
Declaration
public static event TofArSegmentationManager.StreamStartedEventHandler OnStreamStarted
Event Type
Type | Description |
---|---|
TofArSegmentationManager.StreamStartedEventHandler |
OnStreamStopped
Notice on ending of streaming
Declaration
public static event TofArSegmentationManager.StreamStoppedEventHandler OnStreamStopped
Event Type
Type | Description |
---|---|
TofArSegmentationManager.StreamStoppedEventHandler |