OpendTect-6_4  6.4
Private Member Functions | Static Private Member Functions | List of all members
SeisTrcTranslatorGroup Class Reference

Seismic Trace translator. More...

Inheritance diagram for SeisTrcTranslatorGroup:
[legend]

Private Member Functions

 isTranslatorGroup (SeisTrc) public
 
const char * getSurveyDefaultKey (const IOObj *) const
 

Static Private Member Functions

static const char * sKeyDefault2D ()
 
static const char * sKeyDefaultAttrib ()
 

Additional Inherited Members

- Public Member Functions inherited from TranslatorGroup
 TranslatorGroup (const char *clssnm)
 
virtual FixedString groupName () const =0
 
virtual uiString typeName (int num=1) const =0
 
virtual Translatormake (const char *, bool usrnm) const
 
const TranslatorgetTemplate (const char *, bool usrnm) const
 
const ObjectSet< const Translator > & templates () const
 
virtual const IOObjContextioCtxt () const =0
 
virtual int objSelector (const char *) const =0
 Return value mObjSelUnrelated etc. More...
 
bool hasConnType (const char *) const
 
virtual const char * defExtension () const
 
IOParselHist ()
 
void clearSelHist ()
 
bool add (Translator *)
 
int defTranslIdx () const
 
void setDefTranslIdx (int i)
 
virtual const char * translationApplication () const
 
- Static Public Member Functions inherited from TranslatorGroup
static const ObjectSet< TranslatorGroup > & groups ()
 
static TranslatorGroupgetGroup (const char *nm)
 
static bool hasGroup (const char *nm)
 
static void clearSelHists ()
 
static TranslatorGroupaddGroup (TranslatorGroup *)
 
- Protected Member Functions inherited from TranslatorGroup
const OD::StringclssName () const
 
- Static Protected Member Functions inherited from TranslatorGroup
static ObjectSet< TranslatorGroup > & getGroups ()
 
- Protected Attributes inherited from TranslatorGroup
BufferString clssname_
 
ObjectSet< const Translatortempls_
 
int deftridx_
 
IOParselhist_
 

Detailed Description

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.

Member Function Documentation

const char* SeisTrcTranslatorGroup::getSurveyDefaultKey ( const IOObj ) const
privatevirtual

Reimplemented from TranslatorGroup.

SeisTrcTranslatorGroup::isTranslatorGroup ( SeisTrc  )
inlineprivate
static const char* SeisTrcTranslatorGroup::sKeyDefault2D ( )
inlinestaticprivate
static const char* SeisTrcTranslatorGroup::sKeyDefaultAttrib ( )
inlinestaticprivate

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