SoLDMTopoOctree Class |
Octree topology queries.
Namespace: OIV.LDM
The SoLDMTopoOctree type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoLDMTopoOctree | Constructor. |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetFileID | Given a tileID, returns the corresponding fileID. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetLevelMax | Return the level max of the Octree. |
![]() | GetLongNumTileIDs | Obsolete. |
![]() | GetNumFileIDs | Returns the number of fileIDs in the volume. |
![]() | GetNumTileIDs | |
![]() | GetTileID(Int32) | Given a fileID, returns the corresponding tileID. |
![]() | GetTileID(SbVec3i32, Int32) | Given the position of a voxel/cell (i,j,k) and the resolution level, returns the tile ID of the corresponding tile. |
![]() | GetTilePos | Returns the bounding box, in voxel/cell coordinates, of the specified tile. |
![]() | GetTileSize | Return the tilesize used to setup this octree. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Init(SbVec3i32, Int32) | Calls Init(dimension, tileDim, System.Int32(0)). |
![]() | Init(SbVec3i32, Int32, Int32) | Initialize with the properties of the data set. |
![]() | IsEmpty | Returns false if the octree is empty. |
![]() | Level(Int64) | Returns the resolution level of the given tile Id Note: Octree must be initialized. |
![]() | Level(SoLDMTileID) | Returns the resolution level of the given tile Id Note: Octree must be initialized. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The SoLDMTopoOctree class provides information about the hierarchy of LDM tiles used for a given dataset, based on the dataset dimensions.
For example you can query the total number of LDM tiles in the data set. You can also query the ID of the tile that contains a specified voxel/cell in the data set and conversely you can query the extent of a specified tile in voxel/cell coordinates.
In VolumeViz LDM every tile has both a tileID and a fileID. The tileID is the unique identifier of a tile in the (conceptual) complete, symmetrical hierarchy. The fileID is the index of a tile in a sequential numbering of all the tiles that actually contain data. The tileID is normally used to identify tiles in an application, but the fileID is used, for example, when calling the readTile method in an SoVolumeReader class. In a cubical volume (all three dimensions the same), there are equal numbers of tileIDs and fileIDs, but in most volumes there are many fewer fileIDs than tileIDs.