Tile ID
More...
#include <LDM/SoLDMTileID.h>
Public Member Functions | |
| SoLDMTileID () | |
| SoLDMTileID (LDM_TILE_ID_TYPE tileID) | |
| SbBool | operator== (const SoLDMTileID &b) const |
| SbBool | operator!= (const SoLDMTileID &b) const |
| SbBool | operator<= (const SoLDMTileID &b) const |
| SbBool | operator>= (const SoLDMTileID &b) const |
| SbBool | operator< (const SoLDMTileID &b) const |
| SbBool | operator> (const SoLDMTileID &b) const |
| LDM_TILE_ID_TYPE | getID () const |
| SoLDMTileID & | operator++ () |
| SoLDMTileID | operator++ (int) |
| SoLDMTileID & | operator-- () |
| SoLDMTileID | operator-- (int) |
Deprecated | |
|
| |
| SoDEPRECATED | SoLDMTileID (LDM_TILE_ID_TYPE tileID, bool) |
| SoDEPRECATED | SoLDMTileID (LDM_TILE_ID_TYPE tileID, unsigned short timestep) |
| SoDEPRECATED unsigned short | getTimeStep () const |
| static SoDEPRECATED void | setCurrentTimeStep (unsigned short timestep) |
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.
| SoLDMTileID::SoLDMTileID | ( | ) | [inline] |
Constructor.
| SoLDMTileID::SoLDMTileID | ( | LDM_TILE_ID_TYPE | tileID | ) | [inline] |
Constructor from ID value.
| SoDEPRECATED SoLDMTileID::SoLDMTileID | ( | LDM_TILE_ID_TYPE | tileID, | |
| bool | ||||
| ) | [inline] |
Constructor using ID value.
| SoDEPRECATED SoLDMTileID::SoLDMTileID | ( | LDM_TILE_ID_TYPE | tileID, | |
| unsigned short | timestep | |||
| ) | [inline] |
Constructor using ID value and timeStep value.
| LDM_TILE_ID_TYPE SoLDMTileID::getID | ( | ) | const [inline] |
Returns the tile ID.
| SoDEPRECATED unsigned short SoLDMTileID::getTimeStep | ( | ) | const [inline] |
Returns the time step.
| SbBool 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
| SbBool SoLDMTileID::operator< | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (less than) operator.
| SbBool SoLDMTileID::operator<= | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (less than or equal to) operator.
| SbBool SoLDMTileID::operator== | ( | const SoLDMTileID & | b | ) | const [inline] |
Equality comparison operator.
| SbBool SoLDMTileID::operator> | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (greater than) operator.
| SbBool SoLDMTileID::operator>= | ( | const SoLDMTileID & | b | ) | const [inline] |
Relational (greater than or equal to) operator.
| static SoDEPRECATED void SoLDMTileID::setCurrentTimeStep | ( | unsigned short | timestep | ) | [inline, static] |
setup the current time step to use.