Enum CameraStream.DepthOcclusionMode
- java.lang.Object
-
- java.lang.Enum<CameraStream.DepthOcclusionMode>
-
- com.google.ar.sceneform.rendering.CameraStream.DepthOcclusionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CameraStream.DepthOcclusionMode>
- Enclosing class:
- CameraStream
public static enum CameraStream.DepthOcclusionMode extends java.lang.Enum<CameraStream.DepthOcclusionMode>
Independent from theSession
configuration, the user can decide with the DeptModeUsage whichMaterial
should be set to the CameraStream renderable.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPTH_OCCLUSION_DISABLED
Use this value if the standard camera material should be applied to the CameraStream Renderable even if theSession
configuration has set the DepthMode toConfig.DepthMode.AUTOMATIC
orConfig.DepthMode.RAW_DEPTH_ONLY
.DEPTH_OCCLUSION_ENABLED
Set the occlusion material.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CameraStream.DepthOcclusionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CameraStream.DepthOcclusionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEPTH_OCCLUSION_ENABLED
public static final CameraStream.DepthOcclusionMode DEPTH_OCCLUSION_ENABLED
Set the occlusion material. If theSession
is not configured properly the standard camera material is used. ValidSession
configuration for the DepthMode areConfig.DepthMode.AUTOMATIC
andConfig.DepthMode.RAW_DEPTH_ONLY
.
-
DEPTH_OCCLUSION_DISABLED
public static final CameraStream.DepthOcclusionMode DEPTH_OCCLUSION_DISABLED
Use this value if the standard camera material should be applied to the CameraStream Renderable even if the
Session
configuration has set the DepthMode toConfig.DepthMode.AUTOMATIC
orConfig.DepthMode.RAW_DEPTH_ONLY
. This Option is useful, if you want to use the DepthImage or RawDepthImage or just the DepthPoints without the occlusion effect. This is the default value
-
-
Method Detail
-
values
public static CameraStream.DepthOcclusionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CameraStream.DepthOcclusionMode c : CameraStream.DepthOcclusionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CameraStream.DepthOcclusionMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-