Class DDUUIDSort

All Implemented Interfaces:
Serializable, Cloneable, Iterable<RenderState<?,?>>, Collection<RenderState<?,?>>, List<RenderState<?,?>>, RandomAccess, SequencedCollection<RenderState<?,?>>

public final class DDUUIDSort extends SortMethod
This is a merge of CamDistSort and CamDepthSort. Where it first distance then falls back to depth from the camera and finally falls back to ID comparison to ensure consistent ordering.
Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • DDUUIDSort

      public DDUUIDSort()
  • Method Details

    • clear

      public void clear()
      Clears the list and re-adds all non-dirty objects from the registered listeners.
      Specified by:
      clear in interface Collection<RenderState<?,?>>
      Specified by:
      clear in interface List<RenderState<?,?>>
      Overrides:
      clear in class ArrayList<RenderState<?,?>>
    • sort

      public void sort()
      Sorts the objects in the list based on their distance from the camera. Objects farther from the camera are placed before those closer to the camera.
      Specified by:
      sort in class SortMethod