OpendTect  6.6
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SEGY::FileDataSet Class Reference

Classes

struct  StoredData
 
struct  TrcIdx
 

Public Member Functions

 FileDataSet (const FileDataSet &fd)
 Not implemented, just to make linker complain. More...
 
 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. More...
 
 ~FileDataSet ()
 
void addFile (const char *fnm)
 
bool addTrace (int fileidx, const Seis::PosKey &, const Coord &, bool usable)
 
void dump (od_ostream &) const
 
FixedString fileName (int) const
 
void fillPar (IOPar &iop) const
 Write auxdata. More...
 
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
 
const SamplingData< float > & getSampling () 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. More...
 

Protected Member Functions

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

Protected Attributes

SortedTable< int, Coord > * coords_
 
TypeSet< od_int64 > cumsizes_
 
bool discardnull_
 
BufferStringSet filenames_
 
Seis::GeomType geom_
 
Seis::PosIndexer * indexer_
 
bool isrev0_
 
TypeSet< Seis::PosKey > keys_
 
int nrstanzas_
 
int nrusable_
 
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()

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

◆ dump()

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

◆ fileName()

FixedString 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()

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

◆ getSampling()

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

◆ 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

◆ coords_

SortedTable<int,Coord>* SEGY::FileDataSet::coords_
protected

◆ 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

◆ 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-2022