OpendTect
6.6
|
Seismic Trace translator. More...
Public Member Functions | |
const char * | getSurveyDefaultKey (const IOObj *) const |
mDefEmptyTranslatorGroupConstructor (SeisTrc) static const char *sKeyDefault3D() | |
Public Member Functions inherited from TranslatorGroup | |
TranslatorGroup (const char *clssnm) | |
bool | add (Translator *) |
void | clearSelHist () |
virtual const char * | defExtension () const |
int | defTranslIdx () const |
const Translator * | getTemplate (const char *, bool usrnm) const |
virtual FixedString | groupName () const =0 |
bool | hasConnType (const char *) const |
virtual const IOObjContext & | ioCtxt () const =0 |
virtual Translator * | make (const char *, bool usrnm) const |
virtual int | objSelector (const char *) const =0 |
Return value mObjSelUnrelated etc. More... | |
IOPar & | selHist () |
void | setDefTranslIdx (int i) |
const ObjectSet< const Translator > & | templates () const |
virtual const char * | translationApplication () const |
virtual uiString | typeName (int num=1) const =0 |
Static Public Member Functions | |
static const char * | sKeyDefault2D () |
static const char * | sKeyDefaultAttrib () |
Static Public Member Functions inherited from TranslatorGroup | |
static TranslatorGroup & | addGroup (TranslatorGroup *) |
static void | clearSelHists () |
static TranslatorGroup & | getGroup (const char *nm) |
static const ObjectSet< TranslatorGroup > & | groups () |
static bool | hasGroup (const char *nm) |
Additional Inherited Members | |
Protected Member Functions inherited from TranslatorGroup | |
const OD::String & | clssName () const |
Static Protected Member Functions inherited from TranslatorGroup | |
static ObjectSet< TranslatorGroup > & | getGroups () |
Protected Attributes inherited from TranslatorGroup | |
BufferString | clssname_ |
int | deftridx_ |
IOPar * | selhist_ |
ObjectSet< const Translator > | templs_ |
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 |
Reimplemented from TranslatorGroup.
|
inline |
|
inlinestatic |
|
inlinestatic |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022