Package com.j3d.engine.scene.draw
Enum Class PureSortMethod
- All Implemented Interfaces:
Serializable,Comparable<PureSortMethod>,Constable
Enum used by the engine to decipher which triangle sorting method
to use. This is governed by the following setting:
SceneProperties.triangleSortMethod- Author:
- Lehlogonolo Poole
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTriangles are sorted into buckets based on their depth values.Triangles are sorted based on their depth values.Triangles are sorted based on their distance from the camera.Triangles are sorted like CamDepth then CamDist then lastly based on their unique identifiers (UUIDs).No sorting is applied to the triangles.Triangles are sorted based on their visibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PureSortMethodReturns the enum constant of this class with the specified name.static PureSortMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No sorting is applied to the triangles. -
CAMDISTSORT
Triangles are sorted based on their distance from the camera. -
CAMDEPTHSORT
Triangles are sorted based on their depth values. -
DDUUIDSORT
Triangles are sorted like CamDepth then CamDist then lastly based on their unique identifiers (UUIDs). -
BUCKETSORT
Triangles are sorted into buckets based on their depth values. -
VISIBLESORT
Triangles are sorted based on their visibility.
-
-
Constructor Details
-
PureSortMethod
private PureSortMethod()
-
-
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
-