Package com.google.ar.sceneform
Class Trackables
- java.lang.Object
-
- com.google.ar.sceneform.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 TrackingMethodstatic <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 Imagesstatic <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 TrackingMethodstatic <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 Planesstatic <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.
-
-
-
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 fromSession.getAllTrackables(Class)
orFrame.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 fromSession.getAllTrackables(Class)
orFrame.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 fromSession.getAllTrackables(Class)
orFrame.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 fromSession.getAllTrackables(Class)
orFrame.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 fromSession.getAllTrackables(Class)
orFrame.getUpdatedTrackables(Class)
depending on your needs.trackingState
- the trackable tracking state or null for no states filtertrackingMethod
- 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 fromSession.getAllTrackables(Class)
orFrame.getUpdatedTrackables(Class)
depending on your needs.trackingState
- the trackable tracking state or null for no states filtertrackingMethod
- 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 fromSession.getAllTrackables(Class)
orFrame.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 fromSession.getAllTrackables(Class)
orFrame.getUpdatedTrackables(Class)
depending on your needs.trackingStates
- the trackable tracking states or null for no states filter
-
-