MLXrAnchorSubsystem
NameSpace: Subsystems
The Magic Leap implementation of the XRAnchorSubsystem . Do not create this directly. Use XRAnchorSubsystemDescriptor.Create() instead.
Inherits from:
XRAnchorSubsystem
Public Methods
AnchorConfidence GetAnchorConfidence
public AnchorConfidence GetAnchorConfidence(
ARAnchor arAnchor
)
Parameters
| Type | Name | Description |
|---|---|---|
| ARAnchor | arAnchor |
ulong GetAnchorId
public ulong GetAnchorId(
ARAnchor arAnchor
)
Parameters
| Type | Name | Description |
|---|---|---|
| ARAnchor | arAnchor |
string GetAnchorMapPositionId
public string GetAnchorMapPositionId(
ARAnchor arAnchor
)
Parameters
| Type | Name | Description |
|---|---|---|
| ARAnchor | arAnchor |
Pose GetAnchorPose
public Pose GetAnchorPose(
ARAnchor arAnchor
)
Parameters
| Type | Name | Description |
|---|---|---|
| ARAnchor | arAnchor |
Pose GetAnchorPoseFromID
public Pose GetAnchorPoseFromID(
ulong anchorId
)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | anchorId |
Pose GetAnchorPoseFromId
public Pose GetAnchorPoseFromId(
ulong anchorId
)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | anchorId |
TrackableId GetTrackableIdFromMapPositionId
public TrackableId GetTrackableIdFromMapPositionId(
string mapPositionId
)
Parameters
| Type | Name | Description |
|---|---|---|
| string | mapPositionId |
bool IsStoredAnchor
public bool IsStoredAnchor(
ARAnchor arAnchor
)
Parameters
| Type | Name | Description |
|---|---|---|
| ARAnchor | arAnchor |
void RegisterDescriptor
public static void RegisterDescriptor()
Public Enums
AnchorConfidence
| Enumerator | Value | Description |
|---|---|---|
| NotFound | 0 | |
| Low | 1 | |
| Medium | 2 | |
| High | 3 |