Class SoLDMTileID

  • All Implemented Interfaces:
    java.lang.Comparable

    public class SoLDMTileID
    extends Inventor
    implements java.lang.Comparable
    Tile ID. Encapsulates the ID of a tile.

    In the default LDM architecture, the LDM data is based on an octree topology. The index is 0 for the tile of lowest resolution representing the entire volume (octree root node). The index increments linearly going down through the octree.

    Indexing works as follows:

    Tile 1 is the lower back left corner of the cube. The index increments on X, then Y, and finally Z. So the back tiles are:

    3 4
    1 2

    And the front tiles are:

    7 8
    5 6

    The tiles of full resolution are the leaf tiles.

    • Constructor Detail

      • SoLDMTileID

        public SoLDMTileID​(SoLDMTileID copyFrom)
      • SoLDMTileID

        public SoLDMTileID()
        Constructor.
      • SoLDMTileID

        public SoLDMTileID​(long tileID)
        Constructor from ID value.
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object obj)
        Specified by:
        compareTo in interface java.lang.Comparable
      • setValue

        public void setValue​(SoLDMTileID copyFrom)
      • toArray

        public static SoLDMTileID[] toArray​(long nativeArray,
                                            long length)
      • getID

        public long getID()
        Returns the tile ID.
      • decrementAndGet

        public SoLDMTileID decrementAndGet()
        Prefix, increment the tile id
      • incrementAndGet

        public SoLDMTileID incrementAndGet​(int name_15241)
        Postfix ++, increment the tile id.
      • incrementAndGet

        public SoLDMTileID incrementAndGet()
        ++ Prefix, increment the tile id
      • decrementAndGet

        public SoLDMTileID decrementAndGet​(int name_15242)
        Postfix , increment the tile id.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object