Package com.openinventor.ldm
Class SoLDMTileID
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.ldm.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 2And the front tiles are:
7 8
5 6The 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
Constructors Constructor Description SoLDMTileID()
Constructor.SoLDMTileID(long tileID)
Constructor from ID value.SoLDMTileID(SoLDMTileID copyFrom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object obj)
SoLDMTileID
decrementAndGet()
Prefix, increment the tile id SoLDMTileID
decrementAndGet(int name_14786)
Postfix, increment the tile id. boolean
equals(java.lang.Object obj)
long
getID()
Returns the tile ID.SoLDMTileID
incrementAndGet()
++ Prefix, increment the tile idSoLDMTileID
incrementAndGet(int name_14785)
Postfix ++, increment the tile id.void
setValue(SoLDMTileID copyFrom)
static SoLDMTileID[]
toArray(long nativeArray, long length)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
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 interfacejava.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_14785)
Postfix ++, increment the tile id.
-
incrementAndGet
public SoLDMTileID incrementAndGet()
++ Prefix, increment the tile id
-
decrementAndGet
public SoLDMTileID decrementAndGet(int name_14786)
Postfix, increment the tile id.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-