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. Modifications are only valid before MonoBehaviour.Start.

public SparseSpatialMapController.SourceData Source { get; set; }

Property Value

Tracker

Loading target's SparseSpatialMapTrackerFrameFilter. If set to null, the map will be unloaded from the previously set MapWorker. It can be modified at any time, and loading will only occur during session runtime.

public SparseSpatialMapTrackerFrameFilter Tracker { get; set; }

Property Value

Methods

HitTest(Vector2)

Perform a Hit Test in the current point cloud to get n (n>=0) position coordinates on a ray from the camera from near to far. pointInView needs to be normalized to [0, 1]^2.

Only available when IsDirectlyTracked is true.

public List<Vector3> HitTest(Vector2 pointInView)

Parameters

pointInView

Returns