Class PhotosensorToPointCloud
The role of this class is to interpret the data incoming from the photosensor into a PointCloud data format to be consumed by the point cloud viewer node.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
public class PhotosensorToPointCloud : PhotosensorEncoder
Fields
_pointCloud
Internal reference to the point cloud used to output the result.
Declaration
protected PointCloud _pointCloud
Field Value
Type | Description |
---|---|
PointCloud |
pointCloud
Declaration
[Tooltip("Current state of the frame sampled.")]
[Field("PointCloud", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<PointCloud> pointCloud
Field Value
Type | Description |
---|---|
PortType<PointCloud> |
Methods
Disable()
Disable change event on the inTranscode port and release the graphics resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Initialize the PhotosensorEncoder compute shader with the PointCloudVfxCodec kernel and enable on change event on the on inTranscode port.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type | Name | Description |
---|---|---|
Scheduler.ClockState | clockState | The parameters of the waveform associated to this node |
Overrides
InternalPrepareDispatch(CommandBuffer, PhotosensorOutputBuffer, Int32)
Device-specific command buffer setup for conversion to point cloud.
Declaration
protected virtual void InternalPrepareDispatch(CommandBuffer cmd, PhotosensorOutputBuffer data, int sampleToEncodeCount)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command buffer provided any other ressources or parameters before dispatching the compute shader. |
PhotosensorOutputBuffer | data | The input buffer where the photosensor data is stored. |
Int32 | sampleToEncodeCount | Number of samples available from the input buffer. |
InternalUpdateOutputs(PhotosensorOutputBuffer, Int32)
Device-specific state and outputs update after conversion to point cloud.
Declaration
protected virtual void InternalUpdateOutputs(PhotosensorOutputBuffer data, int sampleToEncodeCount)
Parameters
Type | Name | Description |
---|---|---|
PhotosensorOutputBuffer | data | The input buffer where the photosensor data is stored. |
Int32 | sampleToEncodeCount | Number of samples available from the input buffer. |
Transcode(CustomPassContext)
Add to the command buffer the conversion of the photosensor sampling data into a point cloud buffer.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom pass context |