Click or drag to resize
SoDataSetLDMDataTransformCB Delegate

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public delegate void LDMDataTransformCB(
	SoDataSet ds,
	SbVec3i32 bufferDimension,
	SbNativeArray<byte> bufferToTransform,
	SbBox3i32 dataBox,
	int resolutionLevel
)

Parameters

ds
Type: OIV.LDM.NodesSoDataSet
bufferDimension
Type: OIV.InventorSbVec3i32
bufferToTransform
Type: OIV.Inventor.GenericSbNativeArrayByte
dataBox
Type: OIV.InventorSbBox3i32
resolutionLevel
Type: SystemInt32
Remarks

Deprecated

Use OIV.LDM.Nodes.SoDataSet.dataTransform field which handle an OIV.LDM.Nodes.SoLDMDataTransform fieldContainer.

Type declaration for the data transform function. See OIV.LDM.Nodes.SoDataSet.LDMDataTransformCallback. This function allows a tile of data to be transformed after it is loaded, but before it is stored in main memory. It is not currently possible to access other tiles of data (for example using the data access API) from this function. Note that the function will be called from LDM data loader threads, so multiple threads may be executing in this function at the same time (on different tiles). Inputs are:
  • The associated data set object the function is calling for. This allows retrieving information such as data type (ds->OIV.LDM.Nodes.SoDataSet.GetDataType()).

  • The dimensions of the tile to transform. This defines the size of the buffer and is the same for every tile in a dataset. However tiles on the "outside" of the dataset may be partial tiles and contain less than the full number of actual data values.

  • A buffer containing the tile data to transform. The data should be modified "in place" in this buffer.

  • The position and extent of the tile in data space (voxel coordinates). For lower resolution tiles (level > 0) the extent of the tile will be larger than the dimensions of the tile (number of values in the tile).

  • The tile resolution level. Level 0 is full resolution data.

  • Optional user data specified with setLDMDataTransformFunction.

See Also