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

Public Member Functions

 CBVSSeisTrcTranslator (const char *, const char *)
 
 ~CBVSSeisTrcTranslator ()
 
int bytesOverheadPerTrace () const override
 
const char * defExtension () const override
 
int estimatedNrTraces () const override
 
bool forRead () const override
 
bool getConfirmRemoveMsg (const IOObj *, uiString &msg, uiString &canceltxt, uiString &yestxt, uiString &notxt) const override
 
bool getGeometryInfo (PosInfo::CubeData &) const override
 
Pos::IdxPair2Coord getTransform () const
 
bool goTo (const BinID &) override
 
bool implIsLink (const IOObj *) const override
 
bool implRemove (const IOObj *, bool) const override
 
bool implRename (const IOObj *, const char *) const override
 
bool implSetReadOnly (const IOObj *, bool) const override
 
bool is2D () const
 
bool isUserSelectable (bool) const override
 
bool readDataPack (RegularSeisDataPack &, TaskRunner *) override
 
bool readInfo (SeisTrcInfo &) override
 
const CBVSReadMgrreadMgr () const
 
void set2D (bool yn=true)
 
void setCoordPol (bool dowrite, bool intrailer)
 
void setCurGeomID (Pos::GeomID) override
 
void setForceUseCBVSInfo (bool yn)
 
void setPreselDataType (int dt)
 
void setSingleFile (bool yn=true)
 
bool singleFile () const
 
bool skip (int nrtrcs=1) override
 
bool supportsGoTo () const override
 
bool toStart ()
 
void usePar (const IOPar &) override
 
- Public Member Functions inherited from SeisTrcTranslator
virtual ~SeisTrcTranslator ()
 
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 &)
 
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 &)
 
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 &)
 
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
 
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 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 CBVSSeisTrcTranslatormake (const char *fnm, bool forinfoonly, bool is2d, uiString *errmsg=0, bool forceusecbvsinfo=false)
 
static const char * sKeyDefExtension ()
 
static const char * sKeyOptDir ()
 
- 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 blockDumped (int) override
 
void cleanUp () override
 Prepare for new initialization. More...
 
bool commitSelections_ () override
 
bool getFileName (BufferString &)
 
bool inactiveSelData () const
 
bool initRead_ () override
 
bool initWrite_ (const SeisTrc &) override
 
int selRes (const BinID &) const
 
bool startWrite ()
 
bool toNext ()
 
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 addWarn (int, const char *)
 
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)
 

Protected Attributes

PosAuxInfo auxinf_
 
VBrickSpecbrickspec_
 
bool * compsel_ = nullptr
 
int coordpol_
 
bool donext_ = false
 
bool forceusecbvsinfo_ = false
 
bool forread_ = true
 
int nrdone_ = 0
 
int preseldatatype_ = 0
 
CBVSReadMgrrdmgr_ = nullptr
 
bool single_file_ = false
 
CBVSWriteMgrwrmgr_ = nullptr
 
- 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

void destroyVars (int)
 
bool readData (TraceData *externalbuf) override
 

Static Private Attributes

static const IOPardatatypeparspec
 

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

◆ CBVSSeisTrcTranslator()

CBVSSeisTrcTranslator::CBVSSeisTrcTranslator ( const char *  ,
const char *   
)

◆ ~CBVSSeisTrcTranslator()

CBVSSeisTrcTranslator::~CBVSSeisTrcTranslator ( )

Member Function Documentation

◆ blockDumped()

void CBVSSeisTrcTranslator::blockDumped ( int  )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ bytesOverheadPerTrace()

int CBVSSeisTrcTranslator::bytesOverheadPerTrace ( ) const
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ cleanUp()

void CBVSSeisTrcTranslator::cleanUp ( )
overrideprotectedvirtual

Prepare for new initialization.

Reimplemented from SeisTrcTranslator.

◆ commitSelections_()

bool CBVSSeisTrcTranslator::commitSelections_ ( )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ defExtension()

const char* CBVSSeisTrcTranslator::defExtension ( ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ destroyVars()

void CBVSSeisTrcTranslator::destroyVars ( int  )
private

◆ estimatedNrTraces()

int CBVSSeisTrcTranslator::estimatedNrTraces ( ) const
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ forRead()

bool CBVSSeisTrcTranslator::forRead ( ) const
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ getConfirmRemoveMsg()

bool CBVSSeisTrcTranslator::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.

◆ getFileName()

bool CBVSSeisTrcTranslator::getFileName ( BufferString )
protected

◆ getGeometryInfo()

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

Reimplemented from SeisTrcTranslator.

◆ getTransform()

Pos::IdxPair2Coord CBVSSeisTrcTranslator::getTransform ( ) const

◆ goTo()

bool CBVSSeisTrcTranslator::goTo ( const BinID )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ implIsLink()

bool CBVSSeisTrcTranslator::implIsLink ( const IOObj ) const
overridevirtual

Reimplemented from Translator.

◆ implRemove()

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

Reimplemented from Translator.

◆ implRename()

bool CBVSSeisTrcTranslator::implRename ( const IOObj ,
const char *   
) const
overridevirtual

Reimplemented from Translator.

◆ implSetReadOnly()

bool CBVSSeisTrcTranslator::implSetReadOnly ( const IOObj ,
bool   
) const
overridevirtual

Reimplemented from Translator.

◆ inactiveSelData()

bool CBVSSeisTrcTranslator::inactiveSelData ( ) const
protected

◆ initRead_()

bool CBVSSeisTrcTranslator::initRead_ ( )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ initWrite_()

bool CBVSSeisTrcTranslator::initWrite_ ( const SeisTrc )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

◆ is2D()

bool CBVSSeisTrcTranslator::is2D ( ) const

◆ isUserSelectable()

bool CBVSSeisTrcTranslator::isUserSelectable ( bool  ) const
inlineoverridevirtual

Reimplemented from Translator.

◆ make()

static CBVSSeisTrcTranslator* CBVSSeisTrcTranslator::make ( const char *  fnm,
bool  forinfoonly,
bool  is2d,
uiString errmsg = 0,
bool  forceusecbvsinfo = false 
)
static

◆ readData()

bool CBVSSeisTrcTranslator::readData ( TraceData externalbuf)
overrideprivatevirtual

Reimplemented from SeisTrcTranslator.

◆ readDataPack()

bool CBVSSeisTrcTranslator::readDataPack ( RegularSeisDataPack ,
TaskRunner  
)
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ readInfo()

bool CBVSSeisTrcTranslator::readInfo ( SeisTrcInfo )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ readMgr()

const CBVSReadMgr* CBVSSeisTrcTranslator::readMgr ( ) const
inline

◆ selRes()

int CBVSSeisTrcTranslator::selRes ( const BinID ) const
protected

◆ set2D()

void CBVSSeisTrcTranslator::set2D ( bool  yn = true)

◆ setCoordPol()

void CBVSSeisTrcTranslator::setCoordPol ( bool  dowrite,
bool  intrailer 
)

◆ setCurGeomID()

void CBVSSeisTrcTranslator::setCurGeomID ( Pos::GeomID  )
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ setForceUseCBVSInfo()

void CBVSSeisTrcTranslator::setForceUseCBVSInfo ( bool  yn)
inline

◆ setPreselDataType()

void CBVSSeisTrcTranslator::setPreselDataType ( int  dt)
inline

◆ setSingleFile()

void CBVSSeisTrcTranslator::setSingleFile ( bool  yn = true)
inline

◆ singleFile()

bool CBVSSeisTrcTranslator::singleFile ( ) const
inline

◆ sKeyDefExtension()

static const char* CBVSSeisTrcTranslator::sKeyDefExtension ( )
static

◆ sKeyOptDir()

static const char* CBVSSeisTrcTranslator::sKeyOptDir ( )
inlinestatic

◆ skip()

bool CBVSSeisTrcTranslator::skip ( int  nrtrcs = 1)
overridevirtual

Reimplemented from SeisTrcTranslator.

◆ startWrite()

bool CBVSSeisTrcTranslator::startWrite ( )
protected

◆ supportsGoTo()

bool CBVSSeisTrcTranslator::supportsGoTo ( ) const
inlineoverridevirtual

Reimplemented from SeisTrcTranslator.

◆ toNext()

bool CBVSSeisTrcTranslator::toNext ( )
protected

◆ toStart()

bool CBVSSeisTrcTranslator::toStart ( )

◆ usePar()

void CBVSSeisTrcTranslator::usePar ( const IOPar )
overridevirtual

Reimplemented from Translator.

◆ writeTrc_()

bool CBVSSeisTrcTranslator::writeTrc_ ( const SeisTrc )
overrideprotectedvirtual

Reimplemented from SeisTrcTranslator.

Member Data Documentation

◆ auxinf_

PosAuxInfo CBVSSeisTrcTranslator::auxinf_
protected

◆ brickspec_

VBrickSpec& CBVSSeisTrcTranslator::brickspec_
protected

◆ compsel_

bool* CBVSSeisTrcTranslator::compsel_ = nullptr
protected

◆ coordpol_

int CBVSSeisTrcTranslator::coordpol_
protected

◆ datatypeparspec

const IOPar& CBVSSeisTrcTranslator::datatypeparspec
staticprivate

◆ donext_

bool CBVSSeisTrcTranslator::donext_ = false
protected

◆ forceusecbvsinfo_

bool CBVSSeisTrcTranslator::forceusecbvsinfo_ = false
protected

◆ forread_

bool CBVSSeisTrcTranslator::forread_ = true
protected

◆ nrdone_

int CBVSSeisTrcTranslator::nrdone_ = 0
protected

◆ preseldatatype_

int CBVSSeisTrcTranslator::preseldatatype_ = 0
protected

◆ rdmgr_

CBVSReadMgr* CBVSSeisTrcTranslator::rdmgr_ = nullptr
protected

◆ single_file_

bool CBVSSeisTrcTranslator::single_file_ = false
protected

◆ wrmgr_

CBVSWriteMgr* CBVSSeisTrcTranslator::wrmgr_ = nullptr
protected

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