OpendTect-6_4  6.4
Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
SEGYSeisTrcTranslator Class Reference
Inheritance diagram for SEGYSeisTrcTranslator:
[legend]

Protected Member Functions

StreamConnsConn ()
 
bool commitSelections_ ()
 
virtual bool initRead_ ()
 
virtual bool initWrite_ (const SeisTrc &)
 
virtual bool writeTrc_ (const SeisTrc &)
 
bool readTraceHeadBuffer ()
 
bool readDataToBuf ()
 
bool readData (SeisTrc &)
 
bool writeData (const SeisTrc &)
 
virtual bool readTapeHeader ()
 
virtual void updateCDFromBuf ()
 
virtual void interpretBuf (SeisTrcInfo &)
 
virtual bool writeTapeHeader ()
 
virtual void fillHeaderBuf (const SeisTrc &)
 
void selectWriteDataChar (DataCharacteristics &) const
 
void fillErrMsg (const uiString &, bool)
 
bool noErrMsg ()
 
DataCharacteristics getDataChar (int) const
 
int nrFormatFor (const DataCharacteristics &) const
 
void addWarn (int, const char *)
 
const char * getTrcPosStr () const
 
bool tryInterpretBuf (SeisTrcInfo &)
 
bool skipThisTrace (SeisTrcInfo &, int &)
 
- Protected Member Functions inherited from SeisTrcTranslator
virtual bool forRead () const
 
void addComp (const DataCharacteristics &, const char *nm=0, int dtype=0)
 
void setDataType (int icomp, int d)
 
virtual bool prepareWriteBlock (StepInterval< int > &, bool &)
 
virtual bool dumpBlock ()
 will call blockDumped() More...
 
virtual void blockDumped (int nrtrcs)
 
void prepareComponents (SeisTrc &, int actualsz) const
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

SEGY::FilePars filepars_
 
SEGY::FileReadOpts fileopts_
 
SEGY::TxtHeadertxthead_
 
SEGY::BinHeaderbinhead_
 
SEGY::TrcHeadertrchead_
 
LinScalertrcscale_
 
const LinScalercurtrcscale_
 
int forcedrev_
 
bool useinpsd_
 
TraceDataInterpreterstorinterp_
 
unsigned char headerbuf_ [240]
 
bool headerdone_
 
unsigned char * blockbuf_
 
ComponentDatainpcd_
 
TargetComponentData * outcd_
 
int curtrcnr_
 
int prevtrcnr_
 
BinID curbid_
 
BinID prevbid_
 
float curoffs_
 
float prevoffs_
 
SEGY::OffsetCalculator offsetcalc_
 
Coord curcoord_
 
BendPoints2Coordsbp2c_
 
int estnrtrcs_
 
bool othdomain_
 
RefMan< Coords::CoordSystemcoordsys_
 
- Protected Attributes inherited from SeisTrcTranslator
Connconn_
 
SeisPacketInfopinfo_
 
uiString errmsg_
 
BufferStringSetcompnms_
 
Seis::ReadMode read_mode
 
bool is_2d
 
bool is_prestack
 
bool enforce_regular_write
 
bool enforce_survinfo_write
 
SamplingData< float > insd_
 
int innrsamples_
 
ObjectSet< ComponentDatacds_
 
ObjectSet< TargetComponentDatatarcds_
 
const Seis::SelDataseldata_
 
SamplingData< float > outsd_
 
int outnrsamples_
 
Interval< int > samprg_
 
Pos::GeomID geomid_
 
LineKey curlinekey_
 
bool headerdonenew_
 
bool datareaddone_
 
TraceDatastorbuf_
 
LinScalertrcscalebase_
 
const LinScalercurtrcscalebase_
 
SeisTrcBuftrcblock_
 
ComponentData ** inpcds_
 
TargetComponentData ** outcds_
 
TypeSet< int > warnnrs_
 
BufferStringSetwarnings_
 
- Protected Attributes inherited from Translator
BufferString typname_
 
BufferString usrname_
 
TranslatorGroupgroup_
 

Private Member Functions

 mODTextTranslationClass (SEGYSeisTrcTranslator)
 
isTranslator(SEGY, SeisTrc) public ~SEGYSeisTrcTranslator ()
 
virtual const char * defExtension () const
 
virtual bool readInfo (SeisTrcInfo &)
 
virtual bool read (SeisTrc &)
 
virtual bool skip (int)
 
bool goToTrace (int)
 
int traceSizeOnDisk () const
 
bool getFullTrcAsBuf (unsigned char *)
 
bool isRev0 () const
 
int numberFormat () const
 
int estimatedNrTraces () const
 
void toSupported (DataCharacteristics &) const
 
void usePar (const IOPar &)
 
const SEGY::TxtHeadertxtHeader () const
 
const SEGY::BinHeaderbinHeader () const
 
const SEGY::TrcHeadertrcHeader () const
 
void setTxtHeader (SEGY::TxtHeader *)
 write; becomes mine More...
 
void setForcedRev (int rev)
 
void setForceRev0 (bool yn)
 
int dataBytes () const
 
int forcedRev () const
 
bool rev0Forced () const
 
SEGY::FileParsfilePars ()
 
SEGY::FileReadOptsfileReadOpts ()
 
const unsigned char * blockBuf () const
 
virtual bool implManagesObjects (const IOObj *) const
 
void cleanUp ()
 Prepare for new initialisation. More...
 
void setCoordSys (Coords::CoordSystem *crs)
 
virtual bool readData (TraceData *externalbuf)
 

Friends

class SEGYDirectSeisTrcTranslator
 

Additional Inherited Members

- Public Member Functions inherited from SeisTrcTranslator
 SeisTrcTranslator (const char *, const char *)
 
virtual ~SeisTrcTranslator ()
 
bool initRead (Conn *, Seis::ReadMode rt=Seis::Prod)
 
bool initWrite (Conn *, const SeisTrc &)
 
virtual ConncurConn ()
 
SeisPacketInfopacketInfo ()
 
const Seis::SelDataselData () const
 
ObjectSet< TargetComponentData > & componentInfo ()
 
const ObjectSet< TargetComponentData > & componentInfo () const
 
const ObjectSet< ComponentData > & inputComponentData () const
 
const SamplingData< float > & inpSD () const
 
int inpNrSamples () const
 
const SamplingData< float > & outSD () const
 
int outNrSamples () const
 
void setSelData (const Seis::SelData *t)
 
bool commitSelections ()
 
virtual bool write (const SeisTrc &)
 
virtual bool close ()
 
uiString errMsg () const
 
virtual bool inlCrlSorted () const
 
virtual int bytesOverheadPerTrace () const
 
int selComp (int nr=0) const
 
int nrSelComps () const
 
SeisTrcgetEmpty ()
 
SeisTrcgetFilled (const BinID &)
 
virtual bool supportsGoTo () const
 
virtual bool goTo (const BinID &)
 
virtual bool getGeometryInfo (PosInfo::CubeData &) const
 
bool isPS () const
 
void enforceRegularWrite (bool yn)
 
void enforceSurvinfoWrite (bool yn)
 
const LineKeycurLineKey () const
 
void setCurLineKey (const LineKey &lk)
 
Pos::GeomID curGeomID () const
 
void setCurGeomID (Pos::GeomID gid)
 
virtual bool isUserSelectable (bool) const
 
void setComponentNames (const BufferStringSet &)
 
void getComponentNames (BufferStringSet &) const
 
bool haveWarnings () const
 
const BufferStringSetwarnings () const
 
void setIs2D (bool yn)
 
void setIsPS (bool yn)
 
- Public Member Functions inherited from Translator
uiString sSelObjectIsWrongType ()
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
- Static Public Member Functions inherited from SeisTrcTranslator
static bool getRanges (const MultiID &, TrcKeyZSampling &, const char *linekey=0)
 
static bool getRanges (const IOObj &, TrcKeyZSampling &, const char *linekey=0)
 
static bool is2D (const IOObj &, bool only_internal=false)
 
static bool isPS (const IOObj &)
 
static bool isLineSet (const IOObj &)
 
static const char * sKeyIs2D ()
 
static const char * sKeyIsPS ()
 
static const char * sKeyRegWrite ()
 
static const char * sKeySIWrite ()
 
- Static Public Member Functions inherited from Translator
static uiString sNoIoobjMsg ()
 
static uiString sBadConnection ()
 

Detailed Description

Constructor & Destructor Documentation

isTranslator (SEGY,SeisTrc) public SEGYSeisTrcTranslator::~SEGYSeisTrcTranslator ( )
private

Member Function Documentation

void SEGYSeisTrcTranslator::addWarn ( int  ,
const char *   
)
protectedvirtual

Reimplemented from SeisTrcTranslator.

const SEGY::BinHeader& SEGYSeisTrcTranslator::binHeader ( ) const
inlineprivate
const unsigned char* SEGYSeisTrcTranslator::blockBuf ( ) const
inlineprivate
void SEGYSeisTrcTranslator::cleanUp ( )
privatevirtual

Prepare for new initialisation.

Reimplemented from SeisTrcTranslator.

bool SEGYSeisTrcTranslator::commitSelections_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

int SEGYSeisTrcTranslator::dataBytes ( ) const
private
virtual const char* SEGYSeisTrcTranslator::defExtension ( ) const
inlineprivatevirtual

Reimplemented from Translator.

int SEGYSeisTrcTranslator::estimatedNrTraces ( ) const
inlineprivatevirtual

Reimplemented from SeisTrcTranslator.

SEGY::FilePars& SEGYSeisTrcTranslator::filePars ( )
inlineprivate
SEGY::FileReadOpts& SEGYSeisTrcTranslator::fileReadOpts ( )
inlineprivate
void SEGYSeisTrcTranslator::fillErrMsg ( const uiString ,
bool   
)
protected
virtual void SEGYSeisTrcTranslator::fillHeaderBuf ( const SeisTrc )
protectedvirtual
int SEGYSeisTrcTranslator::forcedRev ( ) const
inlineprivate
DataCharacteristics SEGYSeisTrcTranslator::getDataChar ( int  ) const
protected
bool SEGYSeisTrcTranslator::getFullTrcAsBuf ( unsigned char *  )
private
const char* SEGYSeisTrcTranslator::getTrcPosStr ( ) const
protected
bool SEGYSeisTrcTranslator::goToTrace ( int  )
private
virtual bool SEGYSeisTrcTranslator::implManagesObjects ( const IOObj ) const
inlineprivatevirtual

Reimplemented from Translator.

virtual bool SEGYSeisTrcTranslator::initRead_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

virtual bool SEGYSeisTrcTranslator::initWrite_ ( const SeisTrc )
protectedvirtual

Reimplemented from SeisTrcTranslator.

virtual void SEGYSeisTrcTranslator::interpretBuf ( SeisTrcInfo )
protectedvirtual
bool SEGYSeisTrcTranslator::isRev0 ( ) const
private
SEGYSeisTrcTranslator::mODTextTranslationClass ( SEGYSeisTrcTranslator  )
private
bool SEGYSeisTrcTranslator::noErrMsg ( )
protected
int SEGYSeisTrcTranslator::nrFormatFor ( const DataCharacteristics ) const
protected
int SEGYSeisTrcTranslator::numberFormat ( ) const
inlineprivate
virtual bool SEGYSeisTrcTranslator::read ( SeisTrc )
privatevirtual

Reimplemented from SeisTrcTranslator.

bool SEGYSeisTrcTranslator::readData ( SeisTrc )
protected
virtual bool SEGYSeisTrcTranslator::readData ( TraceData externalbuf)
privatevirtual

Reimplemented from SeisTrcTranslator.

bool SEGYSeisTrcTranslator::readDataToBuf ( )
protected
virtual bool SEGYSeisTrcTranslator::readInfo ( SeisTrcInfo )
privatevirtual

Reimplemented from SeisTrcTranslator.

virtual bool SEGYSeisTrcTranslator::readTapeHeader ( )
protectedvirtual
bool SEGYSeisTrcTranslator::readTraceHeadBuffer ( )
protected
bool SEGYSeisTrcTranslator::rev0Forced ( ) const
inlineprivate
StreamConn& SEGYSeisTrcTranslator::sConn ( )
inlineprotected
void SEGYSeisTrcTranslator::selectWriteDataChar ( DataCharacteristics ) const
protected
void SEGYSeisTrcTranslator::setCoordSys ( Coords::CoordSystem crs)
inlineprivate
void SEGYSeisTrcTranslator::setForcedRev ( int  rev)
inlineprivate
void SEGYSeisTrcTranslator::setForceRev0 ( bool  yn)
inlineprivate
void SEGYSeisTrcTranslator::setTxtHeader ( SEGY::TxtHeader )
private

write; becomes mine

virtual bool SEGYSeisTrcTranslator::skip ( int  )
privatevirtual

Reimplemented from SeisTrcTranslator.

bool SEGYSeisTrcTranslator::skipThisTrace ( SeisTrcInfo ,
int &   
)
protected
void SEGYSeisTrcTranslator::toSupported ( DataCharacteristics ) const
private
int SEGYSeisTrcTranslator::traceSizeOnDisk ( ) const
private
const SEGY::TrcHeader& SEGYSeisTrcTranslator::trcHeader ( ) const
inlineprivate
bool SEGYSeisTrcTranslator::tryInterpretBuf ( SeisTrcInfo )
protected
const SEGY::TxtHeader* SEGYSeisTrcTranslator::txtHeader ( ) const
inlineprivate
virtual void SEGYSeisTrcTranslator::updateCDFromBuf ( )
protectedvirtual
void SEGYSeisTrcTranslator::usePar ( const IOPar )
privatevirtual

Reimplemented from SeisTrcTranslator.

bool SEGYSeisTrcTranslator::writeData ( const SeisTrc )
protected
virtual bool SEGYSeisTrcTranslator::writeTapeHeader ( )
protectedvirtual
virtual bool SEGYSeisTrcTranslator::writeTrc_ ( const SeisTrc )
protectedvirtual

Reimplemented from SeisTrcTranslator.

Friends And Related Function Documentation

friend class SEGYDirectSeisTrcTranslator
friend

Member Data Documentation

SEGY::BinHeader& SEGYSeisTrcTranslator::binhead_
protected
unsigned char* SEGYSeisTrcTranslator::blockbuf_
protected
BendPoints2Coords* SEGYSeisTrcTranslator::bp2c_
protected
RefMan<Coords::CoordSystem> SEGYSeisTrcTranslator::coordsys_
protected
BinID SEGYSeisTrcTranslator::curbid_
protected
Coord SEGYSeisTrcTranslator::curcoord_
protected
float SEGYSeisTrcTranslator::curoffs_
protected
int SEGYSeisTrcTranslator::curtrcnr_
protected
const LinScaler* SEGYSeisTrcTranslator::curtrcscale_
protected
int SEGYSeisTrcTranslator::estnrtrcs_
protected
SEGY::FileReadOpts SEGYSeisTrcTranslator::fileopts_
protected
SEGY::FilePars SEGYSeisTrcTranslator::filepars_
protected
int SEGYSeisTrcTranslator::forcedrev_
protected
unsigned char SEGYSeisTrcTranslator::headerbuf_[240]
protected
bool SEGYSeisTrcTranslator::headerdone_
protected
ComponentData* SEGYSeisTrcTranslator::inpcd_
protected
SEGY::OffsetCalculator SEGYSeisTrcTranslator::offsetcalc_
protected
bool SEGYSeisTrcTranslator::othdomain_
protected
TargetComponentData* SEGYSeisTrcTranslator::outcd_
protected
BinID SEGYSeisTrcTranslator::prevbid_
protected
float SEGYSeisTrcTranslator::prevoffs_
protected
int SEGYSeisTrcTranslator::prevtrcnr_
protected
TraceDataInterpreter* SEGYSeisTrcTranslator::storinterp_
protected
SEGY::TrcHeader& SEGYSeisTrcTranslator::trchead_
protected
LinScaler* SEGYSeisTrcTranslator::trcscale_
protected
SEGY::TxtHeader* SEGYSeisTrcTranslator::txthead_
protected
bool SEGYSeisTrcTranslator::useinpsd_
protected

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