Click or drag to resize
SoVRTiffFileReaderGetSubSlice Method (SbBox2i32, Int32, SbNativeArrayByte)

Must copy the rectangular part defined by subSlice of the XY slice sliceNumber to the memory referenced by data.

Namespace: OIV.VolumeViz.Readers
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.2.0.0 (2024.2.0)
Syntax
public override void GetSubSlice(
	SbBox2i32 subSlice,
	int sliceNumber,
	SbNativeArray<byte> data
)

Parameters

subSlice
Type: OIV.InventorSbBox2i32

2D region of the slice to return.

sliceNumber
Type: SystemInt32

Slice number on the volume Z axis (first slice is 0).

data
Type: OIV.Inventor.GenericSbNativeArrayByte

Copy the data into this buffer.

Remarks

Slices will not always be read sequentially.

You can use the convenience method getBuffer() to read data from file. Note: OIV.VolumeViz.Readers.SoVRTiffFileReader.SetFilename(System.String) must have been called previously.

See Also