OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
PosInfo::Survey2D Class Reference

Repository for 2D line geometries. More...

Inheritance diagram for PosInfo::Survey2D:
[legend]

Public Types

typedef Line2DKey::IdxType IdxType
 

Public Member Functions

bool isEmpty () const
 
bool hasLineSet (const char *) const
 
bool hasLine (const char *lnm, const char *lsnm=0) const
 
void getLineSets (BufferStringSet &nms) const
 
void getLines (BufferStringSet &, const char *lsnm=0) const
 
const char * curLineSet () const
 
void setCurLineSet (const char *) const
 
bool getGeometry (Line2DData &) const
 using lineName() More...
 
bool setGeometry (const Line2DData &)
 
void removeLine (const char *)
 
void removeLineSet (const char *)
 
void renameLineSet (const char *, const char *)
 
const char * getLineSet (IdxType lsid) const
 
const char * getLineName (IdxType lineid) const
 
IdxType getLineSetID (const char *) const
 
IdxType getLineID (const char *) const
 
bool hasLineSet (IdxType lsid) const
 
bool hasLine (IdxType lineid, IdxType lsid=-1) const
 
void getLineIDs (TypeSet< IdxType > &, IdxType lsid) const
 
void getLines (BufferStringSet &, IdxType lsid) const
 
IdxType curLineSetID () const
 
void setCurLineSet (IdxType lsid) const
 
bool getGeometry (IdxType lid, Line2DData &) const
 
bool getGeometry (const Line2DKey &, Line2DData &) const
 thread safe More...
 
void renameLine (const char *oldnm, const char *newnm)
 
void removeLine (IdxType lid)
 
void removeLineSet (IdxType lsid)
 
Line2DKey getLine2DKey (const char *lsnm, const char *linenm) const
 
const char * getLSFileNm (const char *lsnm) const
 
const char * getLineFileNm (const char *lsnm, const char *lnm) const
 
bool readDistBetwTrcsStats (const char *linemn, float &max, float &median) const
 
 ~Survey2D ()
 
- 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 void initClass ()
 

Protected Member Functions

IdxType getNewID (IOPar &)
 
void updateMaxID (IdxType, IOPar &)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Private Member Functions

void readIdxFiles ()
 
bool isIdxFileNew (const char *lsnm=0) const
 
BufferString getIdxTimeStamp (const char *lsnm=0) const
 
void writeIdxFile (bool) const
 
void getKeys (const IOPar &, BufferStringSet &) const
 
void getIDs (const IOPar &, TypeSet< IdxType > &) const
 
BufferString getNewStorageName (const char *, const FilePath &, const IOPar &) const
 
int getLineSetIdx (IdxType lsid) const
 
int getLineIdx (IdxType lineid) const
 
 Survey2D ()
 

Static Private Member Functions

static void readIdxFile (const char *, IOPar &)
 

Private Attributes

FilePathbasefp_
 
FilePathlsfp_
 
BufferString lsnm_
 
IOParlsindex_
 
IOParlineindex_
 
BufferString curlstimestr_
 
Threads::Lock lock_
 

Friends

const Survey2DS2DPOS ()
 Your read-access to the 2D line geometry database. More...
 

Detailed Description

Repository for 2D line geometries.

Member Typedef Documentation

Constructor & Destructor Documentation

PosInfo::Survey2D::Survey2D ( )
private
PosInfo::Survey2D::~Survey2D ( )

Member Function Documentation

const char* PosInfo::Survey2D::curLineSet ( ) const
inline
IdxType PosInfo::Survey2D::curLineSetID ( ) const
bool PosInfo::Survey2D::getGeometry ( Line2DData ) const

using lineName()

bool PosInfo::Survey2D::getGeometry ( IdxType  lid,
Line2DData  
) const
bool PosInfo::Survey2D::getGeometry ( const Line2DKey ,
Line2DData  
) const

thread safe

void PosInfo::Survey2D::getIDs ( const IOPar ,
TypeSet< IdxType > &   
) const
private
BufferString PosInfo::Survey2D::getIdxTimeStamp ( const char *  lsnm = 0) const
private
void PosInfo::Survey2D::getKeys ( const IOPar ,
BufferStringSet  
) const
private
Line2DKey PosInfo::Survey2D::getLine2DKey ( const char *  lsnm,
const char *  linenm 
) const
const char* PosInfo::Survey2D::getLineFileNm ( const char *  lsnm,
const char *  lnm 
) const
IdxType PosInfo::Survey2D::getLineID ( const char *  ) const
void PosInfo::Survey2D::getLineIDs ( TypeSet< IdxType > &  ,
IdxType  lsid 
) const
int PosInfo::Survey2D::getLineIdx ( IdxType  lineid) const
private
const char* PosInfo::Survey2D::getLineName ( IdxType  lineid) const
void PosInfo::Survey2D::getLines ( BufferStringSet ,
const char *  lsnm = 0 
) const
void PosInfo::Survey2D::getLines ( BufferStringSet ,
IdxType  lsid 
) const
const char* PosInfo::Survey2D::getLineSet ( IdxType  lsid) const
IdxType PosInfo::Survey2D::getLineSetID ( const char *  ) const
int PosInfo::Survey2D::getLineSetIdx ( IdxType  lsid) const
private
void PosInfo::Survey2D::getLineSets ( BufferStringSet nms) const
inline
const char* PosInfo::Survey2D::getLSFileNm ( const char *  lsnm) const
IdxType PosInfo::Survey2D::getNewID ( IOPar )
protected
BufferString PosInfo::Survey2D::getNewStorageName ( const char *  ,
const FilePath ,
const IOPar  
) const
private
bool PosInfo::Survey2D::hasLine ( const char *  lnm,
const char *  lsnm = 0 
) const
bool PosInfo::Survey2D::hasLine ( IdxType  lineid,
IdxType  lsid = -1 
) const
bool PosInfo::Survey2D::hasLineSet ( const char *  ) const
bool PosInfo::Survey2D::hasLineSet ( IdxType  lsid) const
static void PosInfo::Survey2D::initClass ( )
static
bool PosInfo::Survey2D::isEmpty ( ) const
inline
bool PosInfo::Survey2D::isIdxFileNew ( const char *  lsnm = 0) const
private
bool PosInfo::Survey2D::readDistBetwTrcsStats ( const char *  linemn,
float &  max,
float &  median 
) const
static void PosInfo::Survey2D::readIdxFile ( const char *  ,
IOPar  
)
staticprivate
void PosInfo::Survey2D::readIdxFiles ( )
private
void PosInfo::Survey2D::removeLine ( const char *  )
void PosInfo::Survey2D::removeLine ( IdxType  lid)
void PosInfo::Survey2D::removeLineSet ( const char *  )
void PosInfo::Survey2D::removeLineSet ( IdxType  lsid)
void PosInfo::Survey2D::renameLine ( const char *  oldnm,
const char *  newnm 
)
void PosInfo::Survey2D::renameLineSet ( const char *  ,
const char *   
)
void PosInfo::Survey2D::setCurLineSet ( const char *  ) const
void PosInfo::Survey2D::setCurLineSet ( IdxType  lsid) const
bool PosInfo::Survey2D::setGeometry ( const Line2DData )
void PosInfo::Survey2D::updateMaxID ( IdxType  ,
IOPar  
)
protected
void PosInfo::Survey2D::writeIdxFile ( bool  ) const
private

Friends And Related Function Documentation

const Survey2D& S2DPOS ( )
friend

Your read-access to the 2D line geometry database.

Member Data Documentation

FilePath& PosInfo::Survey2D::basefp_
private
BufferString PosInfo::Survey2D::curlstimestr_
mutableprivate
IOPar& PosInfo::Survey2D::lineindex_
private
Threads::Lock PosInfo::Survey2D::lock_
mutableprivate
FilePath& PosInfo::Survey2D::lsfp_
private
IOPar& PosInfo::Survey2D::lsindex_
private
BufferString PosInfo::Survey2D::lsnm_
private

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