OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SEGYDirectSeisTrcTranslator Class Reference
Inheritance diagram for SEGYDirectSeisTrcTranslator:
[legend]

Public Member Functions

 SEGYDirectSeisTrcTranslator (const char *, const char *)
 
 ~SEGYDirectSeisTrcTranslator ()
 
virtual void cleanUp ()
 Prepare for new initialisation. More...
 
virtual bool close ()
 
virtual IOObjcreateWriteIOObj (const IOObjContext &, const MultiID &) const
 
virtual BinID curBinID () const
 
virtual ConncurConn ()
 
virtual const char * defExtension () const
 
virtual uiString errMsg () const
 
virtual bool forRead () const
 
virtual SEGY::DirectDefgetDef ()
 
virtual bool getGeometryInfo (PosInfo::CubeData &) const
 
virtual bool goTo (const BinID &)
 
virtual const char * iconName () const
 
virtual bool implRemove (const IOObj *) const
 
virtual bool isUserSelectable (bool fr) const
 
virtual bool read (SeisTrc &)
 
virtual bool readInfo (SeisTrcInfo &)
 
virtual bool skip (int)
 
virtual bool supportsGoTo () const
 
virtual void toSupported (DataCharacteristics &) const
 
virtual void usePar (const IOPar &)
 
virtual bool write (const SeisTrc &)
 
- Public Member Functions inherited from SeisTrcTranslator
 SeisTrcTranslator (const char *, const char *)
 
virtual ~SeisTrcTranslator ()
 
virtual int bytesOverheadPerTrace () const
 
bool commitSelections ()
 
ObjectSet< TargetComponentData > & componentInfo ()
 
const ObjectSet< TargetComponentData > & componentInfo () const
 
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
 
- Public Member Functions inherited from Translator
 Translator (const char *nm, const char *usr_nm)
 
virtual ~Translator ()
 
virtual const char * connType () const
 
const char * getDisplayName () const
 "username [group]" More...
 
virtual TranslatorgetNew () const =0
 
const TranslatorGroupgroup () const
 
virtual bool implExists (const IOObj *, bool forread) const
 
virtual bool implManagesObjects (const IOObj *) const
 
virtual bool implReadOnly (const IOObj *) const
 
virtual bool implRename (const IOObj *, const char *, const CallBack *cb=0) const
 
virtual bool implSetReadOnly (const IOObj *, bool) 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
 
- Public Member Functions inherited from SEGY::DirectReader
 DirectReader ()
 
virtual ~DirectReader ()
 
virtual SEGYSeisTrcTranslatorgetTranslator ()
 

Static Public Member Functions

static SEGYSeisTrcTranslatorcreateTranslator (const SEGY::DirectDef &def, int filenr)
 
- 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

bool commitSelections_ ()
 
const PosInfo::CubeDatacubeData () const
 
virtual bool initRead_ ()
 
void initVars (bool for_read=true)
 
virtual bool initWrite_ (const SeisTrc &)
 
bool positionTranslator ()
 
bool toNextTrace ()
 
- Protected Member Functions inherited from SeisTrcTranslator
void addComp (const DataCharacteristics &, const char *nm=0, int dtype=0)
 
virtual void addWarn (int, const char *)
 
virtual void blockDumped (int nrtrcs)
 
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)
 
virtual bool writeTrc_ (const SeisTrc &)
 

Protected Attributes

SEGY::DirectDefdef_
 
SEGY::FileDataSetfds_
 
bool forread_
 
bool headerread_
 
int ild_
 
int iseg_
 
int itrc_
 
BufferString segydeffilename_
 
BufferString segyfilename_
 
IOPar segypars_
 
- 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_
 
- Protected Attributes inherited from SEGY::DirectReader
int curfilenr_
 
SEGYSeisTrcTranslatortr_
 

Private Member Functions

virtual bool readData (TraceData *externalbuf)
 
void setCompDataFromInput ()
 

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

◆ SEGYDirectSeisTrcTranslator()

SEGYDirectSeisTrcTranslator::SEGYDirectSeisTrcTranslator ( const char *  ,
const char *   
)

◆ ~SEGYDirectSeisTrcTranslator()

SEGYDirectSeisTrcTranslator::~SEGYDirectSeisTrcTranslator ( )

Member Function Documentation

◆ cleanUp()

virtual void SEGYDirectSeisTrcTranslator::cleanUp ( )
virtual

Prepare for new initialisation.

Reimplemented from SeisTrcTranslator.

◆ close()

virtual bool SEGYDirectSeisTrcTranslator::close ( )
virtual

Reimplemented from SeisTrcTranslator.

◆ commitSelections_()

bool SEGYDirectSeisTrcTranslator::commitSelections_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ createTranslator()

static SEGYSeisTrcTranslator* SEGYDirectSeisTrcTranslator::createTranslator ( const SEGY::DirectDef def,
int  filenr 
)
static

◆ createWriteIOObj()

virtual IOObj* SEGYDirectSeisTrcTranslator::createWriteIOObj ( const IOObjContext ,
const MultiID  
) const
virtual

Reimplemented from Translator.

◆ cubeData()

const PosInfo::CubeData& SEGYDirectSeisTrcTranslator::cubeData ( ) const
protected

◆ curBinID()

virtual BinID SEGYDirectSeisTrcTranslator::curBinID ( ) const
virtual

◆ curConn()

virtual Conn* SEGYDirectSeisTrcTranslator::curConn ( )
virtual

Reimplemented from SeisTrcTranslator.

◆ defExtension()

virtual const char* SEGYDirectSeisTrcTranslator::defExtension ( ) const
inlinevirtual

Reimplemented from Translator.

◆ errMsg()

virtual uiString SEGYDirectSeisTrcTranslator::errMsg ( ) const
inlinevirtual

Implements SEGY::DirectReader.

◆ forRead()

virtual bool SEGYDirectSeisTrcTranslator::forRead ( ) const
inlinevirtual

Reimplemented from SeisTrcTranslator.

◆ getDef()

virtual SEGY::DirectDef* SEGYDirectSeisTrcTranslator::getDef ( )
inlinevirtual

Implements SEGY::DirectReader.

◆ getGeometryInfo()

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

Reimplemented from SeisTrcTranslator.

◆ goTo()

virtual bool SEGYDirectSeisTrcTranslator::goTo ( const BinID )
virtual

Implements SEGY::DirectReader.

◆ iconName()

virtual const char* SEGYDirectSeisTrcTranslator::iconName ( ) const
inlinevirtual

Reimplemented from Translator.

◆ implRemove()

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

Reimplemented from Translator.

◆ initRead_()

virtual bool SEGYDirectSeisTrcTranslator::initRead_ ( )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ initVars()

void SEGYDirectSeisTrcTranslator::initVars ( bool  for_read = true)
protected

◆ initWrite_()

virtual bool SEGYDirectSeisTrcTranslator::initWrite_ ( const SeisTrc )
protectedvirtual

Reimplemented from SeisTrcTranslator.

◆ isUserSelectable()

virtual bool SEGYDirectSeisTrcTranslator::isUserSelectable ( bool  fr) const
inlinevirtual

Reimplemented from SeisTrcTranslator.

◆ positionTranslator()

bool SEGYDirectSeisTrcTranslator::positionTranslator ( )
protected

◆ read()

virtual bool SEGYDirectSeisTrcTranslator::read ( SeisTrc )
virtual

Reimplemented from SeisTrcTranslator.

◆ readData()

virtual bool SEGYDirectSeisTrcTranslator::readData ( TraceData externalbuf)
privatevirtual

Reimplemented from SeisTrcTranslator.

◆ readInfo()

virtual bool SEGYDirectSeisTrcTranslator::readInfo ( SeisTrcInfo )
virtual

Reimplemented from SeisTrcTranslator.

◆ setCompDataFromInput()

void SEGYDirectSeisTrcTranslator::setCompDataFromInput ( )
private

◆ skip()

virtual bool SEGYDirectSeisTrcTranslator::skip ( int  )
virtual

Reimplemented from SeisTrcTranslator.

◆ supportsGoTo()

virtual bool SEGYDirectSeisTrcTranslator::supportsGoTo ( ) const
inlinevirtual

Reimplemented from SeisTrcTranslator.

◆ toNextTrace()

bool SEGYDirectSeisTrcTranslator::toNextTrace ( )
protected

◆ toSupported()

virtual void SEGYDirectSeisTrcTranslator::toSupported ( DataCharacteristics ) const
virtual

◆ usePar()

virtual void SEGYDirectSeisTrcTranslator::usePar ( const IOPar )
virtual

Reimplemented from SeisTrcTranslator.

◆ write()

virtual bool SEGYDirectSeisTrcTranslator::write ( const SeisTrc )
virtual

Reimplemented from SeisTrcTranslator.

Member Data Documentation

◆ def_

SEGY::DirectDef* SEGYDirectSeisTrcTranslator::def_
protected

◆ fds_

SEGY::FileDataSet* SEGYDirectSeisTrcTranslator::fds_
protected

◆ forread_

bool SEGYDirectSeisTrcTranslator::forread_
protected

◆ headerread_

bool SEGYDirectSeisTrcTranslator::headerread_
protected

◆ ild_

int SEGYDirectSeisTrcTranslator::ild_
protected

◆ iseg_

int SEGYDirectSeisTrcTranslator::iseg_
protected

◆ itrc_

int SEGYDirectSeisTrcTranslator::itrc_
protected

◆ segydeffilename_

BufferString SEGYDirectSeisTrcTranslator::segydeffilename_
protected

◆ segyfilename_

BufferString SEGYDirectSeisTrcTranslator::segyfilename_
protected

◆ segypars_

IOPar SEGYDirectSeisTrcTranslator::segypars_
protected

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