Click or drag to resize
SoVolumeReaderGetDataChar Method

Gets the characteristics (file header) of the data volume.

Namespace: OIV.LDM.Readers
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public abstract SoVolumeReaderReadErrors GetDataChar(
	out SbBox3f size,
	out SoDataSetDataTypes type,
	out SbVec3i32 dim
)

Parameters

size
Type: OIV.InventorSbBox3f
type
Type: OIV.LDM.NodesSoDataSetDataTypes
dim
Type: OIV.InventorSbVec3i32

Return Value

Type: SoVolumeReaderReadErrors
Remarks

See SoDataSet.setVolumeData(). You can use the convenience method OIV.LDM.Readers.SoVolumeReader.SetFilename(System.String) to specify the file location, in which case you will not have to open the file yourself. Then you can use the convenience method getBuffer() to read the header in order to get the requested information.

NOTE: We strongly recommend that readers implement this version of OIV.LDM.Readers.SoVolumeReader.GetDataChar(OIV.Inventor.SbBox3f@, OIV.LDM.Nodes.SoDataSet.DataTypes@, OIV.Inventor.SbVec3i32@), introduced in VolumeViz 5.1, because it uses OIV.Inventor.SbVec3i32 for the volume dimension.

See Also