SoVRSegyFileReaderGetSegyFileHeader Method (SoVRSegyFileHeader, Boolean) |
Gets the SEGY file header.
Namespace: OIV.VolumeViz.Readers
public virtual bool GetSegyFileHeader( out SoVRSegyFileHeader fileHeader, bool readFile )
If you use this class to read a SEGY file directly, you will have to call the method OIV.LDM.Readers.SoVolumeReader.SetFilename(System.String) first. Returns false if the operation fails, for example, if OIV.LDM.Readers.SoVolumeReader.SetFilename(System.String) was not called first. If readFile is true the file header is read from the file, otherwise the value set by OIV.VolumeViz.Readers.SoVRSegyFileReader.SetSegyFileHeader(OIV.VolumeViz.Readers.SoVRSegyFileHeader) is returned instead. If readFile is false but OIV.VolumeViz.Readers.SoVRSegyFileReader.SetSegyFileHeader(OIV.VolumeViz.Readers.SoVRSegyFileHeader) was never called, the file header is read from the file anyway.