Class PointCloudViewer
The role of this class is to instanciate a vfx on the main camera that will display the PointCloud data received on its
input port.
Inheritance
PointCloudViewer
Syntax
[NodeCategory("Viewer", "Point cloud viewer", NodeTick.Asynchronous, LifeCycle.Update, 0F, NodeMode.Standard, false)]
public class PointCloudViewer : NodeRuntime
Fields
Declaration
[Binding("Transform")]
[SerializeField]
protected Binding<Transform> boundTransform
Field Value
enable
Declaration
[Tooltip("Active the node.")]
[Field("Enable", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<bool> enable
Field Value
isColorByDistance
Declaration
[Tooltip("Define if the point coloring should be based on distance or intensity.")]
[Field("colorByDistance", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<bool> isColorByDistance
Field Value
pointCloud
Declaration
[Tooltip("Point cloud to visualize.")]
[Field("PointCloud", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<PointCloud> pointCloud
Field Value
pointCloudViewerName
Declaration
[Tooltip("Name of the gameobject set on the main camera that will host the point cloud vfx.")]
[Field("PointCloudViewerName", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<string> pointCloudViewerName
Field Value
pointSize
Declaration
[Tooltip("Define the point size in meters.")]
[Field("pointSize", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> pointSize
Field Value
Methods
Disable()
Destroy the GameObject that host the vfx used to display point cloud.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Create a game object on the main camera and instanciate a vfx to display a point cloud.
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
Update()
Update the point cloud vfx parameters
Declaration
public override void Update()
Overrides