Class LensComponent
Provides a common interface for all lenses that can be bound to a photosensor array. This is used to delegate and allow the definition of new lens models for the photosensor array.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public abstract class LensComponent : MonoBehaviour
Fields
Name | Description |
---|---|
_requestProjectedImageOnSensorCallback | Callback function to invoke when the sampling is done and to notify the photosensor array. |
_sceneSampler | Common reference to the scene sampler used to collect information from the simulation. |
Properties
Name | Description |
---|---|
PendingTriggerCount | The number of triggers received since the last call to LateUpdate. |
Methods
Name | Description |
---|---|
Activate(IPhotosensorArrayDescription) | Initializes the lens component. |
Deactivate() | Releases the scene sampler and other GPU resources. |
InternalActivate(IPhotosensorArrayDescription) | Initializes child-specific parts of the lens component. |
InternalDeactivate() | Releases resources in the child implementation when the lens component is deactivated. |
InternalPostSampling(CustomPassContext, in RenderTexture) | Runs after the sampling step, before returning the frame to the sensor. Can be used to do anything with the texture after the sampling is complete. For example: post processing. |
OnSceneSamplingCompleted(CustomPassContext, RenderTexture) | Called when the sceneSampler has completed the sampling. |
Trigger(Action<ProjectedImageOnSensorRequest>) | Registers a camera trigger for later scene sampling and specifies a callback function when completed. |