docs.unity3d.com
    Show / Hide Table of Contents

    Class GridDistribution

    The role of this class is describe the distribution of OrientedPoints like a grid pattern. Useful to define how light beams are positioned to scan a specific area.

    Inheritance
    Object
    NodeRuntime
    GridDistribution
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, IPortType)
    NodeRuntime.OnPortRemoved(String)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Syntax
    [NodeCategory("Distribution", "Grid", NodeTick.Asynchronous, (LifeCycle)0, 0F, NodeMode.Standard, false)]
    public class GridDistribution : NodeRuntime

    Fields

    points

    Declaration
    [Tooltip("List of points with their orientation.")]
    [Field("Points", PortDirection.Right, FieldExtra.Write)]
    [SerializeField]
    public PortType<OrientedPoints> points
    Field Value
    Type Description
    PortType<OrientedPoints>

    xCount

    Declaration
    [Tooltip("Number of cells on X axis looking at Z+.")]
    [Field("xCount", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<uint> xCount
    Field Value
    Type Description
    PortType<UInt32>

    xStart

    Declaration
    [Tooltip("Position in meter of the first cell on X axis looking at Z+.")]
    [Field("xStart", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<float> xStart
    Field Value
    Type Description
    PortType<Single>

    xStep

    Declaration
    [Tooltip("Distance in meter between cells on X axis looking at Z+.")]
    [Field("xStep", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<float> xStep
    Field Value
    Type Description
    PortType<Single>

    yCount

    Declaration
    [Tooltip("Number of cells on Y axis looking at Z+.")]
    [Field("yCount", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<uint> yCount
    Field Value
    Type Description
    PortType<UInt32>

    yStart

    Declaration
    [Tooltip("Position in meter of the first cell on Y axis looking at Z+.")]
    [Field("yStart", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<float> yStart
    Field Value
    Type Description
    PortType<Single>

    yStep

    Declaration
    [Tooltip("Distance in meter between cells on Y axis looking at Z+.")]
    [Field("yStep", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<float> yStep
    Field Value
    Type Description
    PortType<Single>

    zOffset

    Declaration
    [Tooltip("Distance in meter on Z axis.")]
    [Field("zOffset", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
    [SerializeField]
    protected PortType<float> zOffset
    Field Value
    Type Description
    PortType<Single>

    Methods

    Disable()

    Forwarded OnDisable Unity event from the parent SystemGraphComponent

    Declaration
    public override void Disable()
    Overrides
    NodeRuntime.Disable()

    Enable(Scheduler.ClockState)

    Setup the change event on ports an generate the distribution.

    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
    NodeRuntime.Enable(Scheduler.ClockState)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023