OpendTect
7.0
|
Seismic Trace translator. More...
Classes | |
class | ComponentData |
Information for one component. More... | |
class | TargetComponentData |
ComponentData as it should be when the Translator puts it away. More... | |
Public Member Functions | |
virtual | ~SeisTrcTranslator () |
virtual int | bytesOverheadPerTrace () const |
virtual void | cleanUp () |
Prepare for new initialization. More... | |
virtual bool | close () |
bool | commitSelections () |
ObjectSet< TargetComponentData > & | componentInfo () |
const ObjectSet< TargetComponentData > & | componentInfo () const |
virtual Conn * | curConn () |
Pos::GeomID | curGeomID () const |
const char * | dataName () const |
void | enforceRegularWrite (bool yn) |
void | enforceSurvinfoWrite (bool yn) |
uiString | errMsg () const |
virtual int | estimatedNrTraces () const |
void | getComponentNames (BufferStringSet &) const |
SeisTrc * | getEmpty () |
SeisTrc * | getFilled (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 | is2D () const |
bool | isPS () const |
bool | isUserSelectable (bool) const override |
int | nrSelComps () const |
int | outNrSamples () const |
const SamplingData< float > & | outSD () const |
SeisPacketInfo & | packetInfo () |
virtual bool | read (SeisTrc &) |
virtual bool | readData (TraceData *extbuf=nullptr) |
virtual bool | readDataPack (RegularSeisDataPack &, TaskRunner *=nullptr) |
virtual bool | readInfo (SeisTrcInfo &) |
bool | readTraceData (TraceData *td=nullptr) |
int | selComp (int nr=0) const |
const Seis::SelData * | selData () 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) |
virtual bool | skip (int nrtrcs=1) |
virtual bool | supportsGoTo () const |
bool | supportsMultiCompTrc () const |
const LinScaler * | traceScaler () const |
void | usePar (const IOPar &) override |
const BufferStringSet & | warnings () 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 IOObj * | createWriteIOObj (const IOObjContext &, const MultiID &) const |
virtual const char * | defExtension () const |
virtual bool | getConfirmRemoveMsg (const IOObj *, uiString &msg, uiString &canceltxt, uiString &deepremovetxt, uiString &shallowremovetxt) const |
const char * | getDisplayName () const |
"username [group]" More... | |
virtual Translator * | getNew () const =0 |
const TranslatorGroup * | group () const |
virtual const char * | iconName () const |
virtual bool | implExists (const IOObj *, bool forread) const |
virtual bool | implIsLink (const IOObj *) const |
virtual bool | implReadOnly (const IOObj *) const |
virtual bool | implRemove (const IOObj *, bool deep=true) const |
virtual bool | implRename (const IOObj *, const char *newnm) const |
virtual bool | implSetReadOnly (const IOObj *, bool) const |
virtual const uiString & | message () const |
void | setGroup (TranslatorGroup *g) |
uiString | sSelObjectIsWrongType () |
const OD::String & | typeName () const |
const OD::String & | userName () 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 CallBacker * | trueCaller () |
Static Public Member Functions | |
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 Translator * | getTemplateInstance (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 | |
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 | commitSelections_ () |
virtual bool | dumpBlock () |
will call blockDumped() More... | |
virtual bool | forRead () const |
virtual bool | initRead_ () |
virtual bool | initWrite_ (const SeisTrc &) |
void | prepareComponents (SeisTrc &, int actualsz) const |
virtual bool | prepareWriteBlock (StepInterval< int > &, bool &) |
void | setDataType (int icomp, int d) |
virtual bool | writeTrc_ (const SeisTrc &) |
Private Member Functions | |
bool | copyDataToTrace (SeisTrc &) |
void | enforceBounds () |
bool | initConn (Conn *) |
bool | writeBlock () |
Private Attributes | |
int * | inpfor_ = nullptr |
int | lastinlwritten_ |
int | nrout_ = 0 |
int | prevnr_ = mUdf(int) |
Friends | |
class | SeisTrcReader |
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) |
Seismic Trace translator.
The protocol is as follows:
1) Client opens Connection apropriate for Translator. This connection will remain managed by client.
READ:
2) initRead() call initializes SeisPacketInfo, Component info and SelData on input (if any) 3) Client subselects in components and space (SelData) 4) commitSelections() 5) By checking readInfo(), client may determine whether space selection was satisfied. Space selection is just a hint. This is done to protect client against (possible) freeze during (possible) search. 6) readData() reads actual trace components, or skip() skips trace(s).
WRITE:
2) with initWrite() client passes Connection and example trace. Translator will fill default writing layout. If Translator is single component, only the first component will have a destidx != -1. 3) Client sets trace selection and components as wanted 4) commitSelections() writes 'global' header, if any 5) write() writes selected traces/trace sections
lastly) close() finishes work (does not close connection). If you don't close yourself, the destructor will do it but make sure it's done because otherwise you'll likely loose an entire inline when writing.
Another note: the SelData type 'TrcNrs' is not supported by this class. That is because of nasty implementation details on this level. The classes SeisTrcReader and SeisTrcWriter do support it.
<>
<>
|
virtual |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in SEGYSeisTrcTranslator.
|
inlineprotectedvirtual |
Reimplemented in CBVSSeisTrcTranslator.
|
inlinevirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, and BlocksSeisTrcTranslator.
|
virtual |
Prepare for new initialization.
Reimplemented in CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
virtual |
Reimplemented in BlocksSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
bool SeisTrcTranslator::commitSelections | ( | ) |
If not called, will be called by Translator. For write, this will put tape header (if any)
|
inlineprotectedvirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
inline |
|
inline |
|
private |
|
inlinevirtual |
Reimplemented in SEGYDirectSeisTrcTranslator.
|
inline |
|
inline |
|
protectedvirtual |
will call blockDumped()
|
private |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
protectedvirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
void SeisTrcTranslator::getComponentNames | ( | BufferStringSet & | ) | const |
SeisTrc* SeisTrcTranslator::getEmpty | ( | ) |
Returns an empty trace with the target data characteristics for component 0
|
inlinevirtual |
Reimplemented in CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SeisTrc2DTranslator, and SEGYDirectSeisTrcTranslator.
|
static |
|
static |
|
inlinevirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
bool SeisTrcTranslator::haveWarnings | ( | ) | const |
|
private |
bool SeisTrcTranslator::initRead | ( | Conn * | , |
Seis::ReadMode | rt = Seis::Prod |
||
) |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
Should only be used to filter out old LineSet entries in .omf
|
inline |
|
static |
|
inlineoverridevirtual |
Reimplemented from Translator.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
inlineprotectedvirtual |
|
virtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, BlocksSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
inlinevirtual |
Reimplemented in CBVSSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
inlinevirtual |
Reimplemented in CBVSSeisTrcTranslator.
|
inlinevirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
|
inline |
|
inline |
|
inline |
void SeisTrcTranslator::setComponentNames | ( | const BufferStringSet & | ) |
|
virtual |
|
static |
|
virtual |
Reimplemented in CBVSSeisTrcTranslator.
|
inline |
|
inlineprotected |
|
static |
|
inlinevirtual |
Reimplemented in SEGYSeisTrcTranslator.
|
inlinevirtual |
Reimplemented in SEGYSeisTrcTranslator.
|
inline |
This Seis::SelData is seen as a hint ...
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinevirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, BlocksSeisTrcTranslator, SEGYSeisTrcTranslator, SEGYDirectSeisTrcTranslator, and CBVSSeisTrcTranslator.
|
inlinevirtual |
Reimplemented in SeisPSCubeSeisTrcTranslator, CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, and SEGYDirectSeisTrcTranslator.
bool SeisTrcTranslator::supportsMultiCompTrc | ( | ) | const |
|
inline |
|
overridevirtual |
Reimplemented from Translator.
|
inline |
|
virtual |
Reimplemented in SEGYDirectSeisTrcTranslator.
|
private |
|
inlineprotectedvirtual |
Reimplemented in CBVSSeisTrcTranslator, BlocksSeisTrcTranslator, and SEGYSeisTrcTranslator.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024