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
[EditorBrowsableAttribute(EditorBrowsableState.Never)] [ObsoleteAttribute("Obsolete since Open Inventor 9000. Use Reader property instead")] public void SetReader( SoVolumeReader reader, bool takeOwnership )
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.