Beispiel #1
0
        /// <summary>
        /// Matches the given <see cref="InteractorFacade"/> in the <see cref="Elements"/> and restores the cached <see cref="InteractorFacade.GrabPrecognition"/>.
        /// </summary>
        /// <param name="interactorFacade">The <see cref="InteractorFacade"/> to update.</param>
        public virtual void RestoreCachedGrabPrecognition(InteractorFacade interactorFacade)
        {
            InteractorElement interactor = Elements.Find(interactorElement => interactorElement.TargetFacade.Equals(interactorFacade));

            if (interactor != null)
            {
                interactor.RestoreCachedGrabPrecognition();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Matches the given <see cref="InteractorFacade"/> in the <see cref="Elements"/> and restores the cached <see cref="InteractorFacade.VelocityTracker"/>.
        /// </summary>
        /// <param name="interactorFacade">The <see cref="InteractorFacade"/> to update.</param>
        public virtual void RestoreCachedVelocityTracker(InteractorFacade interactorFacade)
        {
            InteractorElement interactor = Elements.Find(interactorElement => interactorElement.TargetFacade.Equals(interactorFacade));

            if (interactor != null)
            {
                interactor.RestoreCachedVelocityTracker();
            }
        }
Beispiel #3
0
        public virtual void SetTargetGrabPrecognition(InteractorFacade interactorFacade)
        {
            InteractorElement interactor = Elements.Find(x => x.TargetFacade.Equals(interactorFacade));

            if (interactor != null)
            {
                interactor.SetTargetGrabPrecognition(CacheElementSettings);
            }
        }
Beispiel #4
0
        public virtual void SetTargetVelocityTracker(InteractorFacade interactorFacade)
        {
            InteractorElement interactor = Elements.Find(x => x.TargetFacade.Equals(interactorFacade));

            if (interactor != null)
            {
                interactor.SetTargetVelocityTracker(CacheElementSettings);
            }
        }