Class LandmarkOutputPolygon | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class LandmarkOutputPolygon

    Component that contains polygon data for a landmark. Also a source for calculating other landmarks from the polygon data.

    Inheritance
    Object
    LandmarkOutputPolygon
    PlaneLandmarksAction
    Namespace: Unity.MARS
    Syntax
    public class LandmarkOutputPolygon : MonoBehaviour, ICalculateLandmarks, ILandmarkOutput, ISimulatable

    Properties

    AvailableLandmarkDefinitions

    Declaration
    public virtual List<LandmarkDefinition> AvailableLandmarkDefinitions { get; }
    Property Value
    Type Description
    List<LandmarkDefinition>
    Implements
    ICalculateLandmarks.AvailableLandmarkDefinitions

    localVertices

    Declaration
    public List<Vector3> localVertices { get; }
    Property Value
    Type Description
    List<Vector3>

    pose

    Declaration
    public Pose pose { get; set; }
    Property Value
    Type Description
    Pose

    worldVertices

    Declaration
    public List<Vector3> worldVertices { get; }
    Property Value
    Type Description
    List<Vector3>

    Methods

    FireDataChangeEvent()

    Declaration
    protected void FireDataChangeEvent()

    GetLandmarkCalculation(LandmarkDefinition)

    Declaration
    public virtual Action<ILandmarkController> GetLandmarkCalculation(LandmarkDefinition definition)
    Parameters
    Type Name Description
    LandmarkDefinition definition
    Returns
    Type Description
    Action<ILandmarkController>
    Implements
    ICalculateLandmarks.GetLandmarkCalculation(LandmarkDefinition)

    SetPolygonLocalSpace(List<Vector3>, Pose)

    Declaration
    public void SetPolygonLocalSpace(List<Vector3> newLocalVertices, Pose newPose)
    Parameters
    Type Name Description
    List<Vector3> newLocalVertices
    Pose newPose

    SetPolygonWorldSpace(List<Vector3>, Pose)

    Declaration
    public void SetPolygonWorldSpace(List<Vector3> newWorldVertices, Pose newPose)
    Parameters
    Type Name Description
    List<Vector3> newWorldVertices
    Pose newPose

    SetupLandmark(ILandmarkController)

    Declaration
    public void SetupLandmark(ILandmarkController landmark)
    Parameters
    Type Name Description
    ILandmarkController landmark
    Implements
    ICalculateLandmarks.SetupLandmark(ILandmarkController)

    UpdateOutput()

    Declaration
    public void UpdateOutput()
    Implements
    ILandmarkOutput.UpdateOutput()

    Events

    dataChanged

    Declaration
    public event Action<ICalculateLandmarks> dataChanged
    Event Type
    Type Description
    Action<ICalculateLandmarks>
    Implements
    ICalculateLandmarks.dataChanged

    Extension Methods

    CreateLandmarkMethods.CreateLandmarkAsChild(ICalculateLandmarks, LandmarkDefinition, Type)
    Back to top
    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