SoVRSegyFileReaderGetDataChar Method |
Gets the characteristics (file header) of the data volume.
Namespace: OIV.VolumeViz.Readers
public override SoVolumeReaderReadErrors GetDataChar( out SbBox3f size, out SoDataSetDataTypes type, out SbVec3i32 dim )
See SoDataSet.setVolumeData(). You can use the convenience method OIV.VolumeViz.Readers.SoVRSegyFileReader.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.VolumeViz.Readers.SoVRSegyFileReader.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.