OpendTect  6.6
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 ()
 
virtual int bytesOverheadPerTrace () const
 
const char * defExtension () const
 
virtual bool forRead () const
 
virtual bool getGeometryInfo (PosInfo::CubeData &) const
 
Pos::IdxPair2Coord getTransform () const
 
bool goTo (const BinID &)
 
virtual bool implRemove (const IOObj *) const
 
virtual bool implRename (const IOObj *, const char *, const CallBack *cb=0) const
 
virtual bool implSetReadOnly (const IOObj *, bool) const
 
bool is2D () const
 
bool isUserSelectable (bool) const
 
bool read (SeisTrc &)
 
bool readInfo (SeisTrcInfo &)
 
const CBVSReadMgrreadMgr () const
 
void set2D (bool yn=true)
 
void setCoordPol (bool dowrite, bool intrailer)
 
void setForceUseCBVSInfo (bool yn)
 
void setPreselDataType (int dt)
 
void setSingleFile (bool yn=true)
 
bool singleFile () const
 
bool skip (int nrtrcs=1)
 
bool supportsGoTo () const
 
bool toStart ()
 
virtual void usePar (const IOPar &)
 
- Public Member Functions inherited from SeisTrcTranslator
 SeisTrcTranslator (const char *, const char *)
 
virtual ~SeisTrcTranslator ()
 
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 &)
 
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 ()
 
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)
 
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 implManagesObjects (const IOObj *) const
 
virtual bool implReadOnly (const IOObj *) 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
 

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=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

virtual void blockDumped (int)
 
virtual void cleanUp ()
 Prepare for new initialisation. More...
 
virtual bool commitSelections_ ()
 
bool getFileName (BufferString &)
 
bool inactiveSelData () const
 
virtual bool initRead_ ()
 
virtual bool initWrite_ (const SeisTrc &)
 
int selRes (const BinID &) const
 
bool startWrite ()
 
bool toNext ()
 
virtual bool writeTrc_ (const SeisTrc &)
 
- Protected Member Functions inherited from SeisTrcTranslator
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_
 
unsigned char ** blockbufs_
 
VBrickSpecbrickspec_
 
bool * compsel_
 
int coordpol_
 
bool donext_
 
bool forceusecbvsinfo_
 
bool forread_
 
bool headerdone_
 
bool is2d_
 
int nrdone_
 
int preseldatatype_
 
CBVSReadMgrrdmgr_
 
bool single_file_
 
TraceDataInterpreter ** storinterps_
 
CBVSWriteMgrwrmgr_
 
- 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

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

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=0)
 
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()

virtual void CBVSSeisTrcTranslator::blockDumped ( int  )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ bytesOverheadPerTrace()

virtual int CBVSSeisTrcTranslator::bytesOverheadPerTrace ( ) const
virtual

Reimplemented from SeisTrcTranslator.

◆ cleanUp()

virtual void CBVSSeisTrcTranslator::cleanUp ( )
protectedvirtual

Prepare for new initialisation.

Reimplemented from SeisTrcTranslator.

◆ commitSelections_()

virtual bool CBVSSeisTrcTranslator::commitSelections_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ defExtension()

const char* CBVSSeisTrcTranslator::defExtension ( ) const
inlinevirtual

Reimplemented from Translator.

◆ destroyVars()

void CBVSSeisTrcTranslator::destroyVars ( int  )
private

◆ forRead()

virtual bool CBVSSeisTrcTranslator::forRead ( ) const
virtual

Reimplemented from SeisTrcTranslator.

◆ getFileName()

bool CBVSSeisTrcTranslator::getFileName ( BufferString )
protected

◆ getGeometryInfo()

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

Reimplemented from SeisTrcTranslator.

◆ getTransform()

Pos::IdxPair2Coord CBVSSeisTrcTranslator::getTransform ( ) const

◆ goTo()

bool CBVSSeisTrcTranslator::goTo ( const BinID )
virtual

Reimplemented from SeisTrcTranslator.

◆ implRemove()

virtual bool CBVSSeisTrcTranslator::implRemove ( const IOObj ) const
virtual

Reimplemented from Translator.

◆ implRename()

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

Reimplemented from Translator.

◆ implSetReadOnly()

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

Reimplemented from Translator.

◆ inactiveSelData()

bool CBVSSeisTrcTranslator::inactiveSelData ( ) const
protected

◆ initRead_()

virtual bool CBVSSeisTrcTranslator::initRead_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ initWrite_()

virtual bool CBVSSeisTrcTranslator::initWrite_ ( const SeisTrc )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ is2D()

bool CBVSSeisTrcTranslator::is2D ( ) const
inline

◆ isUserSelectable()

bool CBVSSeisTrcTranslator::isUserSelectable ( bool  ) const
inlinevirtual

Reimplemented from SeisTrcTranslator.

◆ make()

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

◆ read()

bool CBVSSeisTrcTranslator::read ( SeisTrc )
virtual

Reimplemented from SeisTrcTranslator.

◆ readData()

virtual bool CBVSSeisTrcTranslator::readData ( TraceData externalbuf)
privatevirtual

Reimplemented from SeisTrcTranslator.

◆ readInfo()

bool CBVSSeisTrcTranslator::readInfo ( SeisTrcInfo )
virtual

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 
)

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

Reimplemented from SeisTrcTranslator.

◆ startWrite()

bool CBVSSeisTrcTranslator::startWrite ( )
protected

◆ supportsGoTo()

bool CBVSSeisTrcTranslator::supportsGoTo ( ) const
inlinevirtual

Reimplemented from SeisTrcTranslator.

◆ toNext()

bool CBVSSeisTrcTranslator::toNext ( )
protected

◆ toStart()

bool CBVSSeisTrcTranslator::toStart ( )

◆ usePar()

virtual void CBVSSeisTrcTranslator::usePar ( const IOPar )
virtual

Reimplemented from SeisTrcTranslator.

◆ writeTrc_()

virtual bool CBVSSeisTrcTranslator::writeTrc_ ( const SeisTrc )
protectedvirtual

Reimplemented from SeisTrcTranslator.

Member Data Documentation

◆ auxinf_

PosAuxInfo CBVSSeisTrcTranslator::auxinf_
protected

◆ blockbufs_

unsigned char** CBVSSeisTrcTranslator::blockbufs_
protected

◆ brickspec_

VBrickSpec& CBVSSeisTrcTranslator::brickspec_
protected

◆ compsel_

bool* CBVSSeisTrcTranslator::compsel_
protected

◆ coordpol_

int CBVSSeisTrcTranslator::coordpol_
protected

◆ datatypeparspec

const IOPar& CBVSSeisTrcTranslator::datatypeparspec
staticprivate

◆ donext_

bool CBVSSeisTrcTranslator::donext_
protected

◆ forceusecbvsinfo_

bool CBVSSeisTrcTranslator::forceusecbvsinfo_
protected

◆ forread_

bool CBVSSeisTrcTranslator::forread_
protected

◆ headerdone_

bool CBVSSeisTrcTranslator::headerdone_
protected

◆ is2d_

bool CBVSSeisTrcTranslator::is2d_
protected

◆ nrdone_

int CBVSSeisTrcTranslator::nrdone_
protected

◆ preseldatatype_

int CBVSSeisTrcTranslator::preseldatatype_
protected

◆ rdmgr_

CBVSReadMgr* CBVSSeisTrcTranslator::rdmgr_
protected

◆ single_file_

bool CBVSSeisTrcTranslator::single_file_
protected

◆ storinterps_

TraceDataInterpreter** CBVSSeisTrcTranslator::storinterps_
protected

◆ wrmgr_

CBVSWriteMgr* CBVSSeisTrcTranslator::wrmgr_
protected

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