OpendTect  6.6
Public Member Functions | Static Public Member Functions | List of all members
SeisTrcTranslatorGroup Class Reference

Seismic Trace translator. More...

Inheritance diagram for SeisTrcTranslatorGroup:
[legend]

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 TranslatorgetTemplate (const char *, bool usrnm) const
 
virtual FixedString groupName () const =0
 
bool hasConnType (const char *) const
 
virtual const IOObjContextioCtxt () const =0
 
virtual Translatormake (const char *, bool usrnm) const
 
virtual int objSelector (const char *) const =0
 Return value mObjSelUnrelated etc. More...
 
IOParselHist ()
 
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 TranslatorGroupaddGroup (TranslatorGroup *)
 
static void clearSelHists ()
 
static TranslatorGroupgetGroup (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::StringclssName () const
 
- Static Protected Member Functions inherited from TranslatorGroup
static ObjectSet< TranslatorGroup > & getGroups ()
 
- Protected Attributes inherited from TranslatorGroup
BufferString clssname_
 
int deftridx_
 
IOParselhist_
 
ObjectSet< const Translatortempls_
 

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

◆ getSurveyDefaultKey()

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

Reimplemented from TranslatorGroup.

◆ mDefEmptyTranslatorGroupConstructor()

SeisTrcTranslatorGroup::mDefEmptyTranslatorGroupConstructor ( SeisTrc  ) const
inline

◆ sKeyDefault2D()

static const char* SeisTrcTranslatorGroup::sKeyDefault2D ( )
inlinestatic

◆ sKeyDefaultAttrib()

static const char* SeisTrcTranslatorGroup::sKeyDefaultAttrib ( )
inlinestatic

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