Table of Contents

Class SparseSpatialMapController

Namespace
easyar
Assembly
EasyAR.Sense.dll

The MonoBehaviour of the map tracked by easyar.SparseSpatialMap in the scene.

[RequireComponent(typeof(SparseSpatialMapPointCloudRenderer))]
public class SparseSpatialMapController : TargetController
Inheritance
SparseSpatialMapController
Inherited Members

Properties

Info

Map information, only available after MonoBehaviour.Start.

public SparseSpatialMapController.SparseSpatialMapInfo Info { get; }

Property Value

IsDirectlyTracked

Whether the target is directly tracked.

public bool IsDirectlyTracked { get; }

Property Value

PointCloud

Point cloud data. Only available after TargetFound.

public List<Vector3> PointCloud { get; }

Property Value

PointCloudRenderer

Point cloud renderer.

public SparseSpatialMapPointCloudRenderer PointCloudRenderer { get; }

Property Value

Source

Data source for creating the map. Only effective if modified before MonoBehaviour.Start.

public SparseSpatialMapController.SourceData Source { get; set; }

Property Value

Tracker

The SparseSpatialMapTrackerFrameFilter for loading the target. If set to null, the map will be unloaded from the previously set MapWorker. Can be modified at any time; loading only occurs when the session is running.

public SparseSpatialMapTrackerFrameFilter Tracker { get; set; }

Property Value

Methods

HitTest(Vector2)

Performs a hit-test in the current point cloud, obtaining n (n>=0) position coordinates along a ray from near to far relative to the camera. pointInView needs to be normalized to [0,1]^2.

Only available when IsDirectlyTracked is true.

public List<Vector3> HitTest(Vector2 pointInView)

Parameters

pointInView

Returns