Enum Class PureSortMethod

java.lang.Object
java.lang.Enum<PureSortMethod>
com.j3d.engine.scene.draw.PureSortMethod
All Implemented Interfaces:
Serializable, Comparable<PureSortMethod>, Constable

public enum PureSortMethod extends Enum<PureSortMethod>
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:
  • Enum Constant Details

    • NONE

      public static final PureSortMethod NONE
      No sorting is applied to the triangles.
    • CAMDISTSORT

      public static final PureSortMethod CAMDISTSORT
      Triangles are sorted based on their distance from the camera.
    • CAMDEPTHSORT

      public static final PureSortMethod CAMDEPTHSORT
      Triangles are sorted based on their depth values.
    • DDUUIDSORT

      public static final PureSortMethod DDUUIDSORT
      Triangles are sorted like CamDepth then CamDist then lastly based on their unique identifiers (UUIDs).
    • BUCKETSORT

      public static final PureSortMethod BUCKETSORT
      Triangles are sorted into buckets based on their depth values.
    • VISIBLESORT

      public static final PureSortMethod VISIBLESORT
      Triangles are sorted based on their visibility.
  • Constructor Details

    • PureSortMethod

      private PureSortMethod()
  • Method Details

    • values

      public static PureSortMethod[] 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 PureSortMethod 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