OpendTect 8.0
Loading...
Searching...
No Matches
SEGY::FileDataSet Class Reference

#include <segyfiledata.h>

Classes

struct  Pos2D
 
struct  StoredData
 
struct  TrcIdx
 

Public Member Functions

 FileDataSet (const FileDataSet &fd)
 Not implemented, just to make linker complain.
 
 FileDataSet (const IOPar &, const char *filename, od_stream_Pos start, const DataCharacteristics &int32)
 
 FileDataSet (const IOPar &iop)
 
 FileDataSet (const IOPar &iop, ascistream &)
 Reads old version of file into memory.
 
 ~FileDataSet ()
 
void addFile (const char *fnm)
 
bool addTrace (int fileidx, const Seis::PosKey &, const Coord &, bool usable)
 
bool addTrace (int fileidx, const Seis::PosKey &, float spnr, const Coord &, bool usable)
 
void dump (od_ostream &) const
 
StringView fileName (int) const
 
void fillPar (IOPar &iop) const
 Write auxdata.
 
Seis::GeomType geomType () const
 
Coord get2DCoord (int trcnr) const
 
bool getDetails (od_int64, Seis::PosKey &, bool &usable) const
 
TrcIdx getFileIndex (od_int64) const
 
void getReport (IOPar &) const
 
void getReport (StringPairSet &) const
 
const SamplingData< float > & getSampling () const
 
float getShotPointNr (int trcnr) const
 
int getTrcSz () const
 
bool isEmpty () const
 
bool isRev0 () const
 
int nrFiles () const
 
void save2DCoords (bool yn)
 
const IOPar & segyPars () const
 
void setAuxData (const Seis::GeomType &, const SEGYSeisTrcTranslator &)
 
void setDiscardNull (bool yn)
 
void setIndexer (Seis::PosIndexer *n)
 
bool setOutputStream (od_ostream &)
 
od_int64 size () const
 
bool usePar (const IOPar &iop)
 Read auxdata from storage.
 

Protected Member Functions

bool readVersion1 (ascistream &)
 
bool readVersion1File (ascistream &)
 

Protected Attributes

TypeSet< od_int64 > cumsizes_
 
bool discardnull_
 
BufferStringSet filenames_
 
Seis::GeomType geom_
 
Seis::PosIndexer * indexer_
 
bool isrev0_
 
TypeSet< Seis::PosKey > keys_
 
int nrstanzas_
 
int nrusable_
 
SortedTable< int, Pos2D > * pos2ds_
 
SamplingData< float > sampling_
 
IOPar segypars_
 
StoredData * storeddata_
 
od_int64 totalsz_
 
int trcsz_
 
BoolTypeSet usable_
 

Detailed Description

<Stores scanned data from SEGY-files.

Constructor & Destructor Documentation

◆ FileDataSet() [1/4]

SEGY::FileDataSet::FileDataSet ( const IOPar & iop,
ascistream &  )

Reads old version of file into memory.

◆ FileDataSet() [2/4]

SEGY::FileDataSet::FileDataSet ( const IOPar & iop)

Creates empty set, can later be filled from scanning.

◆ ~FileDataSet()

SEGY::FileDataSet::~FileDataSet ( )

◆ FileDataSet() [3/4]

SEGY::FileDataSet::FileDataSet ( const IOPar & ,
const char * filename,
od_stream_Pos start,
const DataCharacteristics & int32 )

Reads new version of file, only auxdata is read in, the bulk of the data remains on disk.

◆ FileDataSet() [4/4]

SEGY::FileDataSet::FileDataSet ( const FileDataSet & fd)

Not implemented, just to make linker complain.

Member Function Documentation

◆ addFile()

void SEGY::FileDataSet::addFile ( const char * fnm)

◆ addTrace() [1/2]

bool SEGY::FileDataSet::addTrace ( int fileidx,
const Seis::PosKey & ,
const Coord & ,
bool usable )

◆ addTrace() [2/2]

bool SEGY::FileDataSet::addTrace ( int fileidx,
const Seis::PosKey & ,
float spnr,
const Coord & ,
bool usable )

◆ dump()

void SEGY::FileDataSet::dump ( od_ostream & ) const

◆ fileName()

StringView SEGY::FileDataSet::fileName ( int ) const

◆ fillPar()

void SEGY::FileDataSet::fillPar ( IOPar & iop) const

Write auxdata.

◆ geomType()

Seis::GeomType SEGY::FileDataSet::geomType ( ) const
inline

◆ get2DCoord()

Coord SEGY::FileDataSet::get2DCoord ( int trcnr) const

◆ getDetails()

bool SEGY::FileDataSet::getDetails ( od_int64 ,
Seis::PosKey & ,
bool & usable ) const

◆ getFileIndex()

TrcIdx SEGY::FileDataSet::getFileIndex ( od_int64 ) const

◆ getReport() [1/2]

void SEGY::FileDataSet::getReport ( IOPar & ) const

◆ getReport() [2/2]

void SEGY::FileDataSet::getReport ( StringPairSet & ) const

◆ getSampling()

const SamplingData< float > & SEGY::FileDataSet::getSampling ( ) const
inline

◆ getShotPointNr()

float SEGY::FileDataSet::getShotPointNr ( int trcnr) const

◆ getTrcSz()

int SEGY::FileDataSet::getTrcSz ( ) const
inline

◆ isEmpty()

bool SEGY::FileDataSet::isEmpty ( ) const
inline

◆ isRev0()

bool SEGY::FileDataSet::isRev0 ( ) const
inline

◆ nrFiles()

int SEGY::FileDataSet::nrFiles ( ) const

◆ readVersion1()

bool SEGY::FileDataSet::readVersion1 ( ascistream & )
protected

◆ readVersion1File()

bool SEGY::FileDataSet::readVersion1File ( ascistream & )
protected

◆ save2DCoords()

void SEGY::FileDataSet::save2DCoords ( bool yn)

◆ segyPars()

const IOPar & SEGY::FileDataSet::segyPars ( ) const
inline

◆ setAuxData()

void SEGY::FileDataSet::setAuxData ( const Seis::GeomType & ,
const SEGYSeisTrcTranslator &  )

◆ setDiscardNull()

void SEGY::FileDataSet::setDiscardNull ( bool yn)
inline

◆ setIndexer()

void SEGY::FileDataSet::setIndexer ( Seis::PosIndexer * n)

addTrace will send the trace info to the indexer. Indexer must be kept alive outside object.

◆ setOutputStream()

bool SEGY::FileDataSet::setOutputStream ( od_ostream & )

Will store all information to the stream, rather than in memory.

◆ size()

od_int64 SEGY::FileDataSet::size ( ) const
inline

◆ usePar()

bool SEGY::FileDataSet::usePar ( const IOPar & iop)

Read auxdata from storage.

Member Data Documentation

◆ cumsizes_

TypeSet<od_int64> SEGY::FileDataSet::cumsizes_
protected

◆ discardnull_

bool SEGY::FileDataSet::discardnull_
protected

◆ filenames_

BufferStringSet SEGY::FileDataSet::filenames_
protected

◆ geom_

Seis::GeomType SEGY::FileDataSet::geom_
protected

◆ indexer_

Seis::PosIndexer* SEGY::FileDataSet::indexer_
protected

◆ isrev0_

bool SEGY::FileDataSet::isrev0_
protected

◆ keys_

TypeSet<Seis::PosKey> SEGY::FileDataSet::keys_
protected

◆ nrstanzas_

int SEGY::FileDataSet::nrstanzas_
protected

◆ nrusable_

int SEGY::FileDataSet::nrusable_
protected

◆ pos2ds_

SortedTable<int,Pos2D>* SEGY::FileDataSet::pos2ds_
protected

◆ sampling_

SamplingData<float> SEGY::FileDataSet::sampling_
protected

◆ segypars_

IOPar SEGY::FileDataSet::segypars_
protected

◆ storeddata_

StoredData* SEGY::FileDataSet::storeddata_
protected

◆ totalsz_

od_int64 SEGY::FileDataSet::totalsz_
protected

◆ trcsz_

int SEGY::FileDataSet::trcsz_
protected

◆ usable_

BoolTypeSet SEGY::FileDataSet::usable_
protected

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