Tile ID More...
#include <LDM/SoLDMTileID.h>
Public Member Functions | |
SoLDMTileID () | |
SoLDMTileID (LDM_TILE_ID_TYPE tileID) | |
bool | operator== (const SoLDMTileID &b) const |
bool | operator!= (const SoLDMTileID &b) const |
bool | operator<= (const SoLDMTileID &b) const |
bool | operator>= (const SoLDMTileID &b) const |
bool | operator< (const SoLDMTileID &b) const |
bool | operator> (const SoLDMTileID &b) const |
LDM_TILE_ID_TYPE | getID () const |
SoLDMTileID & | operator++ () |
SoLDMTileID | operator++ (int) |
SoLDMTileID & | operator-- () |
SoLDMTileID | operator-- (int) |
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.
SoLDMTileID::SoLDMTileID | ( | ) | [inline] |
Constructor.
SoLDMTileID::SoLDMTileID | ( | LDM_TILE_ID_TYPE | tileID | ) | [inline] |
Constructor from ID value.
LDM_TILE_ID_TYPE SoLDMTileID::getID | ( | ) | const [inline] |
Returns the tile ID.
bool SoLDMTileID::operator!= | ( | const SoLDMTileID & | b | ) | const [inline] |
Inequality comparison operator.
SoLDMTileID SoLDMTileID::operator++ | ( | int | ) | [inline] |
Postfix ++, increment the tile id.
SoLDMTileID & SoLDMTileID::operator++ | ( | ) | [inline] |
++ Prefix, increment the tile id
SoLDMTileID SoLDMTileID::operator-- | ( | int | ) | [inline] |
Postfix --, increment the tile id.
SoLDMTileID & SoLDMTileID::operator-- | ( | ) | [inline] |
-- Prefix, increment the tile id
bool SoLDMTileID::operator< | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (less than) operator.
bool SoLDMTileID::operator<= | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (less than or equal to) operator.
bool SoLDMTileID::operator== | ( | const SoLDMTileID & | b | ) | const [inline] |
Equality comparison operator.
bool SoLDMTileID::operator> | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (greater than) operator.
bool SoLDMTileID::operator>= | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (greater than or equal to) operator.