Class SoVRSegyTraceHeaderBytePosition
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.volumeviz.readers.SoVRSegyTraceHeaderBytePosition
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
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Field names.static enum
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
ConstructorsConstructorDescriptionconstructor -
Method Summary
Modifier and TypeMethodDescriptionbyte
Gets the field length of a specific attribute within the trace header.byte
int
Gets the value of a specific field.void
setByteFormat
(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr, SoVRSegyTraceHeaderBytePosition.TraceByteFormats format) Sets/Gets the field format of a specific attribute within the trace header.void
setBytePosition
(SoVRSegyTraceHeaderBytePosition.TraceAttributes attr, byte position) Sets/Gets the byte position of a specific attribute within the trace header.void
setValue
(SoVRSegyTraceHeaderBytePosition copyFrom) static SoVRSegyTraceHeaderBytePosition[]
toArray
(long nativeArray, long length) Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoVRSegyTraceHeaderBytePosition
-
SoVRSegyTraceHeaderBytePosition
public SoVRSegyTraceHeaderBytePosition()constructor
-
-
Method Details
-
setValue
-
toArray
-
getBytePosition
-
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
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
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)
-