OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Strat::LevelSet Class Reference

Set of Stratigraphic levels. More...

Inheritance diagram for Strat::LevelSet:
[legend]

Public Types

typedef int ChangeType
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 LevelSet (const LevelSet &)
 
 LevelSet (int idstartidsat=0)
 
virtual ~LevelSet ()
 
void add (const BufferStringSet &, const TypeSet< OD::Color > &)
 
LevelID add (const char *, const OD::Color &)
 
LevelID add (const Level &lvl)
 
OD::Color colorOf (LevelID) const
 
Level first () const
 
Level get (LevelID) const
 
Level getByIdx (int) const
 
Level getByName (const char *) const
 
LevelID getIDByIdx (int) const
 
LevelID getIDByName (const char *) const
 
void getNames (BufferStringSet &) const
 
int indexOf (const char *) const
 
int indexOf (LevelID) const
 
bool isEmpty () const
 
bool isPresent (const char *) const
 
bool isPresent (LevelID) const
 
BufferString nameOf (LevelID) const
 
LevelSetoperator= (const LevelSet &)
 
bool operator== (const LevelSet &) const
 
IOPar parsOf (LevelID) const
 
bool readFrom (const char *)
 
void remove (LevelID)
 
LevelID set (const Level &)
 copy stuff, but new ID/name More...
 
void setEmpty ()
 
int size () const
 
bool write () const
 
bool writeTo (const char *) const
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) 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
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static LevelSetcreateStd (const char *)
 
static void getStdNames (BufferStringSet &)
 
static LevelSetread (const MultiID &)
 
static bool write (const LevelSet &, const MultiID &)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Public Attributes

CNotifier< LevelSet, ChangeTypechanged
 
CNotifier< LevelSet, LevelIDlevelAdded
 
CNotifier< LevelSet, LevelIDlevelToBeRemoved
 

Protected Member Functions

LevelID doSet (const Level &, bool *isnew=nullptr)
 
void doSetEmpty ()
 
void getFromStream (ascistream &, bool)
 
int gtIdxOf (const char *, LevelID) const
 
Level gtLvl (int) const
 
Repos::Source readOldRepos ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Protected Attributes

Threads::Atomic< int > curlevelid_
 
MultiID dbky_
 
ObjectSet< Levellvls_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class LevelSetMgr
 

Detailed Description

Set of Stratigraphic levels.

Manages not only the units, but also their IDs. The set will not allow adding levels with the same name; the result is that you simply set the existing one to new values.

<>

Member Typedef Documentation

◆ ChangeType

Constructor & Destructor Documentation

◆ LevelSet() [1/2]

Strat::LevelSet::LevelSet ( int  idstartidsat = 0)

◆ LevelSet() [2/2]

Strat::LevelSet::LevelSet ( const LevelSet )

◆ ~LevelSet()

virtual Strat::LevelSet::~LevelSet ( )
virtual

Member Function Documentation

◆ add() [1/3]

void Strat::LevelSet::add ( const BufferStringSet ,
const TypeSet< OD::Color > &   
)

◆ add() [2/3]

LevelID Strat::LevelSet::add ( const char *  ,
const OD::Color  
)

◆ add() [3/3]

LevelID Strat::LevelSet::add ( const Level lvl)
inline

◆ colorOf()

OD::Color Strat::LevelSet::colorOf ( LevelID  ) const

◆ createStd()

static LevelSet* Strat::LevelSet::createStd ( const char *  )
static

◆ doSet()

LevelID Strat::LevelSet::doSet ( const Level ,
bool *  isnew = nullptr 
)
protected

◆ doSetEmpty()

void Strat::LevelSet::doSetEmpty ( )
protected

◆ first()

Level Strat::LevelSet::first ( ) const

◆ get()

Level Strat::LevelSet::get ( LevelID  ) const

◆ getByIdx()

Level Strat::LevelSet::getByIdx ( int  ) const

◆ getByName()

Level Strat::LevelSet::getByName ( const char *  ) const

◆ getFromStream()

void Strat::LevelSet::getFromStream ( ascistream ,
bool   
)
protected

◆ getIDByIdx()

LevelID Strat::LevelSet::getIDByIdx ( int  ) const

◆ getIDByName()

LevelID Strat::LevelSet::getIDByName ( const char *  ) const

◆ getNames()

void Strat::LevelSet::getNames ( BufferStringSet ) const

◆ getStdNames()

static void Strat::LevelSet::getStdNames ( BufferStringSet )
static

◆ gtIdxOf()

int Strat::LevelSet::gtIdxOf ( const char *  ,
LevelID   
) const
protected

◆ gtLvl()

Level Strat::LevelSet::gtLvl ( int  ) const
protected

◆ indexOf() [1/2]

int Strat::LevelSet::indexOf ( const char *  ) const

◆ indexOf() [2/2]

int Strat::LevelSet::indexOf ( LevelID  ) const

◆ isEmpty()

bool Strat::LevelSet::isEmpty ( ) const
inline

◆ isPresent() [1/2]

bool Strat::LevelSet::isPresent ( const char *  ) const

◆ isPresent() [2/2]

bool Strat::LevelSet::isPresent ( LevelID  ) const

◆ nameOf()

BufferString Strat::LevelSet::nameOf ( LevelID  ) const

◆ operator=()

LevelSet& Strat::LevelSet::operator= ( const LevelSet )

◆ operator==()

bool Strat::LevelSet::operator== ( const LevelSet ) const

◆ parsOf()

IOPar Strat::LevelSet::parsOf ( LevelID  ) const

◆ read()

static LevelSet* Strat::LevelSet::read ( const MultiID )
static

◆ readFrom()

bool Strat::LevelSet::readFrom ( const char *  )

◆ readOldRepos()

Repos::Source Strat::LevelSet::readOldRepos ( )
protected

◆ remove()

void Strat::LevelSet::remove ( LevelID  )

◆ set()

LevelID Strat::LevelSet::set ( const Level )

copy stuff, but new ID/name

◆ setEmpty()

void Strat::LevelSet::setEmpty ( )

◆ size()

int Strat::LevelSet::size ( ) const

◆ write() [1/2]

bool Strat::LevelSet::write ( ) const

◆ write() [2/2]

static bool Strat::LevelSet::write ( const LevelSet ,
const MultiID  
)
static

◆ writeTo()

bool Strat::LevelSet::writeTo ( const char *  ) const

Friends And Related Function Documentation

◆ LevelSetMgr

friend class LevelSetMgr
friend

Member Data Documentation

◆ changed

CNotifier<LevelSet,ChangeType> Strat::LevelSet::changed

◆ curlevelid_

Threads::Atomic<int> Strat::LevelSet::curlevelid_
mutableprotected

◆ dbky_

MultiID Strat::LevelSet::dbky_
protected

◆ levelAdded

CNotifier<LevelSet,LevelID> Strat::LevelSet::levelAdded

◆ levelToBeRemoved

CNotifier<LevelSet,LevelID> Strat::LevelSet::levelToBeRemoved

◆ lvls_

ObjectSet<Level> Strat::LevelSet::lvls_
protected

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