Class SparseSpatialMapController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
A MonoBehaviour for a map tracked by easyar.SparseSpatialMap in the scene.
[RequireComponent(typeof(SparseSpatialMapPointCloudRenderer))]
public class SparseSpatialMapController : TargetController
- Inheritance
-
SparseSpatialMapController
- Inherited Members
Properties
Info
Map information, available only after MonoBehaviour.Start.
public SparseSpatialMapController.SparseSpatialMapInfo Info { get; }
IsDirectlyTracked
Whether the target is directly tracked.
public bool IsDirectlyTracked { get; }
PointCloud
Point cloud data. Available only after TargetFound.
public List<Vector3> PointCloud { get; }
PointCloudRenderer
Point cloud renderer.
public SparseSpatialMapPointCloudRenderer PointCloudRenderer { get; }
Source
The data source used to create the map. Changes are effective only before MonoBehaviour.Start.
public SparseSpatialMapController.SourceData Source { get; set; }
Tracker
The SparseSpatialMapTrackerFrameFilter that loads the target. If set to null, the map will be unloaded from the previously set MapWorker. It can be changed at any time; loading only occurs while the session is running.
public SparseSpatialMapTrackerFrameFilter Tracker { get; set; }
Methods
HitTest(Vector2)
Performs a Hit Test in the current point cloud, obtaining n (n>=0) position coordinates on a ray from near to far relative to the camera. pointInView needs to be normalized to [0, 1]^2.
Available only when IsDirectlyTracked is true.
public List<Vector3> HitTest(Vector2 pointInView)
Parameters
pointInView