Enum 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 the Session configuration, the user can decide with the DeptModeUsage which Material 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 the Session configuration has set the DepthMode to Config.DepthMode.AUTOMATIC or Config.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.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • DEPTH_OCCLUSION_ENABLED

        public static final CameraStream.DepthOcclusionMode DEPTH_OCCLUSION_ENABLED
        Set the occlusion material. If the Session is not configured properly the standard camera material is used. Valid Session configuration for the DepthMode are Config.DepthMode.AUTOMATIC and Config.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 to Config.DepthMode.AUTOMATIC or
         Config.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 name
        java.lang.NullPointerException - if the argument is null