OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
SEGYSeisTrcTranslator Class Reference
Inheritance diagram for SEGYSeisTrcTranslator:
[legend]

Public Member Functions

 SEGYSeisTrcTranslator (const char *, const char *)
 
 ~SEGYSeisTrcTranslator ()
 
const SEGY::BinHeaderbinHeader () const
 
mDeprecatedObs const unsigned char * blockBuf () const
 
void cleanUp () override
 Prepare for new initialization. More...
 
int dataBytes () const
 
const char * defExtension () const override
 
int estimatedNrTraces () const override
 
SEGY::FileParsfilePars ()
 
SEGY::FileReadOptsfileReadOpts ()
 
int forcedRev () const
 
bool getFullTrcAsBuf (unsigned char *)
 
bool goToTrace (int)
 
bool implIsLink (const IOObj *) const override
 
bool implRemove (const IOObj *, bool) const override
 
bool isRev0 () const
 
int numberFormat () const
 
bool readInfo (SeisTrcInfo &) override
 
bool rev0Forced () const
 
void setForcedRev (int rev)
 
void setForceRev0 (bool yn)
 
void setIs2D (bool yn) override
 
void setIsPS (bool yn) override
 
void setTxtHeader (SEGY::TxtHeader *)
 write; becomes mine More...
 
bool skip (int) override
 
void toSupported (DataCharacteristics &) const
 
int traceSizeOnDisk () const
 
const SEGY::TrcHeadertrcHeader () const
 
const SEGY::TxtHeadertxtHeader () const
 
void usePar (const IOPar &) override
 
- Public Member Functions inherited from SeisTrcTranslator
virtual ~SeisTrcTranslator ()
 
virtual int bytesOverheadPerTrace () const
 
virtual bool close ()
 
bool commitSelections ()
 
ObjectSet< TargetComponentData > & componentInfo ()
 
const ObjectSet< TargetComponentData > & componentInfo () const
 
virtual ConncurConn ()
 
Pos::GeomID curGeomID () const
 
const char * dataName () const
 
void enforceRegularWrite (bool yn)
 
void enforceSurvinfoWrite (bool yn)
 
uiString errMsg () const
 
void getComponentNames (BufferStringSet &) const
 
SeisTrcgetEmpty ()
 
SeisTrcgetFilled (const BinID &)
 
virtual bool getGeometryInfo (PosInfo::CubeData &) const
 
virtual bool goTo (const BinID &)
 
bool haveWarnings () const
 
bool initRead (Conn *, Seis::ReadMode rt=Seis::Prod)
 
bool initWrite (Conn *, const SeisTrc &)
 
virtual bool inlCrlSorted () const
 
int inpNrSamples () const
 
const SamplingData< float > & inpSD () const
 
const ObjectSet< ComponentData > & inputComponentData () const
 
bool is2D () const
 
bool isPS () const
 
bool isUserSelectable (bool) const override
 
int nrSelComps () const
 
int outNrSamples () const
 
const SamplingData< float > & outSD () const
 
SeisPacketInfopacketInfo ()
 
virtual bool read (SeisTrc &)
 
virtual bool readDataPack (RegularSeisDataPack &, TaskRunner *=nullptr)
 
bool readTraceData (TraceData *td=nullptr)
 
int selComp (int nr=0) const
 
const Seis::SelDataselData () const
 
void setComponentNames (const BufferStringSet &)
 
virtual void setCoordSys (const Coords::CoordSystem &)
 
virtual void setCurGeomID (Pos::GeomID)
 
void setDataName (const char *nm)
 
void setSelData (const Seis::SelData *t)
 
virtual bool supportsGoTo () const
 
bool supportsMultiCompTrc () const
 
const LinScalertraceScaler () const
 
void usePar (const IOPar &) override
 
const BufferStringSetwarnings () const
 
virtual bool write (const SeisTrc &)
 
- Public Member Functions inherited from Translator
 Translator (const char *nm, const char *usr_nm)
 
virtual ~Translator ()
 
virtual const char * connType () const
 
virtual IOObjcreateWriteIOObj (const IOObjContext &, const MultiID &) const
 
virtual bool getConfirmRemoveMsg (const IOObj *, uiString &msg, uiString &canceltxt, uiString &deepremovetxt, uiString &shallowremovetxt) const
 
const char * getDisplayName () const
 "username [group]" More...
 
virtual TranslatorgetNew () const =0
 
const TranslatorGroupgroup () const
 
virtual const char * iconName () const
 
virtual bool implExists (const IOObj *, bool forread) const
 
virtual bool implReadOnly (const IOObj *) const
 
virtual bool implRename (const IOObj *, const char *newnm) const
 
virtual bool implSetReadOnly (const IOObj *, bool) const
 
virtual const uiStringmessage () const
 
void setGroup (TranslatorGroup *g)
 
uiString sSelObjectIsWrongType ()
 
const OD::StringtypeName () const
 
const OD::StringuserName () const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Static Public Member Functions

static bool writeSEGYHeader (const SeisStoreAccess &, const char *fnm)
 
- Static Public Member Functions inherited from SeisTrcTranslator
static bool getRanges (const IOObj &, TrcKeyZSampling &, const char *linekey=nullptr)
 
static bool getRanges (const MultiID &, TrcKeyZSampling &, const char *linekey=nullptr)
 
static bool is2D (const IOObj &, bool only_internal=false)
 
static bool isLineSet (const IOObj &)
 
static bool isPS (const IOObj &, bool only_internal=false)
 
static void setCoordSys (const Coords::CoordSystem &, IOPar &)
 
static void setGeomID (Pos::GeomID, IOPar &)
 
static void setType (Seis::GeomType, IOPar &)
 
static const char * sKeyIs2D ()
 
static const char * sKeyIsPS ()
 
static const char * sKeyRegWrite ()
 
static const char * sKeySeisTrPars ()
 
static const char * sKeySIWrite ()
 
- Static Public Member Functions inherited from Translator
static const TranslatorgetTemplateInstance (const char *displayname)
 
static uiString sBadConnection ()
 
static uiString sNoIoobjMsg ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

bool readData (TraceData *externalbuf) override
 

Friends

class SEGYDirectSeisTrcTranslator
 

Additional Inherited Members

- Static Protected Member Functions inherited from Translator
static BufferString getAssociatedFileName (const char *fnm, const char *extension)
 
static BufferString getAssociatedFileName (const IOObj &, const char *extension)
 
static bool removeAssociatedFile (const char *fnm, const char *ext)
 
static bool renameAssociatedFile (const char *fnm, const char *ext, const char *newnm)
 
static bool renameLargeFile (const char *fnm, const char *newfnm, const CallBack *cb=nullptr)
 
static bool setPermAssociatedFile (const char *fnm, const char *ext, bool setwritable)
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ SEGYSeisTrcTranslator()

SEGYSeisTrcTranslator::SEGYSeisTrcTranslator ( const char *  ,
const char *   
)

◆ ~SEGYSeisTrcTranslator()

SEGYSeisTrcTranslator::~SEGYSeisTrcTranslator ( )

Member Function Documentation

◆ addWarn()

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

Reimplemented from SeisTrcTranslator.

◆ binHeader()

const SEGY::BinHeader& SEGYSeisTrcTranslator::binHeader ( ) const
inline

◆ blockBuf()

mDeprecatedObs const unsigned char* SEGYSeisTrcTranslator::blockBuf ( ) const
inline

◆ cleanUp()

void SEGYSeisTrcTranslator::cleanUp ( )
overridevirtual

Prepare for new initialization.

Reimplemented from SeisTrcTranslator.

◆ commitSelections_()

bool SEGYSeisTrcTranslator::commitSelections_ ( )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ dataBytes()

int SEGYSeisTrcTranslator::dataBytes ( ) const

◆ defExtension()

const char* SEGYSeisTrcTranslator::defExtension ( ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ estimatedNrTraces()

int SEGYSeisTrcTranslator::estimatedNrTraces ( ) const
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ filePars()

SEGY::FilePars& SEGYSeisTrcTranslator::filePars ( )
inline

◆ fileReadOpts()

SEGY::FileReadOpts& SEGYSeisTrcTranslator::fileReadOpts ( )
inline

◆ fillErrMsg()

void SEGYSeisTrcTranslator::fillErrMsg ( const uiString ,
bool   
)
protected

◆ fillHeaderBuf()

virtual void SEGYSeisTrcTranslator::fillHeaderBuf ( const SeisTrc )
protectedvirtual

◆ forcedRev()

int SEGYSeisTrcTranslator::forcedRev ( ) const
inline

◆ getDataChar()

DataCharacteristics SEGYSeisTrcTranslator::getDataChar ( int  ) const
protected

◆ getFullTrcAsBuf()

bool SEGYSeisTrcTranslator::getFullTrcAsBuf ( unsigned char *  )

◆ getTrcPosStr()

const char* SEGYSeisTrcTranslator::getTrcPosStr ( ) const
protected

◆ goToTrace()

bool SEGYSeisTrcTranslator::goToTrace ( int  )

◆ implIsLink()

bool SEGYSeisTrcTranslator::implIsLink ( const IOObj ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ implRemove()

bool SEGYSeisTrcTranslator::implRemove ( const IOObj ,
bool   
) const
inlineoverridevirtual

Reimplemented from Translator.

◆ initRead_()

bool SEGYSeisTrcTranslator::initRead_ ( )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ initWrite_()

bool SEGYSeisTrcTranslator::initWrite_ ( const SeisTrc )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ interpretBuf()

virtual void SEGYSeisTrcTranslator::interpretBuf ( SeisTrcInfo )
protectedvirtual

◆ isRev0()

bool SEGYSeisTrcTranslator::isRev0 ( ) const

◆ noErrMsg()

bool SEGYSeisTrcTranslator::noErrMsg ( )
protected

◆ nrFormatFor()

int SEGYSeisTrcTranslator::nrFormatFor ( const DataCharacteristics ) const
protected

◆ numberFormat()

int SEGYSeisTrcTranslator::numberFormat ( ) const
inline

◆ readData() [1/2]

bool SEGYSeisTrcTranslator::readData ( SeisTrc )
protected

◆ readData() [2/2]

bool SEGYSeisTrcTranslator::readData ( TraceData externalbuf)
overrideprivatevirtual

Reimplemented from SeisTrcTranslator.

◆ readDataToBuf()

bool SEGYSeisTrcTranslator::readDataToBuf ( )
protected

◆ readInfo()

bool SEGYSeisTrcTranslator::readInfo ( SeisTrcInfo )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ readTapeHeader()

virtual bool SEGYSeisTrcTranslator::readTapeHeader ( )
protectedvirtual

◆ readTraceHeadBuffer()

bool SEGYSeisTrcTranslator::readTraceHeadBuffer ( )
protected

◆ rev0Forced()

bool SEGYSeisTrcTranslator::rev0Forced ( ) const
inline

◆ sConn()

StreamConn& SEGYSeisTrcTranslator::sConn ( )
inlineprotected

◆ selectWriteDataChar()

void SEGYSeisTrcTranslator::selectWriteDataChar ( DataCharacteristics ) const
protected

◆ setForcedRev()

void SEGYSeisTrcTranslator::setForcedRev ( int  rev)
inline

◆ setForceRev0()

void SEGYSeisTrcTranslator::setForceRev0 ( bool  yn)
inline

◆ setIs2D()

void SEGYSeisTrcTranslator::setIs2D ( bool  yn)
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ setIsPS()

void SEGYSeisTrcTranslator::setIsPS ( bool  yn)
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ setTxtHeader()

void SEGYSeisTrcTranslator::setTxtHeader ( SEGY::TxtHeader )

write; becomes mine

◆ skip()

bool SEGYSeisTrcTranslator::skip ( int  )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ skipThisTrace()

bool SEGYSeisTrcTranslator::skipThisTrace ( SeisTrcInfo ,
int &   
)
protected

◆ toSupported()

void SEGYSeisTrcTranslator::toSupported ( DataCharacteristics ) const

◆ traceSizeOnDisk()

int SEGYSeisTrcTranslator::traceSizeOnDisk ( ) const

◆ trcHeader()

const SEGY::TrcHeader& SEGYSeisTrcTranslator::trcHeader ( ) const
inline

◆ tryInterpretBuf()

bool SEGYSeisTrcTranslator::tryInterpretBuf ( SeisTrcInfo )
protected

◆ txtHeader()

const SEGY::TxtHeader* SEGYSeisTrcTranslator::txtHeader ( ) const
inline

◆ updateCDFromBuf()

virtual void SEGYSeisTrcTranslator::updateCDFromBuf ( )
protectedvirtual

◆ usePar()

void SEGYSeisTrcTranslator::usePar ( const IOPar )
overridevirtual

Reimplemented from Translator.

◆ writeData()

bool SEGYSeisTrcTranslator::writeData ( const SeisTrc )
protected

◆ writeSEGYHeader()

static bool SEGYSeisTrcTranslator::writeSEGYHeader ( const SeisStoreAccess ,
const char *  fnm 
)
static

◆ writeTapeHeader()

virtual bool SEGYSeisTrcTranslator::writeTapeHeader ( )
protectedvirtual

◆ writeTrc_()

bool SEGYSeisTrcTranslator::writeTrc_ ( const SeisTrc )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

Friends And Related Function Documentation

◆ SEGYDirectSeisTrcTranslator

friend class SEGYDirectSeisTrcTranslator
friend

Member Data Documentation

◆ binhead_

SEGY::BinHeader& SEGYSeisTrcTranslator::binhead_
protected

◆ bp2c_

BendPoints2Coords* SEGYSeisTrcTranslator::bp2c_ = nullptr
protected

◆ curbid_

BinID SEGYSeisTrcTranslator::curbid_
protected

◆ curcoord_

Coord SEGYSeisTrcTranslator::curcoord_
protected

◆ curoffs_

float SEGYSeisTrcTranslator::curoffs_ = -1.f
protected

◆ curtrcnr_

int SEGYSeisTrcTranslator::curtrcnr_
protected

◆ estnrtrcs_

int SEGYSeisTrcTranslator::estnrtrcs_ = -1
protected

◆ fileopts_

SEGY::FileReadOpts SEGYSeisTrcTranslator::fileopts_
protected

◆ filepars_

SEGY::FilePars SEGYSeisTrcTranslator::filepars_
protected

◆ forcedrev_

int SEGYSeisTrcTranslator::forcedrev_ = -1
protected

◆ headerbuf_

unsigned char SEGYSeisTrcTranslator::headerbuf_[240]
protected

◆ inpcd_

ComponentData* SEGYSeisTrcTranslator::inpcd_ = nullptr
protected

◆ offsetcalc_

SEGY::OffsetCalculator SEGYSeisTrcTranslator::offsetcalc_
protected

◆ othdomain_

bool SEGYSeisTrcTranslator::othdomain_ = false
protected

◆ outcd_

TargetComponentData* SEGYSeisTrcTranslator::outcd_ = nullptr
protected

◆ prevbid_

BinID SEGYSeisTrcTranslator::prevbid_
protected

◆ prevoffs_

float SEGYSeisTrcTranslator::prevoffs_ = 0.f
protected

◆ prevtrcnr_

int SEGYSeisTrcTranslator::prevtrcnr_
protected

◆ trchead_

SEGY::TrcHeader& SEGYSeisTrcTranslator::trchead_
protected

◆ txthead_

SEGY::TxtHeader* SEGYSeisTrcTranslator::txthead_ = nullptr
protected

◆ useinpsd_

bool SEGYSeisTrcTranslator::useinpsd_ = false
protected

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