Click or drag to resize
SoDataSetSetReader Method (SoVolumeReader, Boolean)

Note: This API is now obsolete.

This method allows the data to be read directly from the disk using the specified subclass of OIV.LDM.Readers.SoVolumeReader.

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
[ObsoleteAttribute("Obsolete since Open Inventor 9.0.0.0. Use Reader property instead")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public void SetReader(
	SoVolumeReader reader,
	bool takeOwnership
)

Parameters

reader
Type: OIV.LDM.ReadersSoVolumeReader
takeOwnership
Type: SystemBoolean
Remarks

If the takeOwnership parameter is false (default), LDM will not delete the specified instance. Otherwise, LDM will automatically delete the specified instance, for example, when the OIV.LDM.Nodes.SoDataSet node is deleted. If filename is not set before setting the reader, LDM will display an error message just to warn that the reader has not opened any file yet. LDM continues to work as expected.

Note: When using a custom reader, any reader method that changes the volume properties (dimension, size, data type, etc) should notify the OIV.VolumeViz.Nodes.SoVolumeData node by calling the reader's OIV.Inventor.Nodes.SoNode.Touch() method. If this notification is not done, OIV.LDM.Nodes.SoDataSet fields, for example OIV.LDM.Nodes.SoDataSet.extent, won't be updated correctly.

See Also