SEGY file trace header field description. More...
#include <VolumeViz/readers/SoVRSegyReader.h>
Public Member Functions | |
SoVRSegyTraceHeaderBytePosition () | |
constructor | |
void | setBytePosition (TraceAttribute attr, uint8_t position) |
Sets/Gets the byte position of a specific attribute within the trace header. | |
uint8_t | getBytePosition (TraceAttribute attr) const |
uint8_t | getByteLength (TraceAttribute attr) const |
Gets the field length of a specific attribute within the trace header. | |
void | setByteFormat (TraceAttribute attr, TraceByteFormat format) |
Sets/Gets the field format of a specific attribute within the trace header. | |
TraceByteFormat | getByteFormat (TraceAttribute attr) const |
int | getFieldValue (TraceAttribute attr, const SoVRSegyTraceIdHeader &trHdr) const |
Gets the value of a specific field. | |
SEGY file trace header field description.
This class allows describing the position, the length and the format of each field within a SEGY trace header. (SEGY is a widely used format for storing seismic data). It is used to query this information from the SEGY file reader (see SoVRSegyFileReader::getSegyTraceHeader). See also SoVRSegyFileHeader.
Definition at line 44 of file SoVRSegyReader.h.
Field names.
Definition at line 55 of file SoVRSegyReader.h.
Field formats.
Definition at line 148 of file SoVRSegyReader.h.
SoVRSegyTraceHeaderBytePosition::SoVRSegyTraceHeaderBytePosition | ( | ) |
constructor
TraceByteFormat SoVRSegyTraceHeaderBytePosition::getByteFormat | ( | TraceAttribute | attr | ) | const |
uint8_t SoVRSegyTraceHeaderBytePosition::getByteLength | ( | TraceAttribute | attr | ) | const |
Gets the field length of a specific attribute within the trace header.
Valid values are 1, 2, and 4 (char, short, int/ieee/ibm, respectively).
uint8_t SoVRSegyTraceHeaderBytePosition::getBytePosition | ( | TraceAttribute | attr | ) | const |
int SoVRSegyTraceHeaderBytePosition::getFieldValue | ( | TraceAttribute | attr, |
const SoVRSegyTraceIdHeader & | trHdr | ||
) | const |
Gets the value of a specific field.
The way the value is retrieved depends on its position and format. These parameters might be specified by setBytePosition() and setByteFormat() respectively.
void SoVRSegyTraceHeaderBytePosition::setByteFormat | ( | TraceAttribute | attr, |
TraceByteFormat | format | ||
) |
Sets/Gets the field format of a specific attribute within the trace header.
The default format for all the fields is either SEGY_INTEGER16_FORMAT or SEGY_INTEGER32_FORMAT, see the class SoVRSegyTraceIdHeader below. For instance calling setByteFormat(TraceAttribute::SEGY_SX, SEGY_IEEE_FLOAT_FORMAT) means that the attribute source coordinate X should be coded as a IEEE float.
void SoVRSegyTraceHeaderBytePosition::setBytePosition | ( | TraceAttribute | attr, |
uint8_t | position | ||
) |
Sets/Gets the byte position of a specific attribute within the trace header.
For instance calling setBytePosition(TraceAttribute::SEGY_SX, 71) means that the attribute source coordinate X should be retreived at from the byte position 71 (instead of 73 by default).