Package com.openinventor.ldm
Class SoLDMTileID
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.ldm.SoLDMTileID
- All Implemented Interfaces:
 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.
- 
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand - 
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle - 
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SoLDMTileID(long tileID) Constructor from ID value.SoLDMTileID(SoLDMTileID copyFrom)  - 
Method Summary
Modifier and TypeMethodDescriptionintPrefix, increment the tile id decrementAndGet(int name_14816) Postfix, increment the tile id. booleanlonggetID()Returns the tile ID.++ Prefix, increment the tile idincrementAndGet(int name_14815) Postfix ++, increment the tile id.voidsetValue(SoLDMTileID copyFrom) static SoLDMTileID[]toArray(long nativeArray, long length) Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle 
- 
Constructor Details
- 
SoLDMTileID
 - 
SoLDMTileID
public SoLDMTileID()Constructor. - 
SoLDMTileID
public SoLDMTileID(long tileID) Constructor from ID value. 
 - 
 - 
Method Details
- 
compareTo
- Specified by:
 compareToin interfaceComparable
 - 
setValue
 - 
toArray
 - 
getID
public long getID()Returns the tile ID. - 
decrementAndGet
Prefix, increment the tile id  - 
incrementAndGet
Postfix ++, increment the tile id. - 
incrementAndGet
++ Prefix, increment the tile id - 
decrementAndGet
Postfix, increment the tile id.  - 
equals
 
 -