Class Trackables


  • public class Trackables
    extends java.lang.Object
    Collection of Trackables extensions
    • Constructor Summary

      Constructors 
      Constructor Description
      Trackables()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends com.google.ar.core.Trackable>
      java.util.stream.Stream<com.google.ar.core.AugmentedImage>
      filterAugmentedImages​(java.util.stream.Stream<T> trackables, com.google.ar.core.TrackingState trackingState, com.google.ar.core.AugmentedImage.TrackingMethod trackingMethod)
      Retrieve a filtered stream containing the Augmented Images with the specified TrackingState and TrackingMethod
      static <T extends com.google.ar.core.Trackable>
      java.util.stream.Stream<com.google.ar.core.Plane>
      filterPlanes​(java.util.stream.Stream<T> trackables, com.google.ar.core.TrackingState... trackingStates)
      Retrieve a filtered stream containing the Planes with the specified TrackingStates.
      static <T extends com.google.ar.core.Trackable>
      java.util.stream.Stream<T>
      filterTrackables​(java.util.stream.Stream<T> trackables, com.google.ar.core.TrackingState... trackingStates)
      Retrieve a filtered collection containing the trackables with the specified trackingStates.
      static <T extends com.google.ar.core.Trackable,​U extends com.google.ar.core.Trackable>
      java.util.stream.Stream<U>
      filterTrackables​(java.util.stream.Stream<T> trackables, java.lang.Class<U> type, com.google.ar.core.TrackingState... trackingStates)
      Retrieve a filtered collection containing the trackables with the specified type class and the specified trackingStates.
      static <T extends com.google.ar.core.Trackable>
      java.util.Collection<com.google.ar.core.AugmentedImage>
      getAugmentedImages​(java.util.Collection<T> trackables)
      Retrieve a filtered collection containing Augmented Images
      static <T extends com.google.ar.core.Trackable>
      java.util.Collection<com.google.ar.core.AugmentedImage>
      getAugmentedImages​(java.util.Collection<T> trackables, com.google.ar.core.TrackingState trackingState, com.google.ar.core.AugmentedImage.TrackingMethod trackingMethod)
      Retrieve a filtered collection containing the Augmented Images with the specified TrackingState and TrackingMethod
      static <T extends com.google.ar.core.Trackable>
      java.util.Collection<com.google.ar.core.Plane>
      getPlanes​(java.util.Collection<T> trackables)
      Retrieve a filtered collection containing Planes
      static <T extends com.google.ar.core.Trackable>
      java.util.Collection<com.google.ar.core.Plane>
      getPlanes​(java.util.Collection<T> trackables, com.google.ar.core.TrackingState... trackingStates)
      Retrieve a filtered collection containing the Planes with the specified TrackingStates.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Trackables

        public Trackables()
    • Method Detail

      • getPlanes

        public static <T extends com.google.ar.core.Trackable> java.util.Collection<com.google.ar.core.Plane> getPlanes​(java.util.Collection<T> trackables)
        Retrieve a filtered collection containing Planes
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
      • getPlanes

        public static <T extends com.google.ar.core.Trackable> java.util.Collection<com.google.ar.core.Plane> getPlanes​(java.util.Collection<T> trackables,
                                                                                                                        @Nullable
                                                                                                                        com.google.ar.core.TrackingState... trackingStates)
        Retrieve a filtered collection containing the Planes with the specified TrackingStates.
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
        trackingStates - the trackable tracking states or null for no states filter
      • filterPlanes

        public static <T extends com.google.ar.core.Trackable> java.util.stream.Stream<com.google.ar.core.Plane> filterPlanes​(java.util.stream.Stream<T> trackables,
                                                                                                                              @Nullable
                                                                                                                              com.google.ar.core.TrackingState... trackingStates)
        Retrieve a filtered stream containing the Planes with the specified TrackingStates.
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
        trackingStates - the trackable tracking states or null for no states filter
      • getAugmentedImages

        public static <T extends com.google.ar.core.Trackable> java.util.Collection<com.google.ar.core.AugmentedImage> getAugmentedImages​(java.util.Collection<T> trackables)
        Retrieve a filtered collection containing Augmented Images
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
      • getAugmentedImages

        public static <T extends com.google.ar.core.Trackable> java.util.Collection<com.google.ar.core.AugmentedImage> getAugmentedImages​(java.util.Collection<T> trackables,
                                                                                                                                          @Nullable
                                                                                                                                          com.google.ar.core.TrackingState trackingState,
                                                                                                                                          @Nullable
                                                                                                                                          com.google.ar.core.AugmentedImage.TrackingMethod trackingMethod)
        Retrieve a filtered collection containing the Augmented Images with the specified TrackingState and TrackingMethod
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
        trackingState - the trackable tracking state or null for no states filter
        trackingMethod - the trackable tracking method or null for no tracking method filter
      • filterAugmentedImages

        public static <T extends com.google.ar.core.Trackable> java.util.stream.Stream<com.google.ar.core.AugmentedImage> filterAugmentedImages​(java.util.stream.Stream<T> trackables,
                                                                                                                                                @Nullable
                                                                                                                                                com.google.ar.core.TrackingState trackingState,
                                                                                                                                                @Nullable
                                                                                                                                                com.google.ar.core.AugmentedImage.TrackingMethod trackingMethod)
        Retrieve a filtered stream containing the Augmented Images with the specified TrackingState and TrackingMethod
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
        trackingState - the trackable tracking state or null for no states filter
        trackingMethod - the trackable tracking method or null for no tracking method filter
      • filterTrackables

        public static <T extends com.google.ar.core.Trackable,​U extends com.google.ar.core.Trackable> java.util.stream.Stream<U> filterTrackables​(java.util.stream.Stream<T> trackables,
                                                                                                                                                        java.lang.Class<U> type,
                                                                                                                                                        @Nullable
                                                                                                                                                        com.google.ar.core.TrackingState... trackingStates)
        Retrieve a filtered collection containing the trackables with the specified type class and the specified trackingStates.
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
        trackingStates - the trackable tracking states or null for no states filter
      • filterTrackables

        public static <T extends com.google.ar.core.Trackable> java.util.stream.Stream<T> filterTrackables​(java.util.stream.Stream<T> trackables,
                                                                                                           @Nullable
                                                                                                           com.google.ar.core.TrackingState... trackingStates)
        Retrieve a filtered collection containing the trackables with the specified trackingStates.
        Parameters:
        trackables - the all or updated trackables retrieved from Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class) depending on your needs.
        trackingStates - the trackable tracking states or null for no states filter