Class LandmarkOutputPolygon
Component that contains polygon data for a landmark. Also a source for calculating other landmarks
from the polygon data.
Inheritance
LandmarkOutputPolygon
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Assembly: Unity.MARS.dll
Syntax
[MovedFrom("Unity.MARS")]
public class LandmarkOutputPolygon : MonoBehaviour, ICalculateLandmarks, ILandmarkOutput, ISimulatable
Properties
AvailableLandmarkDefinitions
A list of landmark definitions that this class can support.
Declaration
public virtual List<LandmarkDefinition> AvailableLandmarkDefinitions { get; }
Property Value
localVertices
Declaration
public List<Vector3> localVertices { get; }
Property Value
pose
Declaration
public Pose pose { get; set; }
Property Value
worldVertices
Declaration
public List<Vector3> worldVertices { get; }
Property Value
Methods
FireDataChangeEvent()
Declaration
protected void FireDataChangeEvent()
GetLandmarkCalculation(LandmarkDefinition)
Get an action that calculates a landmark with the given definition. If the landmark
does not have the proper settings or output set up, it should return null
Declaration
public virtual Action<ILandmarkController> GetLandmarkCalculation(LandmarkDefinition definition)
Parameters
Type |
Name |
Description |
LandmarkDefinition |
definition |
The landmark definition to get the calculation for
|
Returns
SetPolygonLocalSpace(List<Vector3>, Pose)
Declaration
public void SetPolygonLocalSpace(List<Vector3> newLocalVertices, Pose newPose)
Parameters
SetPolygonWorldSpace(List<Vector3>, Pose)
Declaration
public void SetPolygonWorldSpace(List<Vector3> newWorldVertices, Pose newPose)
Parameters
SetupLandmark(ILandmarkController)
Called when a landmark is set to reference this source, or when the definition is changed.
The source can use this to set the default starting properties and location for the landmark.
Declaration
public void SetupLandmark(ILandmarkController landmark)
Parameters
UpdateOutput()
Called to apply the output data to the attached gameobject or scene.
This is called by the landmark controller automatically after calling the source's calculation method.
Declaration
public void UpdateOutput()
Events
dataChanged
This event can be invoked by the landmark source to indicate the source data has changed.
By default, landmarks referencing this source will subscribe to this event and update.
Declaration
public event Action<ICalculateLandmarks> dataChanged
Event Type
Implements
Extension Methods