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

Public Member Functions

 SEGYDirectSeisTrcTranslator (const char *, const char *)
 
 ~SEGYDirectSeisTrcTranslator ()
 
void cleanUp () override
 Prepare for new initialization. More...
 
bool close () override
 
IOObjcreateWriteIOObj (const IOObjContext &, const MultiID &) const override
 
virtual BinID curBinID () const
 
ConncurConn () override
 
const char * defExtension () const override
 
uiString errMsg () const override
 
int estimatedNrTraces () const override
 
bool forRead () const override
 
bool getConfirmRemoveMsg (const IOObj *, uiString &msg, uiString &canceltxt, uiString &yestxt, uiString &notxt) const override
 
SEGY::DirectDefgetDef () override
 
bool getGeometryInfo (PosInfo::CubeData &) const override
 
bool goTo (const BinID &) override
 
const char * iconName () const override
 
bool implRemove (const IOObj *, bool) const override
 
bool isUserSelectable (bool) const override
 
bool read (SeisTrc &) override
 
bool readInfo (SeisTrcInfo &) override
 
bool skip (int) override
 
bool supportsGoTo () const override
 
virtual void toSupported (DataCharacteristics &) const
 
void usePar (const IOPar &) override
 
bool write (const SeisTrc &) override
 
- Public Member Functions inherited from SeisTrcTranslator
virtual ~SeisTrcTranslator ()
 
virtual int bytesOverheadPerTrace () const
 
bool commitSelections ()
 
ObjectSet< TargetComponentData > & componentInfo ()
 
const ObjectSet< TargetComponentData > & componentInfo () const
 
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 &)
 
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 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)
 
virtual void setIs2D (bool yn)
 
virtual void setIsPS (bool yn)
 
void setSelData (const Seis::SelData *t)
 
bool supportsMultiCompTrc () const
 
const LinScalertraceScaler () const
 
void usePar (const IOPar &) override
 
const BufferStringSetwarnings () const
 
- Public Member Functions inherited from Translator
 Translator (const char *nm, const char *usr_nm)
 
virtual ~Translator ()
 
virtual const char * connType () const
 
const char * getDisplayName () const
 "username [group]" More...
 
virtual TranslatorgetNew () const =0
 
const TranslatorGroupgroup () const
 
virtual bool implExists (const IOObj *, bool forread) const
 
virtual bool implIsLink (const IOObj *) 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 ()
 
- Public Member Functions inherited from SEGY::DirectReader
 DirectReader ()
 
virtual ~DirectReader ()
 
virtual SEGYSeisTrcTranslatorgetTranslator ()
 

Static Public Member Functions

static SEGYSeisTrcTranslatorcreateTranslator (const SEGY::DirectDef &def, int filenr)
 
- 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

bool commitSelections_ () override
 
const PosInfo::CubeDatacubeData () const
 
bool initRead_ () override
 
void initVars (bool for_read=true)
 
bool initWrite_ (const SeisTrc &) override
 
bool positionTranslator ()
 
bool toNextTrace ()
 
- Protected Member Functions inherited from SeisTrcTranslator
 SeisTrcTranslator (const char *, const char *)
 
void addComp (const DataCharacteristics &, const char *nm=0, int dtype=0)
 
virtual void addWarn (int, const char *)
 
virtual void blockDumped (int nrtrcs)
 
virtual bool dumpBlock ()
 will call blockDumped() More...
 
void prepareComponents (SeisTrc &, int actualsz) const
 
virtual bool prepareWriteBlock (StepInterval< int > &, bool &)
 
void setDataType (int icomp, int d)
 
virtual bool writeTrc_ (const SeisTrc &)
 

Protected Attributes

SEGY::DirectDefdef_ = nullptr
 
SEGY::FileDataSetfds_ = nullptr
 
bool forread_ = true
 
int ild_
 
int iseg_
 
int itrc_
 
BufferString segydeffilename_
 
BufferString segyfilename_
 
IOPar segypars_
 
- 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_
 
- Protected Attributes inherited from SEGY::DirectReader
int curfilenr_ = -1
 
SEGYSeisTrcTranslatortr_ = nullptr
 

Private Member Functions

bool readData (TraceData *externalbuf) override
 
void setCompDataFromInput ()
 

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

◆ SEGYDirectSeisTrcTranslator()

SEGYDirectSeisTrcTranslator::SEGYDirectSeisTrcTranslator ( const char *  ,
const char *   
)

◆ ~SEGYDirectSeisTrcTranslator()

SEGYDirectSeisTrcTranslator::~SEGYDirectSeisTrcTranslator ( )

Member Function Documentation

◆ cleanUp()

void SEGYDirectSeisTrcTranslator::cleanUp ( )
overridevirtual

Prepare for new initialization.

Reimplemented from SeisTrcTranslator.

◆ close()

bool SEGYDirectSeisTrcTranslator::close ( )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ commitSelections_()

bool SEGYDirectSeisTrcTranslator::commitSelections_ ( )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ createTranslator()

static SEGYSeisTrcTranslator* SEGYDirectSeisTrcTranslator::createTranslator ( const SEGY::DirectDef def,
int  filenr 
)
static

◆ createWriteIOObj()

IOObj* SEGYDirectSeisTrcTranslator::createWriteIOObj ( const IOObjContext ,
const MultiID  
) const
overridevirtual

Reimplemented from Translator.

◆ cubeData()

const PosInfo::CubeData& SEGYDirectSeisTrcTranslator::cubeData ( ) const
protected

◆ curBinID()

virtual BinID SEGYDirectSeisTrcTranslator::curBinID ( ) const
virtual

◆ curConn()

Conn* SEGYDirectSeisTrcTranslator::curConn ( )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ defExtension()

const char* SEGYDirectSeisTrcTranslator::defExtension ( ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ errMsg()

uiString SEGYDirectSeisTrcTranslator::errMsg ( ) const
inlineoverridevirtual

Implements SEGY::DirectReader.

◆ estimatedNrTraces()

int SEGYDirectSeisTrcTranslator::estimatedNrTraces ( ) const
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ forRead()

bool SEGYDirectSeisTrcTranslator::forRead ( ) const
inlineoverridevirtual

Reimplemented from SeisTrcTranslator.

◆ getConfirmRemoveMsg()

bool SEGYDirectSeisTrcTranslator::getConfirmRemoveMsg ( const IOObj ,
uiString msg,
uiString canceltxt,
uiString deepremovetxt,
uiString shallowremovetxt 
) const
overridevirtual

if deepremove option is selected by user, the implRemove call gets deep=true

Reimplemented from Translator.

◆ getDef()

SEGY::DirectDef* SEGYDirectSeisTrcTranslator::getDef ( )
inlineoverridevirtual

Implements SEGY::DirectReader.

◆ getGeometryInfo()

bool SEGYDirectSeisTrcTranslator::getGeometryInfo ( PosInfo::CubeData ) const
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ goTo()

bool SEGYDirectSeisTrcTranslator::goTo ( const BinID )
overridevirtual

Implements SEGY::DirectReader.

◆ iconName()

const char* SEGYDirectSeisTrcTranslator::iconName ( ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ implRemove()

bool SEGYDirectSeisTrcTranslator::implRemove ( const IOObj ,
bool   
) const
overridevirtual

Reimplemented from Translator.

◆ initRead_()

bool SEGYDirectSeisTrcTranslator::initRead_ ( )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ initVars()

void SEGYDirectSeisTrcTranslator::initVars ( bool  for_read = true)
protected

◆ initWrite_()

bool SEGYDirectSeisTrcTranslator::initWrite_ ( const SeisTrc )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ isUserSelectable()

bool SEGYDirectSeisTrcTranslator::isUserSelectable ( bool  ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ positionTranslator()

bool SEGYDirectSeisTrcTranslator::positionTranslator ( )
protected

◆ read()

bool SEGYDirectSeisTrcTranslator::read ( SeisTrc )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ readData()

bool SEGYDirectSeisTrcTranslator::readData ( TraceData externalbuf)
overrideprivatevirtual

Reimplemented from SeisTrcTranslator.

◆ readInfo()

bool SEGYDirectSeisTrcTranslator::readInfo ( SeisTrcInfo )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ setCompDataFromInput()

void SEGYDirectSeisTrcTranslator::setCompDataFromInput ( )
private

◆ skip()

bool SEGYDirectSeisTrcTranslator::skip ( int  )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ supportsGoTo()

bool SEGYDirectSeisTrcTranslator::supportsGoTo ( ) const
inlineoverridevirtual

Reimplemented from SeisTrcTranslator.

◆ toNextTrace()

bool SEGYDirectSeisTrcTranslator::toNextTrace ( )
protected

◆ toSupported()

virtual void SEGYDirectSeisTrcTranslator::toSupported ( DataCharacteristics ) const
virtual

◆ usePar()

void SEGYDirectSeisTrcTranslator::usePar ( const IOPar )
overridevirtual

Reimplemented from Translator.

◆ write()

bool SEGYDirectSeisTrcTranslator::write ( const SeisTrc )
overridevirtual

Reimplemented from SeisTrcTranslator.

Member Data Documentation

◆ def_

SEGY::DirectDef* SEGYDirectSeisTrcTranslator::def_ = nullptr
protected

◆ fds_

SEGY::FileDataSet* SEGYDirectSeisTrcTranslator::fds_ = nullptr
protected

◆ forread_

bool SEGYDirectSeisTrcTranslator::forread_ = true
protected

◆ ild_

int SEGYDirectSeisTrcTranslator::ild_
protected

◆ iseg_

int SEGYDirectSeisTrcTranslator::iseg_
protected

◆ itrc_

int SEGYDirectSeisTrcTranslator::itrc_
protected

◆ segydeffilename_

BufferString SEGYDirectSeisTrcTranslator::segydeffilename_
protected

◆ segyfilename_

BufferString SEGYDirectSeisTrcTranslator::segyfilename_
protected

◆ segypars_

IOPar SEGYDirectSeisTrcTranslator::segypars_
protected

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