OpendTect  7.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SEGY::TrcHeader Class Reference

Public Member Functions

 TrcHeader (const TrcHeader &)
 
 TrcHeader (unsigned char *, const TrcHeaderDef &, bool rev0, bool manbuf=false)
 
 ~TrcHeader ()
 
void dump (od_ostream &) const
 
int entryVal (int idx) const
 
void fill (SeisTrcInfo &, float) const
 
Coord getCoord (bool rcv, float extcoordsc) const
 
void initRead ()
 must call once before first usage More...
 
bool is2D () const
 
unsigned short nrSamples () const
 
TrcHeaderoperator= (const TrcHeader &)
 
float postScale (int numbfmt) const
 
void putSampling (SamplingData< float >, unsigned short)
 
void setEntryVal (int idx, int val) const
 
void setNeedSwap (bool yn=true)
 
void use (const SeisTrcInfo &)
 

Static Public Member Functions

static int EntryCdp ()
 
static int EntryCoUnit ()
 
static int EntryCrossline ()
 
static int EntryDelRt ()
 
static int EntryDt ()
 
static int EntryDUse ()
 
static int EntryFldr ()
 
static int EntryGx ()
 
static int EntryGy ()
 
static int EntryInline ()
 
static int EntryLagA ()
 
static int EntryLagB ()
 
static int EntryNs ()
 
static int EntryOffset ()
 
static int EntryOldSP ()
 
static int EntryScalco ()
 
static int EntryScalel ()
 
static int EntrySP ()
 
static int EntrySPscale ()
 
static int EntrySx ()
 
static int EntrySy ()
 
static int EntryTracl ()
 
static int EntryTracr ()
 
static int EntryTrid ()
 
static int EntryTrwf ()
 
static int EntryXcdp ()
 
static int EntryYcdp ()
 
static void fillRev1Def (TrcHeaderDef &)
 
static const HdrDefhdrDef ()
 

Public Attributes

unsigned char * buf_ = nullptr
 
Seis::GeomType geomtype_ = Seis::Vol
 
const TrcHeaderDefhdef_
 
bool isrev0_ = false
 
bool isusable = true
 trid < 2 ; mostly ignored but not always More...
 
bool nonrectcoords = false
 counit == 1, 2 or 3 More...
 

Protected Member Functions

double getCoordScale (float extcoordsc) const
 
void getRev1Flds (SeisTrcInfo &) const
 
void putRev1Flds (const SeisTrcInfo &) const
 

Protected Attributes

int lineseqnr_ = 1
 
bool mybuf_ = false
 
bool needswap_ = false
 
int previnl_ = -1
 
int seqnr_ = 1
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ TrcHeader() [1/2]

SEGY::TrcHeader::TrcHeader ( unsigned char *  ,
const TrcHeaderDef ,
bool  rev0,
bool  manbuf = false 
)

◆ TrcHeader() [2/2]

SEGY::TrcHeader::TrcHeader ( const TrcHeader )

◆ ~TrcHeader()

SEGY::TrcHeader::~TrcHeader ( )

Member Function Documentation

◆ dump()

void SEGY::TrcHeader::dump ( od_ostream ) const

◆ EntryCdp()

static int SEGY::TrcHeader::EntryCdp ( )
inlinestatic

◆ EntryCoUnit()

static int SEGY::TrcHeader::EntryCoUnit ( )
inlinestatic

◆ EntryCrossline()

static int SEGY::TrcHeader::EntryCrossline ( )
inlinestatic

◆ EntryDelRt()

static int SEGY::TrcHeader::EntryDelRt ( )
inlinestatic

◆ EntryDt()

static int SEGY::TrcHeader::EntryDt ( )
inlinestatic

◆ EntryDUse()

static int SEGY::TrcHeader::EntryDUse ( )
inlinestatic

◆ EntryFldr()

static int SEGY::TrcHeader::EntryFldr ( )
inlinestatic

◆ EntryGx()

static int SEGY::TrcHeader::EntryGx ( )
inlinestatic

◆ EntryGy()

static int SEGY::TrcHeader::EntryGy ( )
inlinestatic

◆ EntryInline()

static int SEGY::TrcHeader::EntryInline ( )
inlinestatic

◆ EntryLagA()

static int SEGY::TrcHeader::EntryLagA ( )
inlinestatic

◆ EntryLagB()

static int SEGY::TrcHeader::EntryLagB ( )
inlinestatic

◆ EntryNs()

static int SEGY::TrcHeader::EntryNs ( )
inlinestatic

◆ EntryOffset()

static int SEGY::TrcHeader::EntryOffset ( )
inlinestatic

◆ EntryOldSP()

static int SEGY::TrcHeader::EntryOldSP ( )
inlinestatic

◆ EntryScalco()

static int SEGY::TrcHeader::EntryScalco ( )
inlinestatic

◆ EntryScalel()

static int SEGY::TrcHeader::EntryScalel ( )
inlinestatic

◆ EntrySP()

static int SEGY::TrcHeader::EntrySP ( )
inlinestatic

◆ EntrySPscale()

static int SEGY::TrcHeader::EntrySPscale ( )
inlinestatic

◆ EntrySx()

static int SEGY::TrcHeader::EntrySx ( )
inlinestatic

◆ EntrySy()

static int SEGY::TrcHeader::EntrySy ( )
inlinestatic

◆ EntryTracl()

static int SEGY::TrcHeader::EntryTracl ( )
inlinestatic

◆ EntryTracr()

static int SEGY::TrcHeader::EntryTracr ( )
inlinestatic

◆ EntryTrid()

static int SEGY::TrcHeader::EntryTrid ( )
inlinestatic

◆ EntryTrwf()

static int SEGY::TrcHeader::EntryTrwf ( )
inlinestatic

◆ entryVal()

int SEGY::TrcHeader::entryVal ( int  idx) const
inline

◆ EntryXcdp()

static int SEGY::TrcHeader::EntryXcdp ( )
inlinestatic

◆ EntryYcdp()

static int SEGY::TrcHeader::EntryYcdp ( )
inlinestatic

◆ fill()

void SEGY::TrcHeader::fill ( SeisTrcInfo ,
float   
) const

◆ fillRev1Def()

static void SEGY::TrcHeader::fillRev1Def ( TrcHeaderDef )
static

◆ getCoord()

Coord SEGY::TrcHeader::getCoord ( bool  rcv,
float  extcoordsc 
) const

◆ getCoordScale()

double SEGY::TrcHeader::getCoordScale ( float  extcoordsc) const
protected

◆ getRev1Flds()

void SEGY::TrcHeader::getRev1Flds ( SeisTrcInfo ) const
protected

◆ hdrDef()

static const HdrDef& SEGY::TrcHeader::hdrDef ( )
static

◆ initRead()

void SEGY::TrcHeader::initRead ( )

must call once before first usage

◆ is2D()

bool SEGY::TrcHeader::is2D ( ) const

◆ nrSamples()

unsigned short SEGY::TrcHeader::nrSamples ( ) const

◆ operator=()

TrcHeader& SEGY::TrcHeader::operator= ( const TrcHeader )

◆ postScale()

float SEGY::TrcHeader::postScale ( int  numbfmt) const

◆ putRev1Flds()

void SEGY::TrcHeader::putRev1Flds ( const SeisTrcInfo ) const
protected

◆ putSampling()

void SEGY::TrcHeader::putSampling ( SamplingData< float >  ,
unsigned short   
)

◆ setEntryVal()

void SEGY::TrcHeader::setEntryVal ( int  idx,
int  val 
) const
inline

◆ setNeedSwap()

void SEGY::TrcHeader::setNeedSwap ( bool  yn = true)
inline

◆ use()

void SEGY::TrcHeader::use ( const SeisTrcInfo )

Member Data Documentation

◆ buf_

unsigned char* SEGY::TrcHeader::buf_ = nullptr

◆ geomtype_

Seis::GeomType SEGY::TrcHeader::geomtype_ = Seis::Vol

◆ hdef_

const TrcHeaderDef& SEGY::TrcHeader::hdef_

◆ isrev0_

bool SEGY::TrcHeader::isrev0_ = false

◆ isusable

bool SEGY::TrcHeader::isusable = true

trid < 2 ; mostly ignored but not always

◆ lineseqnr_

int SEGY::TrcHeader::lineseqnr_ = 1
protected

◆ mybuf_

bool SEGY::TrcHeader::mybuf_ = false
protected

◆ needswap_

bool SEGY::TrcHeader::needswap_ = false
protected

◆ nonrectcoords

bool SEGY::TrcHeader::nonrectcoords = false

counit == 1, 2 or 3

◆ previnl_

int SEGY::TrcHeader::previnl_ = -1
protected

◆ seqnr_

int SEGY::TrcHeader::seqnr_ = 1
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024