OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static 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 Member Functions

 LevelSet ()
 
 LevelSet (const LevelSet &)
 
 LevelSet (Level::ID startat)
 
virtual ~LevelSet ()
 
void add (const BufferStringSet &, const TypeSet< Color > &)
 
Leveladd (const char *lvlnm, const Color &c)
 
Leveladd (const Level &)
 copy stuff, but new ID/name More...
 
Color color (int idx) const
 
Levelget (const char *nm)
 
const Levelget (const char *nm) const
 
Levelget (Level::ID id)
 
const Levelget (Level::ID id) const
 
const LevelgetLevel (int idx) const
 
void getNames (BufferStringSet &) const
 
int indexOf (const char *nm) const
 
int indexOf (Level::ID id) const
 
Levelinsert (const char *lvlnm, const Color &c, int idx=-1)
 
bool isEmpty () const
 
bool isPresent (const char *nm) const
 
bool isPresent (Level::ID id) const
 
int levelID (int idx) const
 
const ObjectSet< Level > & levels () const
 
bool needStore () const
 
int notifLvlIdx () const
 if < 0 then more than one level have changed More...
 
LevelSetoperator= (const LevelSet &)
 
bool read (Repos::Source)
 
bool readFrom (const char *)
 
Repos::Source readOldRepos ()
 
void remove (Level::ID)
 
Levelset (const char *lvlnm, const Color &c)
 
void setEmpty ()
 
int size () const
 
bool store (Repos::Source) const
 
bool writeTo (const char *) 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
 

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

Notifier< LevelSetlevelAdded
 
Notifier< LevelSetlevelChanged
 
Notifier< LevelSetlevelToBeRemoved
 

Protected Member Functions

void addLvl (Level *)
 
void getLevelsFrom (const LevelSet &)
 
LevelgetNew (const Level *lvl=0) const
 
int gtIdxOf (const char *, Level::ID) const
 
LevelgtLvl (const char *, Level::ID) const
 
void lvlChgCB (CallBacker *cb)
 
void lvlRemCB (CallBacker *cb)
 
void makeMine (Level &)
 
void notif (CallBacker *, bool)
 
void readPars (ascistream &, bool)
 
Levelset (const char *, const Color &, int)
 

Static Protected Member Functions

static bool haveCurSet ()
 

Protected Attributes

bool ischanged_
 
Level::ID lastlevelid_
 
ObjectSet< Levellvls_
 
int notiflvlidx_
 

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.

<>

Constructor & Destructor Documentation

◆ LevelSet() [1/3]

Strat::LevelSet::LevelSet ( )

◆ LevelSet() [2/3]

Strat::LevelSet::LevelSet ( Level::ID  startat)

◆ LevelSet() [3/3]

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< Color > &   
)

◆ add() [2/3]

Level* Strat::LevelSet::add ( const char *  lvlnm,
const Color c 
)
inline

◆ add() [3/3]

Level* Strat::LevelSet::add ( const Level )

copy stuff, but new ID/name

◆ addLvl()

void Strat::LevelSet::addLvl ( Level )
protected

◆ color()

Color Strat::LevelSet::color ( int  idx) const
inline

◆ createStd()

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

◆ get() [1/4]

Level* Strat::LevelSet::get ( const char *  nm)
inline

◆ get() [2/4]

const Level* Strat::LevelSet::get ( const char *  nm) const
inline

◆ get() [3/4]

Level* Strat::LevelSet::get ( Level::ID  id)
inline

◆ get() [4/4]

const Level* Strat::LevelSet::get ( Level::ID  id) const
inline

◆ getLevel()

const Level& Strat::LevelSet::getLevel ( int  idx) const
inline

◆ getLevelsFrom()

void Strat::LevelSet::getLevelsFrom ( const LevelSet )
protected

◆ getNames()

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

◆ getNew()

Level* Strat::LevelSet::getNew ( const Level lvl = 0) const
protected

◆ getStdNames()

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

◆ gtIdxOf()

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

◆ gtLvl()

Level* Strat::LevelSet::gtLvl ( const char *  ,
Level::ID   
) const
protected

◆ haveCurSet()

static bool Strat::LevelSet::haveCurSet ( )
staticprotected

◆ indexOf() [1/2]

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

◆ indexOf() [2/2]

int Strat::LevelSet::indexOf ( Level::ID  id) const
inline

◆ insert()

Level* Strat::LevelSet::insert ( const char *  lvlnm,
const Color c,
int  idx = -1 
)
inline

◆ isEmpty()

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

◆ isPresent() [1/2]

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

◆ isPresent() [2/2]

bool Strat::LevelSet::isPresent ( Level::ID  id) const
inline

◆ levelID()

int Strat::LevelSet::levelID ( int  idx) const
inline

◆ levels()

const ObjectSet<Level>& Strat::LevelSet::levels ( ) const
inline

◆ lvlChgCB()

void Strat::LevelSet::lvlChgCB ( CallBacker cb)
inlineprotected

◆ lvlRemCB()

void Strat::LevelSet::lvlRemCB ( CallBacker cb)
inlineprotected

◆ makeMine()

void Strat::LevelSet::makeMine ( Level )
protected

◆ needStore()

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

◆ notif()

void Strat::LevelSet::notif ( CallBacker ,
bool   
)
protected

◆ notifLvlIdx()

int Strat::LevelSet::notifLvlIdx ( ) const
inline

if < 0 then more than one level have changed

◆ operator=()

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

◆ read() [1/2]

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

◆ read() [2/2]

bool Strat::LevelSet::read ( Repos::Source  )

◆ readFrom()

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

◆ readOldRepos()

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

◆ readPars()

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

◆ remove()

void Strat::LevelSet::remove ( Level::ID  )

◆ set() [1/2]

Level* Strat::LevelSet::set ( const char *  ,
const Color ,
int   
)
protected

◆ set() [2/2]

Level* Strat::LevelSet::set ( const char *  lvlnm,
const Color c 
)
inline

◆ setEmpty()

void Strat::LevelSet::setEmpty ( )
inline

◆ size()

int Strat::LevelSet::size ( ) const
inline

◆ store()

bool Strat::LevelSet::store ( Repos::Source  ) const

◆ write()

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

◆ ischanged_

bool Strat::LevelSet::ischanged_
protected

◆ lastlevelid_

Level::ID Strat::LevelSet::lastlevelid_
mutableprotected

◆ levelAdded

Notifier<LevelSet> Strat::LevelSet::levelAdded

◆ levelChanged

Notifier<LevelSet> Strat::LevelSet::levelChanged

◆ levelToBeRemoved

Notifier<LevelSet> Strat::LevelSet::levelToBeRemoved

◆ lvls_

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

◆ notiflvlidx_

int Strat::LevelSet::notiflvlidx_
mutableprotected

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