Class PhotosensorSensingComponent
Provides a common interface for all photosensor sensing components. This is used to delegate and allow the definition of new sensing components for the photosensor node.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Mechatronics.SensorSDK
Syntax
[Serializable]
public abstract class PhotosensorSensingComponent : MonoBehaviour
Methods
Activate(PhotosensorData, Action<CustomPassContext, PhotosensorOutputBuffer>)
Initializes the sensing component.
Declaration
public abstract void Activate(PhotosensorData photosensorData, Action<CustomPassContext, PhotosensorOutputBuffer> callback)
Parameters
Type | Name | Description |
---|---|---|
PhotosensorData | photosensorData | Information define on the photosensor node. |
Action<CustomPassContext, PhotosensorOutputBuffer> | callback | Provides a callback to invoke when the scene sampling is completed. |
Deactivate()
Releases the sampler and other GPU resources.
Declaration
public abstract void Deactivate()
UpdateSamplingOffsets(List<OrientedPoint>)
Updates the sensing component with new sampling offsets.
Declaration
public abstract void UpdateSamplingOffsets(List<OrientedPoint> samplingOffsets)
Parameters
Type | Name | Description |
---|---|---|
List<OrientedPoint> | samplingOffsets | The sampling offsets to update the sensing component with. |
UpdateSensingComponent(SamplingStamps)
Updates the child that implements the sensing component.
Declaration
public virtual void UpdateSensingComponent(SamplingStamps samplingStamps)
Parameters
Type | Name | Description |
---|---|---|
SamplingStamps | samplingStamps | List of sampling stamps collected on the photosensor node. |