SoLDMDataAccessGetData Method (Int32, SbBox3i32, SbVec2i32, SoBufferObject) |
Data values in a single seismic trace (a row of voxels along the volume X axis) are copied into an application buffer.
Namespace: OIV.LDM
public SoLDMDataAccessDataInfoTrace GetData( int resolution, SbBox3i32 subVolume, SbVec2i32 coord, SoBufferObject bufferObj )
The trace is identified by a YZ voxel coordinate. The range of values returned is the intersection of the trace with the specified subvolume. The resolution is the power of 2 of the desired subsampling level (0:1/1, 1:1/2, 2:1/4, ...) NOTE: The data is copied.
Returns a OIV.LDM.SoLDMDataAccess.DataInfoTrace struct containing errorFlag, bufferSize (number of bytes) and bufferDimension (number of values). Call this method with buffer = NULL to get the required size of the application buffer (in the bufferSize member of OIV.LDM.SoLDMDataAccess.DataInfoTrace).