Exemple #1
0
 /// <summary>
 /// Unsubscribe from the pointUpdated event, which is called when a reference point is updated
 /// </summary>
 /// <param name="pointUpdated">The delegate to unsubscribe</param>
 public static void UnsubscribePointUpdated(this IUsesReferencePoints obj, Action <MRReferencePoint> pointUpdated)
 {
     obj.provider.pointUpdated -= pointUpdated;
 }
Exemple #2
0
 /// <summary>
 /// Subscribe to the pointRemoved event, which is called when a reference point is removed
 /// </summary>
 /// <param name="pointRemoved">The delegate to subscribe</param>
 public static void SubscribePointRemoved(this IUsesReferencePoints obj, Action <MRReferencePoint> pointRemoved)
 {
     obj.provider.pointRemoved += pointRemoved;
 }
Exemple #3
0
 /// <summary>
 /// Remove a reference point
 /// </summary>
 /// <returns>true if removing the point succeeded, false otherwise</returns>
 public static bool TryRemoveReferencePoint(this IUsesReferencePoints obj, MarsTrackableId referencePointId)
 {
     return(obj.provider.TryRemoveReferencePoint(referencePointId));
 }
Exemple #4
0
 /// <summary>
 /// Get a reference point
 /// </summary>
 /// <returns>true if getting the point succeeded, false otherwise</returns>
 public static bool TryGetReferencePoint(this IUsesReferencePoints obj, MarsTrackableId referencePointId, out MRReferencePoint point)
 {
     return(obj.provider.TryGetReferencePoint(referencePointId, out point));
 }
Exemple #5
0
 /// <summary>
 /// Add a reference point
 /// </summary>
 /// <returns>true if adding the point succeeded, false otherwise</returns>
 public static bool TryAddReferencePoint(this IUsesReferencePoints obj, Pose pose, out MarsTrackableId referencePointId)
 {
     return(obj.provider.TryAddReferencePoint(pose, out referencePointId));
 }
Exemple #6
0
 /// <summary>
 /// Get all registered reference points
 /// </summary>
 /// <param name="referencePoints">A list of MRReferencePoint objects to which the currently tracked reference points will be added</param>
 public static void GetAllReferencePoints(this IUsesReferencePoints obj, List <MRReferencePoint> referencePoints)
 {
     obj.provider.GetAllReferencePoints(referencePoints);
 }
Exemple #7
0
 /// <summary>
 /// Start tracking reference points. Point cloud detection is enabled on initialization, so this is only necessary after
 /// calling StopDetecting.
 /// </summary>
 public static void StartTrackingReferencePoints(this IUsesReferencePoints obj)
 {
     obj.provider.StartTrackingReferencePoints();
 }