Class SoLDMTileID

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.ldm.SoLDMTileID
All Implemented Interfaces:
Comparable

public class SoLDMTileID extends Inventor implements 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 Details

    • SoLDMTileID

      public SoLDMTileID(SoLDMTileID copyFrom)
    • SoLDMTileID

      public SoLDMTileID()
      Constructor.
    • SoLDMTileID

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

    • compareTo

      public int compareTo(Object obj)
      Specified by:
      compareTo in interface 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_14798)
      Postfix ++, increment the tile id.
    • incrementAndGet

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object