OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
EM::dgbSurfaceReader Class Reference

Surface Reader. More...

Inheritance diagram for EM::dgbSurfaceReader:
[legend]

Public Member Functions

 dgbSurfaceReader (const IOObj &ioobj, const char *filetype)
 
 dgbSurfaceReader (const char *fullexp, const char *name, const char *filetype)
 
 ~dgbSurfaceReader ()
 
void setOutput (EM::Surface &)
 
void setOutput (Array3D< float > &)
 
int version () const
 
bool isOK () const
 
void setGeometry ()
 
int nrSections () const
 
EM::SectionID sectionID (int) const
 
BufferString sectionName (int) const
 
void selSections (const TypeSet< EM::SectionID > &)
 
const char * dbInfo () const
 
int nrAuxVals () const
 
const char * auxDataName (int) const
 
float auxDataShift (int) const
 
void selAuxData (const TypeSet< int > &)
 
const StepInterval< int > & rowInterval () const
 
const StepInterval< int > & colInterval () const
 
const Interval< float > & zInterval () const
 
void setRowInterval (const StepInterval< int > &)
 
void setColInterval (const StepInterval< int > &)
 
void setReadOnlyZ (bool yn=true)
 
void setLineNames (const BufferStringSet &)
 
void setLinesTrcRngs (const TypeSet< StepInterval< int > > &)
 
int nrLines () const
 
BufferString lineName (int) const
 
BufferString lineSet (int) const
 
Pos::GeomID lineGeomID (int) const
 
StepInterval< int > lineTrcRanges (int idx) const
 
int stratLevelID () const
 
const IOParpars () const
 
int getParsOffset () const
 
virtual od_int64 nrDone () const
 
virtual uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
virtual od_int64 totalNr () const
 
virtual int nextStep ()
 
virtual uiString uiMessage () const
 will be message() again in 7.x More...
 
- Public Member Functions inherited from ExecutorGroup
 ExecutorGroup (const char *nm, bool parallel=false, bool ownsexecs=true)
 
virtual ~ExecutorGroup ()
 
virtual void add (Executor *)
 
int nrExecutors ()
 
ExecutorgetExecutor (int idx)
 
void setNrDoneText (const uiString &txt)
 If set, will use this and the counted nrdone. More...
 
- Public Member Functions inherited from Executor
 Executor (const char *nm)
 
virtual ~Executor ()
 
virtual int doStep ()
 
bool go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
bool go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
virtual bool execute ()
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=0)
 
virtual ~SequentialTask ()
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
bool workControlEnabled () const
 
virtual void controlWork (Control)
 
virtual Control getState () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static const char * sKeyNrSections ()
 
static const char * sKeyNrSectionsV1 ()
 
static BufferString sSectionIDKey (int idx)
 
static BufferString sSectionNameKey (int idx)
 
static BufferString sColStepKey (int rowidx)
 
static const char * sKeyDepthOnly ()
 
static const char * sKeyRowRange ()
 
static const char * sKeyColRange ()
 
static const char * sKeyZRange ()
 
static const char * sKeyInt16DataChar ()
 
static const char * sKeyInt32DataChar ()
 
static const char * sKeyInt64DataChar ()
 
static const char * sKeyFloatDataChar ()
 
static const char * sKeyDBInfo ()
 
static const char * sKeyVersion ()
 
static const char * sKeyLineSets ()
 
static const char * sKeyLineIDs ()
 
static const char * sKeyTraceRange ()
 
static const char * sMsgParseError ()
 
static uiString sMsgReadError ()
 
static const char * sKeyUndefLineSet ()
 
static const char * sKeyUndefLine ()
 
- Static Public Member Functions inherited from SequentialTask
static int ErrorOccurred ()
 
static int Finished ()
 
static int MoreToDo ()
 
static int WarningAvailable ()
 
- Static Public Member Functions inherited from Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 

Protected Member Functions

bool isBinary () const
 
double readDouble (od_istream &) const
 
int readInt16 (od_istream &) const
 
int readInt32 (od_istream &) const
 
od_int64 readInt64 (od_istream &) const
 
int int64Size () const
 
void createAuxDataReader ()
 
bool readParData (od_istream &, const IOPar &, const char *)
 
void mergeExternalPar (const char *)
 
int scanFor2DGeom (TypeSet< StepInterval< int > > &)
 
bool readHeaders (const char *)
 
bool readRowOffsets (od_istream &)
 
RowCol getFileStep () const
 
int prepareNewSection (od_istream &)
 
bool shouldSkipCurrentRow () const
 
int skipRow (od_istream &)
 
bool prepareRowRead (od_istream &)
 
int currentRow () const
 
void goToNextRow ()
 
void createSection (const SectionID &)
 
bool getIndices (const RowCol &, int &, int &) const
 
bool readVersion2Row (od_istream &, int, int)
 
bool readVersion3Row (od_istream &, int, int, int, int noofcoltoskip=0)
 
bool readVersion1Row (od_istream &, int, int)
 
RowCol convertRowCol (int, int) const
 
bool parseVersion1 (const IOPar &)
 
void init (const char *fulluserexp, const char *name)
 
- Protected Member Functions inherited from ExecutorGroup
virtual bool goToNextExecutor ()
 
void findNextSumStop ()
 
- Protected Member Functions inherited from Executor
virtual bool goImpl (od_ostream *, bool, bool, int)
 
- Protected Member Functions inherited from Task
 Task (const char *nm=0)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * sKeyTransformX ()
 
static const char * sKeyTransformY ()
 

Protected Attributes

StreamConnconn_
 
BufferStringSet sectionnames_
 
BufferStringSet linenames_
 
BufferStringSet linesets_
 
TypeSet< Pos::GeomIDgeomids_
 
TypeSet< EM::SectionIDsectionids_
 
TypeSet< EM::SectionIDsectionsel_
 
bool fullyread_
 
BufferStringSet auxdatanames_
 
TypeSet< float > auxdatashifts_
 
ObjectSet< EM::dgbSurfDataReaderauxdataexecs_
 
TypeSet< int > auxdatasel_
 
const IOParpar_
 
uiString msg_
 
bool error_
 
int nrdone_
 
bool isinited_
 
bool setsurfacepar_
 
int sectionsread_
 
int sectionindex_
 
int oldsectionindex_
 
int firstrow_
 
int nrrows_
 
int rowindex_
 
DataInterpreter< int > * int32interpreter_
 
DataInterpreter< double > * floatinterpreter_
 
EM::Surfacesurface_
 
Array3D< float > * cube_
 
Array2D< float > * arr_
 
StepInterval< int > rowrange_
 
StepInterval< int > colrange_
 
Interval< float > zrange_
 
StepInterval< int > * readrowrange_
 
StepInterval< int > * readcolrange_
 
bool readonlyz_
 
BufferString dbinfo_
 
int version_
 
DataInterpreter< int > * int16interpreter_
 
DataInterpreter< od_int64 > * int64interpreter_
 
TypeSet< od_int64rowoffsets_
 
TypeSet< od_int64sectionoffsets_
 
int parsoffset_
 
double conv11
 
double conv12
 
double conv13
 
double conv21
 
double conv22
 
double conv23
 
const BufferStringSetreadlinenames_
 
const TypeSet< StepInterval< int > > * linestrcrgs_
 
- Protected Attributes inherited from ExecutorGroup
int sumstart_
 
int sumstop_
 
const bool parallel_
 
int currentexec_
 
uiString nrdonetext_
 
ObjectSet< Executor > & executors_
 
TypeSet< int > executorres_
 
bool ownsexecs_
 
- Protected Attributes inherited from SequentialTask
ProgressMeterprogressmeter_
 
int lastupdate_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Static Protected Attributes

static const char * linenamesstr_
 

Private Member Functions

 mODTextTranslationClass (dgbSurfaceReader)
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 
- Public Attributes inherited from Executor
Notifier< Executorprestep
 
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 

Detailed Description

Surface Reader.

  1. Construct (no changes are made to the surface in mem)
  2. Select what you want to read
  3. Do NextStep

Constructor & Destructor Documentation

EM::dgbSurfaceReader::dgbSurfaceReader ( const IOObj ioobj,
const char *  filetype 
)
EM::dgbSurfaceReader::dgbSurfaceReader ( const char *  fullexp,
const char *  name,
const char *  filetype 
)
EM::dgbSurfaceReader::~dgbSurfaceReader ( )

Member Function Documentation

const char* EM::dgbSurfaceReader::auxDataName ( int  ) const
float EM::dgbSurfaceReader::auxDataShift ( int  ) const
const StepInterval<int>& EM::dgbSurfaceReader::colInterval ( ) const
RowCol EM::dgbSurfaceReader::convertRowCol ( int  ,
int   
) const
protected
void EM::dgbSurfaceReader::createAuxDataReader ( )
protected
void EM::dgbSurfaceReader::createSection ( const SectionID )
protected
int EM::dgbSurfaceReader::currentRow ( ) const
protected
const char* EM::dgbSurfaceReader::dbInfo ( ) const
RowCol EM::dgbSurfaceReader::getFileStep ( ) const
protected
bool EM::dgbSurfaceReader::getIndices ( const RowCol ,
int &  ,
int &   
) const
protected
int EM::dgbSurfaceReader::getParsOffset ( ) const
void EM::dgbSurfaceReader::goToNextRow ( )
protected
void EM::dgbSurfaceReader::init ( const char *  fulluserexp,
const char *  name 
)
protected
int EM::dgbSurfaceReader::int64Size ( ) const
protected
bool EM::dgbSurfaceReader::isBinary ( ) const
protected
bool EM::dgbSurfaceReader::isOK ( ) const
Pos::GeomID EM::dgbSurfaceReader::lineGeomID ( int  ) const
BufferString EM::dgbSurfaceReader::lineName ( int  ) const
BufferString EM::dgbSurfaceReader::lineSet ( int  ) const
StepInterval<int> EM::dgbSurfaceReader::lineTrcRanges ( int  idx) const
void EM::dgbSurfaceReader::mergeExternalPar ( const char *  )
protected
EM::dgbSurfaceReader::mODTextTranslationClass ( dgbSurfaceReader  )
private
virtual int EM::dgbSurfaceReader::nextStep ( )
virtual
Return values
MoreToDo()Not finished. Call me again.
Finished()Nothing more to do.
ErrorOccurred()Something went wrong.
Note
if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().

Reimplemented from ExecutorGroup.

int EM::dgbSurfaceReader::nrAuxVals ( ) const
virtual od_int64 EM::dgbSurfaceReader::nrDone ( ) const
virtual
Note
nrDone is only used for displaying progress and will be compared to totalNr to show user how large part of the task that is finished.

Reimplemented from ExecutorGroup.

int EM::dgbSurfaceReader::nrLines ( ) const
int EM::dgbSurfaceReader::nrSections ( ) const
const IOPar* EM::dgbSurfaceReader::pars ( ) const
bool EM::dgbSurfaceReader::parseVersion1 ( const IOPar )
protected
int EM::dgbSurfaceReader::prepareNewSection ( od_istream )
protected
bool EM::dgbSurfaceReader::prepareRowRead ( od_istream )
protected
double EM::dgbSurfaceReader::readDouble ( od_istream ) const
protected
bool EM::dgbSurfaceReader::readHeaders ( const char *  )
protected
int EM::dgbSurfaceReader::readInt16 ( od_istream ) const
protected
int EM::dgbSurfaceReader::readInt32 ( od_istream ) const
protected
od_int64 EM::dgbSurfaceReader::readInt64 ( od_istream ) const
protected
bool EM::dgbSurfaceReader::readParData ( od_istream ,
const IOPar ,
const char *   
)
protected
bool EM::dgbSurfaceReader::readRowOffsets ( od_istream )
protected
bool EM::dgbSurfaceReader::readVersion1Row ( od_istream ,
int  ,
int   
)
protected
bool EM::dgbSurfaceReader::readVersion2Row ( od_istream ,
int  ,
int   
)
protected
bool EM::dgbSurfaceReader::readVersion3Row ( od_istream ,
int  ,
int  ,
int  ,
int  noofcoltoskip = 0 
)
protected
const StepInterval<int>& EM::dgbSurfaceReader::rowInterval ( ) const
int EM::dgbSurfaceReader::scanFor2DGeom ( TypeSet< StepInterval< int > > &  )
protected
static BufferString EM::dgbSurfaceReader::sColStepKey ( int  rowidx)
static
EM::SectionID EM::dgbSurfaceReader::sectionID ( int  ) const
BufferString EM::dgbSurfaceReader::sectionName ( int  ) const
void EM::dgbSurfaceReader::selAuxData ( const TypeSet< int > &  )

The specified data will be loaded. If this function is not called, all avaliable auxdata will be loaded.

void EM::dgbSurfaceReader::selSections ( const TypeSet< EM::SectionID > &  )

The given sectionIDs will be loaded. If this function is not called, all avaliable sections will be loaded.

void EM::dgbSurfaceReader::setColInterval ( const StepInterval< int > &  )
void EM::dgbSurfaceReader::setGeometry ( )
void EM::dgbSurfaceReader::setLineNames ( const BufferStringSet )
void EM::dgbSurfaceReader::setLinesTrcRngs ( const TypeSet< StepInterval< int > > &  )
void EM::dgbSurfaceReader::setOutput ( EM::Surface )
void EM::dgbSurfaceReader::setOutput ( Array3D< float > &  )
Note
only z-values will be put in array
sizes of 1st and second dim must fit row/col selection.
size in third dim must fit number of sections given by selSections.
void EM::dgbSurfaceReader::setReadOnlyZ ( bool  yn = true)
void EM::dgbSurfaceReader::setRowInterval ( const StepInterval< int > &  )
bool EM::dgbSurfaceReader::shouldSkipCurrentRow ( ) const
protected
static const char* EM::dgbSurfaceReader::sKeyColRange ( )
static
static const char* EM::dgbSurfaceReader::sKeyDBInfo ( )
static
static const char* EM::dgbSurfaceReader::sKeyDepthOnly ( )
static
static const char* EM::dgbSurfaceReader::sKeyFloatDataChar ( )
static
static const char* EM::dgbSurfaceReader::sKeyInt16DataChar ( )
static
static const char* EM::dgbSurfaceReader::sKeyInt32DataChar ( )
static
static const char* EM::dgbSurfaceReader::sKeyInt64DataChar ( )
static
static const char* EM::dgbSurfaceReader::sKeyLineIDs ( )
static
static const char* EM::dgbSurfaceReader::sKeyLineSets ( )
static
static const char* EM::dgbSurfaceReader::sKeyNrSections ( )
static
static const char* EM::dgbSurfaceReader::sKeyNrSectionsV1 ( )
static
static const char* EM::dgbSurfaceReader::sKeyRowRange ( )
static
static const char* EM::dgbSurfaceReader::sKeyTraceRange ( )
static
static const char* EM::dgbSurfaceReader::sKeyTransformX ( )
staticprotected
static const char* EM::dgbSurfaceReader::sKeyTransformY ( )
staticprotected
static const char* EM::dgbSurfaceReader::sKeyUndefLine ( )
static
static const char* EM::dgbSurfaceReader::sKeyUndefLineSet ( )
static
static const char* EM::dgbSurfaceReader::sKeyVersion ( )
static
static const char* EM::dgbSurfaceReader::sKeyZRange ( )
static
int EM::dgbSurfaceReader::skipRow ( od_istream )
protected
static const char* EM::dgbSurfaceReader::sMsgParseError ( )
static
static uiString EM::dgbSurfaceReader::sMsgReadError ( )
static
static BufferString EM::dgbSurfaceReader::sSectionIDKey ( int  idx)
static
static BufferString EM::dgbSurfaceReader::sSectionNameKey ( int  idx)
static
int EM::dgbSurfaceReader::stratLevelID ( ) const
virtual od_int64 EM::dgbSurfaceReader::totalNr ( ) const
virtual

Reimplemented from ExecutorGroup.

virtual uiString EM::dgbSurfaceReader::uiMessage ( ) const
virtual

will be message() again in 7.x

Note
totalNr is only used for displaying progress.

Reimplemented from ExecutorGroup.

virtual uiString EM::dgbSurfaceReader::uiNrDoneText ( ) const
virtual

will be nrDoneText() in 7.x

Reimplemented from ExecutorGroup.

int EM::dgbSurfaceReader::version ( ) const
inline
const Interval<float>& EM::dgbSurfaceReader::zInterval ( ) const

Member Data Documentation

Array2D<float>* EM::dgbSurfaceReader::arr_
protected
ObjectSet<EM::dgbSurfDataReader> EM::dgbSurfaceReader::auxdataexecs_
protected
BufferStringSet EM::dgbSurfaceReader::auxdatanames_
protected
TypeSet<int> EM::dgbSurfaceReader::auxdatasel_
protected
TypeSet<float> EM::dgbSurfaceReader::auxdatashifts_
protected
StepInterval<int> EM::dgbSurfaceReader::colrange_
protected
StreamConn* EM::dgbSurfaceReader::conn_
protected
double EM::dgbSurfaceReader::conv11
protected
double EM::dgbSurfaceReader::conv12
protected
double EM::dgbSurfaceReader::conv13
protected
double EM::dgbSurfaceReader::conv21
protected
double EM::dgbSurfaceReader::conv22
protected
double EM::dgbSurfaceReader::conv23
protected
Array3D<float>* EM::dgbSurfaceReader::cube_
protected
BufferString EM::dgbSurfaceReader::dbinfo_
protected
bool EM::dgbSurfaceReader::error_
protected
int EM::dgbSurfaceReader::firstrow_
protected
DataInterpreter<double>* EM::dgbSurfaceReader::floatinterpreter_
protected
bool EM::dgbSurfaceReader::fullyread_
protected
TypeSet<Pos::GeomID> EM::dgbSurfaceReader::geomids_
protected
DataInterpreter<int>* EM::dgbSurfaceReader::int16interpreter_
protected
DataInterpreter<int>* EM::dgbSurfaceReader::int32interpreter_
protected
DataInterpreter<od_int64>* EM::dgbSurfaceReader::int64interpreter_
protected
bool EM::dgbSurfaceReader::isinited_
protected
BufferStringSet EM::dgbSurfaceReader::linenames_
protected
const char* EM::dgbSurfaceReader::linenamesstr_
staticprotected
BufferStringSet EM::dgbSurfaceReader::linesets_
protected
const TypeSet< StepInterval<int> >* EM::dgbSurfaceReader::linestrcrgs_
protected
uiString EM::dgbSurfaceReader::msg_
protected
int EM::dgbSurfaceReader::nrdone_
protected
int EM::dgbSurfaceReader::nrrows_
protected
int EM::dgbSurfaceReader::oldsectionindex_
protected
const IOPar* EM::dgbSurfaceReader::par_
protected
int EM::dgbSurfaceReader::parsoffset_
protected
StepInterval<int>* EM::dgbSurfaceReader::readcolrange_
protected
const BufferStringSet* EM::dgbSurfaceReader::readlinenames_
protected
bool EM::dgbSurfaceReader::readonlyz_
protected
StepInterval<int>* EM::dgbSurfaceReader::readrowrange_
protected
int EM::dgbSurfaceReader::rowindex_
protected
TypeSet<od_int64> EM::dgbSurfaceReader::rowoffsets_
protected
StepInterval<int> EM::dgbSurfaceReader::rowrange_
protected
TypeSet<EM::SectionID> EM::dgbSurfaceReader::sectionids_
protected
int EM::dgbSurfaceReader::sectionindex_
protected
BufferStringSet EM::dgbSurfaceReader::sectionnames_
protected
TypeSet<od_int64> EM::dgbSurfaceReader::sectionoffsets_
protected
TypeSet<EM::SectionID> EM::dgbSurfaceReader::sectionsel_
protected
int EM::dgbSurfaceReader::sectionsread_
protected
bool EM::dgbSurfaceReader::setsurfacepar_
protected
EM::Surface* EM::dgbSurfaceReader::surface_
protected
int EM::dgbSurfaceReader::version_
protected
Interval<float> EM::dgbSurfaceReader::zrange_
protected

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