SoVolumeReaderReadTile Method (Int32, SbNativeArrayByte, SbBox3i32) |
Note: This API is now obsolete.
Given an index, reads a tile if the data is organized in tiles (for LDM).
In the default LDM architecture, the LDM data is based on an octree
topology (see SoVRLdmFileReader). The index passed is 0 for the tile
of lowest resolution representing the entire volume (octree root node).
The index increments linearly going down through the octree.
Namespace: OIV.LDM.ReadersAssembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("Obsolete since Open Inventor 8500. Use OIV.Inventor.Devices.SoBufferObject ReadTile(int index, OIV.Inventor.SbBox3i32 tilePosition) instead.")]
public virtual bool ReadTile(
int index,
SbNativeArray<byte> buffer,
SbBox3i32 tilePosition
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ObsoleteAttribute("Obsolete since Open Inventor 8500. Use OIV.Inventor.Devices.SoBufferObject ReadTile(int index, OIV.Inventor.SbBox3i32 tilePosition) instead.")>
Public Overridable Function ReadTile (
index As Integer,
buffer As SbNativeArray(Of Byte),
tilePosition As SbBox3i32
) As Boolean
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ObsoleteAttribute(L"Obsolete since Open Inventor 8500. Use OIV.Inventor.Devices.SoBufferObject ReadTile(int index, OIV.Inventor.SbBox3i32 tilePosition) instead.")]
virtual bool ReadTile(
int index,
SbNativeArray<unsigned char>^ buffer,
[InAttribute] SbBox3i32 tilePosition
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<ObsoleteAttribute("Obsolete since Open Inventor 8500. Use OIV.Inventor.Devices.SoBufferObject ReadTile(int index, OIV.Inventor.SbBox3i32 tilePosition) instead.")>]
abstract ReadTile :
index : int *
buffer : SbNativeArray<byte> *
tilePosition : SbBox3i32 -> bool
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<ObsoleteAttribute("Obsolete since Open Inventor 8500. Use OIV.Inventor.Devices.SoBufferObject ReadTile(int index, OIV.Inventor.SbBox3i32 tilePosition) instead.")>]
override ReadTile :
index : int *
buffer : SbNativeArray<byte> *
tilePosition : SbBox3i32 -> bool
Parameters
- index
- Type: SystemInt32
- buffer
- Type: OIV.Inventor.GenericSbNativeArrayByte
- tilePosition
- Type: OIV.InventorSbBox3i32
Return Value
Type:
BooleanRemarks
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.
index specifies a fileID, the id of an existing tile (fileID=tileID in a cubical volume).
tilePosition specifies the position of the data in the associated volume data of the tile
corresponding to the given index. In the default SoVRLdmFileReader, the tilePosition isn't actually
used but it is passed as a convenience for customized reader (can be used for mapping to a
different index scheme).
The data is returned in the allocated buffer.
See Also