Enum Class Illumination

java.lang.Object
java.lang.Enum<Illumination>
com.irurueta.geometry.io.Illumination
All Implemented Interfaces:
Serializable, Comparable<Illumination>, Constable

public enum Illumination extends Enum<Illumination>
Enumerator containing the available illumination options and their corresponding integer values, as shown below: 0. Color on and Ambient off. 1. Color on and Ambient on. 2. Highlight on. 3. Reflection on and Ray trace on. 4. Transparency: Glass on, Reflection: Ray trace on. 5. Reflection: Fresnel on and Ray trace on. 6. Transparency: Refraction on, Reflection: Fresnel off and Ray trace on. 7. Transparency: Refraction on, Reflection: Fresnel on and Ray trace on. 8. Reflection on and Ray trace off. 9. Transparency: Glass on, Reflection: Ray trace off. 10. Casts shadows onto invisible surfaces.
  • Enum Constant Details

    • COLOR_AND_AMBIENT_OFF

      public static final Illumination COLOR_AND_AMBIENT_OFF
      Color on and ambient off.
    • COLOR_AND_AMBIENT_ON

      public static final Illumination COLOR_AND_AMBIENT_ON
      Color on and ambient on.
    • HIGHLIGHT_ON

      public static final Illumination HIGHLIGHT_ON
      Highlight on.
    • REFLECTION_ON_AND_RAY_TRACE_ON

      public static final Illumination REFLECTION_ON_AND_RAY_TRACE_ON
      Reflection on and ray trace on.
    • TRANSPARENCY_GLASS_ON_REFLECTION_RAYTRACE_ON

      public static final Illumination TRANSPARENCY_GLASS_ON_REFLECTION_RAYTRACE_ON
      Transparency: glass on, reflection: ray trace on.
    • REFLECTION_FRESNEL_ON_AND_RAY_TRACE_ON

      public static final Illumination REFLECTION_FRESNEL_ON_AND_RAY_TRACE_ON
      Reflection: Fresnel on and ray trace on.
    • TRANSPARENCY_REFRACTION_ON_REFLECTION_FRESNEL_OFF_AND_RAY_TRACE_ON

      public static final Illumination TRANSPARENCY_REFRACTION_ON_REFLECTION_FRESNEL_OFF_AND_RAY_TRACE_ON
      Transparency: refraction on, Reflection: Fresnel off and ray trace on.
    • TRANSPARENCY_REFRACTION_ON_REFLECTION_FRESNEL_ON_AND_RAY_TRACE_ON

      public static final Illumination TRANSPARENCY_REFRACTION_ON_REFLECTION_FRESNEL_ON_AND_RAY_TRACE_ON
      Transparency: refraction on, Reflection: Fresnel on and ray trace on.
    • REFLECTION_ON_AND_RAY_TRACE_OFF

      public static final Illumination REFLECTION_ON_AND_RAY_TRACE_OFF
      Reflection on and ray trace off.
    • TRANSPARENCY_GLASS_ON_REFLECTION_RAY_TRACE_OFF

      public static final Illumination TRANSPARENCY_GLASS_ON_REFLECTION_RAY_TRACE_OFF
      Transparency: glass on, Reflection: ray trace off.
    • CAST_SHADOWS_ONTO_INVISIBLE_SURFACES

      public static final Illumination CAST_SHADOWS_ONTO_INVISIBLE_SURFACES
      Cast shadows onto invisible surfaces.
  • Field Details

    • value

      private final int value
      Internal value to be stored as part of this enum.
  • Constructor Details

    • Illumination

      private Illumination(int value)
      Constructor.
      Parameters:
      value - value associated to this enum.
  • Method Details

    • values

      public static Illumination[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Illumination valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public int value()
      Returns value associated to this enum.
      Returns:
      value associated to this enum.
    • forValue

      public static Illumination forValue(int value)
      Factory method to create and instance of this enum from its associated value.
      Parameters:
      value - value associated to enum to be created.
      Returns:
      an illumination instance.