Package com.irurueta.geometry.io
Enum Class Illumination
- All Implemented Interfaces:
Serializable,Comparable<Illumination>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCast shadows onto invisible surfaces.Color on and ambient off.Color on and ambient on.Highlight on.Reflection: Fresnel on and ray trace on.Reflection on and ray trace off.Reflection on and ray trace on.Transparency: glass on, Reflection: ray trace off.Transparency: glass on, reflection: ray trace on.Transparency: refraction on, Reflection: Fresnel off and ray trace on.Transparency: refraction on, Reflection: Fresnel on and ray trace on. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intInternal value to be stored as part of this enum. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IlluminationforValue(int value) Factory method to create and instance of this enum from its associated value.intvalue()Returns value associated to this enum.static IlluminationReturns the enum constant of this class with the specified name.static Illumination[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COLOR_AND_AMBIENT_OFF
Color on and ambient off. -
COLOR_AND_AMBIENT_ON
Color on and ambient on. -
HIGHLIGHT_ON
Highlight on. -
REFLECTION_ON_AND_RAY_TRACE_ON
Reflection on and ray trace on. -
TRANSPARENCY_GLASS_ON_REFLECTION_RAYTRACE_ON
Transparency: glass on, reflection: ray trace on. -
REFLECTION_FRESNEL_ON_AND_RAY_TRACE_ON
Reflection: Fresnel on and ray trace on. -
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
Transparency: refraction on, Reflection: Fresnel on and ray trace on. -
REFLECTION_ON_AND_RAY_TRACE_OFF
Reflection on and ray trace off. -
TRANSPARENCY_GLASS_ON_REFLECTION_RAY_TRACE_OFF
Transparency: glass on, Reflection: ray trace off. -
CAST_SHADOWS_ONTO_INVISIBLE_SURFACES
Cast shadows onto invisible surfaces.
-
-
Field Details
-
value
private final int valueInternal 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
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
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 nameNullPointerException- if the argument is null
-
value
public int value()Returns value associated to this enum.- Returns:
- value associated to this enum.
-
forValue
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.
-