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 SoVolumeReader.
Namespace: OIV.LDM.Nodes
[EditorBrowsableAttribute(EditorBrowsableState.Never)] [ObsoleteAttribute("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 SoDataSet node is deleted. If filename is not set before setting the reader, LDM will display an error message just to warn reader did not open any file yet. LDM still work has expected.
Note: When using a custom reader, any reader method that changes the volume properties (dimension, size, data type, etc) should notify the SoVolumeData node by calling the reader's touch() method. If this notification is not done, SoDataSet fields, for example SoDataSet.extent, won't be updated correctly.