Class SceneSampler
This class provide a common interface and functionality for all type of samplers.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public abstract class SceneSampler
Constructors
Name | Description |
---|---|
Scene |
At construction, the sampler registers event handlers to update exposure time and gain. |
Fields
Name | Description |
---|---|
_camera | Unity camera used to emulate the photosensor array. |
_custom |
Keep a list of custom pass added to the camera volume. Used to hook a unity camera just before the post processing step. We take the buffer and do the post processing step ourself in the graph. |
_is |
Indicate that the photosensor array received a sampling request from the controller. |
_output |
The sampled output texture. |
_sampler |
Describe sampler specific information. |
_sampling |
Store the function to call back when the sampling request is completed. |
_sensor |
Describe an array of photosensors on a plane. |
Methods
Name | Description |
---|---|
Async |
Used to capture the projected image on the sensor. |
Create |
Creates a camera descriptor from the scene sample descriptor. |
Create |
Create hook on the camera to retrieve the output. |
Internal |
Use by child class to release extra resources. |
On |
Call the request callback with the camera results. |
On |
Sets the amount of time the photosensor is capturing light, in seconds. |
On |
Set amplification factor applied to the captured light. |
Release() | Use to release any resources created for the sampling or delete any game object construction in the scene. |
Subscribe |
Subscribe handlers that react when the photosensor array description changes. |
Unsubscribe |
Unsubscribe handlers that react when the photosensor array description changes. |