OpendTect  6.6
Public Member Functions | Protected Attributes | List of all members
SeisTrc2DTranslator Class Reference

Base translator for 2D Seismics. More...

Inheritance diagram for SeisTrc2DTranslator:
[legend]

Public Member Functions

 SeisTrc2DTranslator (const char *s1, const char *s2)
 
virtual bool getGeometryInfo (PosInfo::CubeData &) const
 
bool implRemove (const IOObj *) const
 
bool implRename (const IOObj *, const char *, const CallBack *cb=0) const
 
bool initRead_ ()
 supporting getRanges() More...
 
bool initWrite_ (const SeisTrc &)
 
bool isUserSelectable (bool) const
 
void setDataSet (const Seis2DDataSet &)
 
- Public Member Functions inherited from SeisTrcTranslator
 SeisTrcTranslator (const char *, const char *)
 
virtual ~SeisTrcTranslator ()
 
virtual int bytesOverheadPerTrace () const
 
virtual void cleanUp ()
 Prepare for new initialisation. More...
 
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
 
virtual int estimatedNrTraces () const
 
void getComponentNames (BufferStringSet &) const
 
SeisTrcgetEmpty ()
 
SeisTrcgetFilled (const BinID &)
 
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
 
int nrSelComps () const
 
int outNrSamples () const
 
const SamplingData< float > & outSD () const
 
SeisPacketInfopacketInfo ()
 
virtual bool read (SeisTrc &)
 
virtual bool readInfo (SeisTrcInfo &)
 
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 skip (int nrtrcs=1)
 
virtual bool supportsGoTo () const
 
const LinScalertraceScaler () const
 
virtual void usePar (const IOPar &)
 
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 const char * defExtension () 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 implManagesObjects (const IOObj *) const
 
virtual bool implReadOnly (const IOObj *) 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 Attributes

const Seis2DDataSetdataset_
 
- 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_
 

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 ()
 
- Protected Member Functions inherited from SeisTrcTranslator
void addComp (const DataCharacteristics &, const char *nm=0, int dtype=0)
 
virtual void addWarn (int, const char *)
 
virtual void blockDumped (int nrtrcs)
 
virtual bool commitSelections_ ()
 
virtual bool dumpBlock ()
 will call blockDumped() More...
 
virtual bool forRead () const
 
void prepareComponents (SeisTrc &, int actualsz) const
 
virtual bool prepareWriteBlock (StepInterval< int > &, bool &)
 
virtual bool readData (TraceData *extbuf=0)
 
void setDataType (int icomp, int d)
 
virtual bool writeTrc_ (const SeisTrc &)
 
- 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

Base translator for 2D Seismics.

<>

Constructor & Destructor Documentation

◆ SeisTrc2DTranslator()

SeisTrc2DTranslator::SeisTrc2DTranslator ( const char *  s1,
const char *  s2 
)
inline

Member Function Documentation

◆ getGeometryInfo()

virtual bool SeisTrc2DTranslator::getGeometryInfo ( PosInfo::CubeData ) const
virtual

Reimplemented from SeisTrcTranslator.

◆ implRemove()

bool SeisTrc2DTranslator::implRemove ( const IOObj ) const
virtual

Reimplemented from Translator.

◆ implRename()

bool SeisTrc2DTranslator::implRename ( const IOObj ,
const char *  ,
const CallBack cb = 0 
) const
virtual

Reimplemented from Translator.

◆ initRead_()

bool SeisTrc2DTranslator::initRead_ ( )
virtual

supporting getRanges()

Reimplemented from SeisTrcTranslator.

◆ initWrite_()

bool SeisTrc2DTranslator::initWrite_ ( const SeisTrc )
inlinevirtual

Reimplemented from SeisTrcTranslator.

◆ isUserSelectable()

bool SeisTrc2DTranslator::isUserSelectable ( bool  ) const
inlinevirtual

Reimplemented from SeisTrcTranslator.

Reimplemented in CBVSSeisTrc2DTranslator, and SEGYDirectSeisTrc2DTranslator.

◆ setDataSet()

void SeisTrc2DTranslator::setDataSet ( const Seis2DDataSet )

Member Data Documentation

◆ dataset_

const Seis2DDataSet* SeisTrc2DTranslator::dataset_
protected

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