Search Results for

    Show / Hide Table of Contents

    Class SpatialAnchorStore

    Spatial Mapping observer.

    Inheritance
    object
    SpatialAnchorStore
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.XR.SpatialAnchors
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class SpatialAnchorStore : IDisposable

    Properties

    IsSupported

    Gets a value indicating whether the spatial mapping is supported.

    Declaration
    public abstract bool IsSupported { get; }
    Property Value
    Type Description
    bool

    SavedAnchors

    Gets the saved spatial anchors.

    Declaration
    public abstract IReadOnlyDictionary<string, SpatialAnchor> SavedAnchors { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, SpatialAnchor>

    Methods

    CreateSpatialAnchor(Vector3)

    Creates a spatial Anchor.

    Declaration
    public abstract SpatialAnchor CreateSpatialAnchor(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position

    The anchor position.

    Returns
    Type Description
    SpatialAnchor

    The new spatial anchor.

    CreateSpatialAnchor(Vector3, Quaternion)

    Creates a spatial Anchor.

    Declaration
    public abstract SpatialAnchor CreateSpatialAnchor(Vector3 position, Quaternion orientation)
    Parameters
    Type Name Description
    Vector3 position

    The anchor position.

    Quaternion orientation

    The anchor orientation.

    Returns
    Type Description
    SpatialAnchor

    The new spatial anchor.

    Destroy()

    Destroy all resources of this instance.

    Declaration
    protected virtual void Destroy()

    Dispose()

    Public implementation of Dispose pattern callable by consumers.

    Declaration
    public void Dispose()

    Dispose(bool)

    Protected implementation of Dispose pattern.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Dispose native elements.

    ~SpatialAnchorStore()

    Finalizes an instance of the SpatialAnchorStore class.

    Declaration
    protected ~SpatialAnchorStore()

    Initialize()

    Initialize this instance.

    Declaration
    public abstract void Initialize()

    RemoveAllAnchors()

    Removes all stored anchors.

    Declaration
    public abstract void RemoveAllAnchors()

    RemoveAnchor(string)

    Remove a spatial anchor.

    Declaration
    public abstract void RemoveAnchor(string id)
    Parameters
    Type Name Description
    string id

    The anchor id.

    StoreAnchor(string, SpatialAnchor)

    Store a spatial anchor into this store.

    Declaration
    public abstract bool StoreAnchor(string id, SpatialAnchor spatialAnchor)
    Parameters
    Type Name Description
    string id

    The identifier of the anchor.

    SpatialAnchor spatialAnchor

    The spatial anchor to store.

    Returns
    Type Description
    bool

    True if the anchor has been stored successfully.

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX