OpendTect  6.6
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
 
const unsigned char * blockBuf () const
 
void cleanUp ()
 Prepare for new initialisation. More...
 
int dataBytes () const
 
virtual const char * defExtension () const
 
int estimatedNrTraces () const
 
SEGY::FileParsfilePars ()
 
SEGY::FileReadOptsfileReadOpts ()
 
int forcedRev () const
 
bool getFullTrcAsBuf (unsigned char *)
 
bool goToTrace (int)
 
virtual bool implManagesObjects (const IOObj *) const
 
bool implRemove (const IOObj *) const
 
bool isRev0 () const
 
int numberFormat () const
 
virtual bool read (SeisTrc &)
 
virtual bool readInfo (SeisTrcInfo &)
 
bool rev0Forced () const
 
void setCoordSys (Coords::CoordSystem *crs)
 
void setForcedRev (int rev)
 
void setForceRev0 (bool yn)
 
void setTxtHeader (SEGY::TxtHeader *)
 write; becomes mine More...
 
virtual bool skip (int)
 
void toSupported (DataCharacteristics &) const
 
int traceSizeOnDisk () const
 
const SEGY::TrcHeadertrcHeader () const
 
const SEGY::TxtHeadertxtHeader () const
 
void usePar (const IOPar &)
 
- Public Member Functions inherited from SeisTrcTranslator
 SeisTrcTranslator (const char *, const char *)
 
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 LineKeycurLineKey () 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 isPS () const
 
virtual bool isUserSelectable (bool) const
 
int nrSelComps () const
 
int outNrSamples () const
 
const SamplingData< float > & outSD () const
 
SeisPacketInfopacketInfo ()
 
bool readTraceData (TraceData *td=nullptr)
 
int selComp (int nr=0) const
 
const Seis::SelDataselData () const
 
void setComponentNames (const BufferStringSet &)
 
void setCurGeomID (Pos::GeomID gid)
 
void setCurLineKey (const LineKey &lk)
 
void setIs2D (bool yn)
 
void setIsPS (bool yn)
 
void setSelData (const Seis::SelData *t)
 
virtual bool supportsGoTo () const
 
const LinScalertraceScaler () const
 
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
 
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 *, const CallBack *cb=0) const
 
virtual bool implSetReadOnly (const IOObj *, bool) 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
 

Protected Member Functions

void addWarn (int, const char *)
 
bool commitSelections_ ()
 
void fillErrMsg (const uiString &, bool)
 
virtual void fillHeaderBuf (const SeisTrc &)
 
DataCharacteristics getDataChar (int) const
 
const char * getTrcPosStr () const
 
virtual bool initRead_ ()
 
virtual bool initWrite_ (const SeisTrc &)
 
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 ()
 
virtual bool writeTrc_ (const SeisTrc &)
 
- Protected Member Functions inherited from SeisTrcTranslator
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_
 
unsigned char * blockbuf_
 
BendPoints2Coordsbp2c_
 
RefMan< Coords::CoordSystemcoordsys_
 
BinID curbid_
 
Coord curcoord_
 
float curoffs_
 
int curtrcnr_
 
const LinScalercurtrcscale_
 
int estnrtrcs_
 
SEGY::FileReadOpts fileopts_
 
SEGY::FilePars filepars_
 
int forcedrev_
 
unsigned char headerbuf_ [240]
 
bool headerdone_
 
ComponentDatainpcd_
 
SEGY::OffsetCalculator offsetcalc_
 
bool othdomain_
 
TargetComponentDataoutcd_
 
BinID prevbid_
 
float prevoffs_
 
int prevtrcnr_
 
TraceDataInterpreterstorinterp_
 
SEGY::TrcHeadertrchead_
 
LinScalertrcscale_
 
SEGY::TxtHeadertxthead_
 
bool useinpsd_
 
- Protected Attributes inherited from SeisTrcTranslator
ObjectSet< ComponentDatacds_
 
BufferStringSetcompnms_
 
Connconn_
 
LineKey curlinekey_
 
const LinScalercurtrcscalebase_
 
bool datareaddone_
 
bool enforce_regular_write
 
bool enforce_survinfo_write
 
uiString errmsg_
 
Pos::GeomID geomid_
 
bool headerdonenew_
 
int innrsamples_
 
ComponentData ** inpcds_
 
SamplingData< float > insd_
 
bool is_2d
 
bool is_prestack
 
TargetComponentData ** outcds_
 
int outnrsamples_
 
SamplingData< float > outsd_
 
SeisPacketInfopinfo_
 
Seis::ReadMode read_mode
 
Interval< int > samprg_
 
const Seis::SelDataseldata_
 
TraceDatastorbuf_
 
ObjectSet< TargetComponentDatatarcds_
 
SeisTrcBuftrcblock_
 
LinScalertrcscalebase_
 
BufferStringSetwarnings_
 
TypeSet< int > warnnrs_
 
- Protected Attributes inherited from Translator
TranslatorGroupgroup_
 
BufferString typname_
 
BufferString usrname_
 

Private Member Functions

virtual bool readData (TraceData *externalbuf)
 

Friends

class SEGYDirectSeisTrcTranslator
 

Additional Inherited Members

- Static Public Member Functions inherited from SeisTrcTranslator
static bool getRanges (const IOObj &, TrcKeyZSampling &, const char *linekey=0)
 
static bool getRanges (const MultiID &, TrcKeyZSampling &, const char *linekey=0)
 
static bool is2D (const IOObj &, bool only_internal=false)
 
static bool isLineSet (const IOObj &)
 
static bool isPS (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 const TranslatorgetTemplateInstance (const char *displayname)
 
static uiString sBadConnection ()
 
static uiString sNoIoobjMsg ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- 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=0)
 
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 *   
)
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ binHeader()

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

◆ blockBuf()

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

◆ cleanUp()

void SEGYSeisTrcTranslator::cleanUp ( )
virtual

Prepare for new initialisation.

Reimplemented from SeisTrcTranslator.

◆ commitSelections_()

bool SEGYSeisTrcTranslator::commitSelections_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ dataBytes()

int SEGYSeisTrcTranslator::dataBytes ( ) const

◆ defExtension()

virtual const char* SEGYSeisTrcTranslator::defExtension ( ) const
inlinevirtual

Reimplemented from Translator.

◆ estimatedNrTraces()

int SEGYSeisTrcTranslator::estimatedNrTraces ( ) const
inlinevirtual

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  )

◆ implManagesObjects()

virtual bool SEGYSeisTrcTranslator::implManagesObjects ( const IOObj ) const
inlinevirtual

Reimplemented from Translator.

◆ implRemove()

bool SEGYSeisTrcTranslator::implRemove ( const IOObj ) const
inlinevirtual

Reimplemented from Translator.

◆ initRead_()

virtual bool SEGYSeisTrcTranslator::initRead_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ initWrite_()

virtual bool SEGYSeisTrcTranslator::initWrite_ ( const SeisTrc )
protectedvirtual

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

◆ read()

virtual bool SEGYSeisTrcTranslator::read ( SeisTrc )
virtual

Reimplemented from SeisTrcTranslator.

◆ readData() [1/2]

bool SEGYSeisTrcTranslator::readData ( SeisTrc )
protected

◆ readData() [2/2]

virtual bool SEGYSeisTrcTranslator::readData ( TraceData externalbuf)
privatevirtual

Reimplemented from SeisTrcTranslator.

◆ readDataToBuf()

bool SEGYSeisTrcTranslator::readDataToBuf ( )
protected

◆ readInfo()

virtual bool SEGYSeisTrcTranslator::readInfo ( SeisTrcInfo )
virtual

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

◆ setCoordSys()

void SEGYSeisTrcTranslator::setCoordSys ( Coords::CoordSystem crs)
inline

◆ setForcedRev()

void SEGYSeisTrcTranslator::setForcedRev ( int  rev)
inline

◆ setForceRev0()

void SEGYSeisTrcTranslator::setForceRev0 ( bool  yn)
inline

◆ setTxtHeader()

void SEGYSeisTrcTranslator::setTxtHeader ( SEGY::TxtHeader )

write; becomes mine

◆ skip()

virtual bool SEGYSeisTrcTranslator::skip ( int  )
virtual

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 )
virtual

Reimplemented from SeisTrcTranslator.

◆ writeData()

bool SEGYSeisTrcTranslator::writeData ( const SeisTrc )
protected

◆ writeTapeHeader()

virtual bool SEGYSeisTrcTranslator::writeTapeHeader ( )
protectedvirtual

◆ writeTrc_()

virtual bool SEGYSeisTrcTranslator::writeTrc_ ( const SeisTrc )
protectedvirtual

Reimplemented from SeisTrcTranslator.

Friends And Related Function Documentation

◆ SEGYDirectSeisTrcTranslator

friend class SEGYDirectSeisTrcTranslator
friend

Member Data Documentation

◆ binhead_

SEGY::BinHeader& SEGYSeisTrcTranslator::binhead_
protected

◆ blockbuf_

unsigned char* SEGYSeisTrcTranslator::blockbuf_
protected

◆ bp2c_

BendPoints2Coords* SEGYSeisTrcTranslator::bp2c_
protected

◆ coordsys_

RefMan<Coords::CoordSystem> SEGYSeisTrcTranslator::coordsys_
protected

◆ curbid_

BinID SEGYSeisTrcTranslator::curbid_
protected

◆ curcoord_

Coord SEGYSeisTrcTranslator::curcoord_
protected

◆ curoffs_

float SEGYSeisTrcTranslator::curoffs_
protected

◆ curtrcnr_

int SEGYSeisTrcTranslator::curtrcnr_
protected

◆ curtrcscale_

const LinScaler* SEGYSeisTrcTranslator::curtrcscale_
protected

◆ estnrtrcs_

int SEGYSeisTrcTranslator::estnrtrcs_
protected

◆ fileopts_

SEGY::FileReadOpts SEGYSeisTrcTranslator::fileopts_
protected

◆ filepars_

SEGY::FilePars SEGYSeisTrcTranslator::filepars_
protected

◆ forcedrev_

int SEGYSeisTrcTranslator::forcedrev_
protected

◆ headerbuf_

unsigned char SEGYSeisTrcTranslator::headerbuf_[240]
protected

◆ headerdone_

bool SEGYSeisTrcTranslator::headerdone_
protected

◆ inpcd_

ComponentData* SEGYSeisTrcTranslator::inpcd_
protected

◆ offsetcalc_

SEGY::OffsetCalculator SEGYSeisTrcTranslator::offsetcalc_
protected

◆ othdomain_

bool SEGYSeisTrcTranslator::othdomain_
protected

◆ outcd_

TargetComponentData* SEGYSeisTrcTranslator::outcd_
protected

◆ prevbid_

BinID SEGYSeisTrcTranslator::prevbid_
protected

◆ prevoffs_

float SEGYSeisTrcTranslator::prevoffs_
protected

◆ prevtrcnr_

int SEGYSeisTrcTranslator::prevtrcnr_
protected

◆ storinterp_

TraceDataInterpreter* SEGYSeisTrcTranslator::storinterp_
protected

◆ trchead_

SEGY::TrcHeader& SEGYSeisTrcTranslator::trchead_
protected

◆ trcscale_

LinScaler* SEGYSeisTrcTranslator::trcscale_
protected

◆ txthead_

SEGY::TxtHeader* SEGYSeisTrcTranslator::txthead_
protected

◆ useinpsd_

bool SEGYSeisTrcTranslator::useinpsd_
protected

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