Tile ID
More...
#include <LDM/SoLDMTileID.h>
Public Member Functions | |
| SoLDMTileID () | |
| Constructor. | |
| SoLDMTileID (LDM_TILE_ID_TYPE tileID) | |
| Constructor from ID value. | |
| bool | operator== (const SoLDMTileID &b) const |
| Equality comparison operator. | |
| bool | operator!= (const SoLDMTileID &b) const |
| Inequality comparison operator. | |
| bool | operator<= (const SoLDMTileID &b) const |
| Relational (less than or equal to) operator. | |
| bool | operator>= (const SoLDMTileID &b) const |
| Relational (greater than or equal to) operator. | |
| bool | operator< (const SoLDMTileID &b) const |
| Relational (less than) operator. | |
| bool | operator> (const SoLDMTileID &b) const |
| Relational (greater than) operator. | |
| LDM_TILE_ID_TYPE | getID () const |
| Returns the tile ID. | |
| SoLDMTileID & | operator++ () |
| ++ Prefix, increment the tile id | |
| SoLDMTileID | operator++ (int) |
| Postfix ++, increment the tile id. | |
| SoLDMTileID & | operator-- () |
| – Prefix, increment the tile id | |
| SoLDMTileID | operator-- (int) |
| Postfix –, increment the 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.
Definition at line 63 of file SoLDMTileID.h.
|
inline |
Constructor.
Definition at line 70 of file SoLDMTileID.h.
|
inline |
Constructor from ID value.
Definition at line 76 of file SoLDMTileID.h.
|
inline |
Returns the tile ID.
Definition at line 111 of file SoLDMTileID.h.
|
inline |
Inequality comparison operator.
Definition at line 86 of file SoLDMTileID.h.
|
inline |
++ Prefix, increment the tile id
Definition at line 141 of file SoLDMTileID.h.
|
inline |
Postfix ++, increment the tile id.
Definition at line 149 of file SoLDMTileID.h.
|
inline |
– Prefix, increment the tile id
Definition at line 159 of file SoLDMTileID.h.
|
inline |
Postfix –, increment the tile id.
Definition at line 167 of file SoLDMTileID.h.
|
inline |
Relational (less than) operator.
Definition at line 100 of file SoLDMTileID.h.
|
inline |
Relational (less than or equal to) operator.
Definition at line 90 of file SoLDMTileID.h.
|
inline |
Equality comparison operator.
Definition at line 82 of file SoLDMTileID.h.
|
inline |
Relational (greater than) operator.
Definition at line 105 of file SoLDMTileID.h.
|
inline |
Relational (greater than or equal to) operator.
Definition at line 95 of file SoLDMTileID.h.