public final class ARController.SelectedItemParams
extends java.lang.Object
ARObjects which are in the selected or non
selected states.
An ARObject is selected by way of the ARController.select(ARObject) method.
When an ARObject is selected, all other ARObjects are considered non
selected. When no ARObject is selected, ARObjects are neither selected nor
non selected.
| Modifier and Type | Method and Description |
|---|---|
long |
getBoundingBoxAnimationDelay()
Get delay of selected item bounding box animation.
|
long |
getBoundingBoxAnimationTime()
Get delay of selected item bounding box animation.
|
AnimationInterpolator |
getBoundingBoxInterpolator()
Get the interpolator for selected object bounding box animation.
|
float |
getMaxViewAngle()
Get selected item max view angle when the item is on the right or left from line of
sight.
|
float |
getNonSelectedItemsOpacity()
Get others icons opacity while one icon is in selected state.
|
float |
getOpacity()
Get selected item's opacity when icon in camera view is selected.
|
Size |
getSize()
Get selected item size.
|
long |
getSizeAnimationDelay()
Get delay of selected item size animation.
|
long |
getSizeAnimationTime()
Get delay of selected item size animation.
|
AnimationInterpolator |
getSizeInterpolator()
Get the interpolator for selected object size animation.
|
ARController.SelectedItemParams |
setBoundingBox(android.graphics.RectF box)
Set bounding box for a selected item.
|
ARController.SelectedItemParams |
setBoundingBoxAnimationDelay(long value)
Set selected item bounding box animation delay.
|
ARController.SelectedItemParams |
setBoundingBoxAnimationTime(long value)
Set selected item bounding box animation time.
|
ARController.SelectedItemParams |
setBoundingBoxInterpolator(AnimationInterpolator value)
Set the interpolator for selected object bounding box animation.
|
ARController.SelectedItemParams |
setMaxViewAngle(float angleDeg)
Set selected item max view angle when the item is on the right or left from line of
sight.
|
ARController.SelectedItemParams |
setNonSelectedItemsOpacity(float value)
Set others icons opacity while one icon is in selected state.
|
ARController.SelectedItemParams |
setOpacity(float value)
Set selected item's opacity when icon in camera view is selected.
|
ARController.SelectedItemParams |
setSize(int width,
int height)
Set selected item size.
|
ARController.SelectedItemParams |
setSizeAnimationDelay(long value)
Set selected item size animation delay.
|
ARController.SelectedItemParams |
setSizeAnimationTime(long value)
Set selected item size animation time.
|
ARController.SelectedItemParams |
setSizeInterpolator(AnimationInterpolator value)
Set the interpolator for selected object size animation.
|
public ARController.SelectedItemParams setSize(int width, int height)
ARObject is in selected state.width - Maximum width of selected icon in pixelsheight - Maximum height of selected icon in pixelsSelectedItemParams object itself.ARController.select(ARObject),
ARController.unselect()public Size getSize()
ARObject is in selected state.ARController.select(ARObject),
ARController.unselect()public ARController.SelectedItemParams setBoundingBox(android.graphics.RectF box)
box - android.graphics.RectF selected item's bounding box. If null,
bounding box for the selected item is not used.SelectedItemParams object itself.public ARController.SelectedItemParams setOpacity(float value)
value - selected icon opacity.SelectedItemParams object itself.public float getOpacity()
public ARController.SelectedItemParams setNonSelectedItemsOpacity(float value)
value - non-selected icons opacity.SelectedItemParams object itself.public float getNonSelectedItemsOpacity()
public ARController.SelectedItemParams setSizeInterpolator(AnimationInterpolator value)
value - The AnimationInterpolator for selected object size animation.SelectedItemParams object itself.public AnimationInterpolator getSizeInterpolator()
AnimationInterpolator.public ARController.SelectedItemParams setBoundingBoxInterpolator(AnimationInterpolator value)
value - The AnimationInterpolator for selected object bounding box animation.SelectedItemParams object itself.public AnimationInterpolator getBoundingBoxInterpolator()
AnimationInterpolator.public ARController.SelectedItemParams setSizeAnimationDelay(long value)
value - Delay in msSelectedItemParams object itself.public long getSizeAnimationDelay()
public ARController.SelectedItemParams setSizeAnimationTime(long value)
value - Delay in msSelectedItemParams object itself.public long getSizeAnimationTime()
public ARController.SelectedItemParams setBoundingBoxAnimationDelay(long value)
value - Delay in msSelectedItemParams object itself.public long getBoundingBoxAnimationDelay()
public ARController.SelectedItemParams setBoundingBoxAnimationTime(long value)
value - Delay in msSelectedItemParams object itself.public long getBoundingBoxAnimationTime()
public ARController.SelectedItemParams setMaxViewAngle(float angleDeg)
angleDeg - The view angle at the selected item. The range is: -angleDeg +angleDeg.SelectedItemParams object itself.public float getMaxViewAngle()