Class SVTQuadtreeNode<T>

java.lang.Object
gaiasky.util.svt.SVTQuadtreeNode<T>
All Implemented Interfaces:
Comparable<SVTQuadtreeNode>

public class SVTQuadtreeNode<T> extends Object implements Comparable<SVTQuadtreeNode>
  • Field Details Link icon

    • tree Link icon

      public final SVTQuadtree<T> tree
      The tree this node belongs to.
    • parent Link icon

      public final SVTQuadtreeNode<T> parent
      The parent of this tile, if it is not at the root level.
    • level Link icon

      public final int level
    • col Link icon

      public final int col
    • row Link icon

      public final int row
    • object Link icon

      public final T object
    • state Link icon

      public int state
    • accessed Link icon

      public long accessed
  • Constructor Details Link icon

  • Method Details Link icon

    • getUV Link icon

      public double[] getUV()
      Get the UV coordinates in [0,1] of the top-left position of this tile. The UV coordinates start at the bottom-left.
      Returns:
      The UV coordinates of this tile.
    • mipLevel Link icon

      public int mipLevel()
      Computes the OpenGL mip level for this tile.
      Returns:
      The OpenGL mip level for this tile.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • toStringShort Link icon

      public String toStringShort()
    • compareTo Link icon

      public int compareTo(SVTQuadtreeNode o)
      Specified by:
      compareTo in interface Comparable<T>
    • getKey Link icon

      public long getKey()
      Gets a unique 64-bit integer key for this tile, including the level, the column and the row.
      Returns:
      The unique key.