Class MegaTrackerFrameFilter
- 命名空间
- easyar
- 程序集
- EasyAR.Sense.dll
在场景中控制easyar.MegaTracker的MonoBehaviour,在Unity环境下提供功能扩展。
[RequireComponent(typeof(BlockHolder))]
public class MegaTrackerFrameFilter : FrameFilter
- 继承
-
MegaTrackerFrameFilter
属性
BlockHolder
持有Block的组件,在场景中持有并管理Block。
public BlockHolder BlockHolder { get; }
LandmarkFilter
ServiceType为Landmark时的Mega Landmark 过滤功能。开始时你需要手动调用FilterBySpotId(string, Action<MegaLandmarkFilterResponse>)。在Filter返回Found之前Tracker将不会开始跟踪。
public Optional<MegaLandmarkFilterWrapper> LandmarkFilter { get; }
LocationInputMode
public MegaLocationInputMode LocationInputMode { get; set; }
MinInputFrameLevel
输入帧最小允许的MegaInputFrameLevel。如果frame source只能给出维度更低CameraTransformType的数据,Session会启动失败。需要在Session启动前设置。
public MegaInputFrameLevel MinInputFrameLevel { get; set; }
ProximityLocation
邻近位置结果。
public Optional<ProximityLocationResult> ProximityLocation { set; }
RequestMessage
public string RequestMessage { get; set; }
RequestTimeParameters
请求时间参数。
public MegaRequestTimeParameters RequestTimeParameters { get; set; }
ResultPoseType
结果姿态类型参数。通常请勿修改,用于在特殊场景控制定位等,会影响跟踪效果。除非向EasyAR咨询并明确理解影响,否则不要使用。
通常请勿修改,用于在特殊场景控制定位等,会影响跟踪效果。除非向EasyAR咨询并明确理解影响,否则不要使用。
public MegaResultPoseTypeParameters ResultPoseType { get; set; }
ServiceAccessData
服务访问数据。需要在Session启动前设置。使用GlobalConfig无需设置。
public ExplicitAddressAccessData ServiceAccessData { get; set; }
ServiceAccessSource
服务访问数据源类型。需要在Session启动前设置。
public MegaServiceAccessSourceType ServiceAccessSource { get; set; }
ServiceType
EasyAR Mega 服务类型。需要在Session启动前设置。
public MegaApiType ServiceType { get; set; }
SimulatorLocation
LocationInputMode == Simulator时使用的位置数据。
public Optional<Location> SimulatorLocation { get; set; }
方法
ResetTracker()
重置tracker。
public void ResetTracker()
SwitchEndPoint(ExplicitAddressAccessData, BlockRootController)
切换远端端点。
public void SwitchEndPoint(ExplicitAddressAccessData config, BlockRootController root)
参数
configroot
UpdateToken(string)
更新API Token。
public void UpdateToken(string token)
参数
token
事件
LocalizationRespond
服务定位返回事件。该事件通常用作debug,事件发生时场景中物体的位置和状态与事件中的数据无对应关系。
public event Action<MegaLocalizationResponse> LocalizationRespond