Class AbstractOrderingStrategy

    • Constructor Detail

      • AbstractOrderingStrategy

        public AbstractOrderingStrategy()
    • Method Detail

      • score

        public abstract double score​(Drawable drawable)
        Returns a score for ranking this drawable among other drawables of the scenegraph.
      • score

        public abstract double score​(Coord3d coord)
      • sort

        public void sort​(List<Drawable> monotypes,
                         Camera cam)
        Parameters:
        monotypes -
        cam -
      • comparison

        protected int comparison​(double dist1,
                                 double dist2)
        Return the opposite of closest distance, so that closest distance is sorted after farest distance.
      • getCamera

        public Camera getCamera()
      • setCamera

        public void setCamera​(Camera camera)
      • getTransform

        public Transform getTransform()
      • setTransform

        public void setTransform​(Transform transform)
      • getView

        public View getView()
      • setView

        public void setView​(View view)