Class SoVRSegyTraceHeaderBytePosition
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.volumeviz.readers.SoVRSegyTraceHeaderBytePosition
-
public class SoVRSegyTraceHeaderBytePosition extends Inventor
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 (seeSoVRSegyFileReader.getSegyTraceHeader
). See alsoSoVRSegyFileHeader
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoVRSegyTraceHeaderBytePosition.TraceAttributes
Field names.static class
SoVRSegyTraceHeaderBytePosition.TraceByteFormats
Field formats.-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoVRSegyTraceHeaderBytePosition()
constructorSoVRSegyTraceHeaderBytePosition(SoVRSegyTraceHeaderBytePosition copyFrom)
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoVRSegyTraceHeaderBytePosition
public SoVRSegyTraceHeaderBytePosition(SoVRSegyTraceHeaderBytePosition copyFrom)
-
SoVRSegyTraceHeaderBytePosition
public SoVRSegyTraceHeaderBytePosition()
constructor
-
-
Method Detail
-
setValue
public void setValue(SoVRSegyTraceHeaderBytePosition copyFrom)
-
toArray
public static SoVRSegyTraceHeaderBytePosition[] toArray(long nativeArray, long length)
-
getBytePosition
public byte getBytePosition(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr)
-
setByteFormat
public void setByteFormat(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr, SoVRSegyTraceHeaderBytePosition.TraceByteFormats 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 classSoVRSegyTraceIdHeader
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.
-
setBytePosition
public void setBytePosition(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr, byte 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).
-
getByteLength
public byte getByteLength(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr)
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).
-
getFieldValue
public int getFieldValue(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr, SoVRSegyTraceIdHeader trHdr)
Gets the value of a specific field. The way the value is retrieved depends on its position and format. These parameters might be specified bysetBytePosition()
andsetByteFormat()
respectively.
-
getByteFormat
public SoVRSegyTraceHeaderBytePosition.TraceByteFormats getByteFormat(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr)
-
-