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

Stratigraphic level. More...

Inheritance diagram for Strat::Level:
[legend]

Public Types

typedef int ID
 

Public Member Functions

bool operator== (const Level &) const
 
bool isDifferentFrom (const Level &) const
 
ID id () const
 
Color color () const
 
const IOParpars () const
 
void setName (const char *)
 
void setColor (Color)
 
void setPars (const IOPar &)
 
virtual ~Level ()
 
const char * checkName (const char *) 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
 
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 Levelundef ()
 

Public Attributes

Notifier< Levelchanged
 
Notifier< LeveltoBeRemoved
 

Protected Member Functions

 Level (const char *nm, const LevelSet *)
 
 Level (const Level &)
 
void fillPar (IOPar &) const
 
void usePar (const IOPar &)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

ID id_
 
Color color_
 
IOParpars_
 
const LevelSetlvlset_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Friends

class LevelSet
 

Detailed Description

Stratigraphic level.

To store extra details, use the pars_.

The ID cannot be assigned, and it is unique. It is managed by the LevelSet. Therefore: operator ==() : checks only ID isDifferentFrom() : checks all but ID

Member Typedef Documentation

typedef int Strat::Level::ID

Constructor & Destructor Documentation

Strat::Level::Level ( const char *  nm,
const LevelSet  
)
protected
Strat::Level::Level ( const Level )
protected
virtual Strat::Level::~Level ( )
virtual

Member Function Documentation

const char* Strat::Level::checkName ( const char *  ) const

returns null if object can be renamed to it, otherwise an error message

Color Strat::Level::color ( ) const
inline
void Strat::Level::fillPar ( IOPar ) const
protected
ID Strat::Level::id ( ) const
inline
bool Strat::Level::isDifferentFrom ( const Level ) const
bool Strat::Level::operator== ( const Level ) const
const IOPar& Strat::Level::pars ( ) const
inline
void Strat::Level::setColor ( Color  )
void Strat::Level::setName ( const char *  )
virtual

Reimplemented from NamedObject.

void Strat::Level::setPars ( const IOPar )
static const Level& Strat::Level::undef ( )
static
void Strat::Level::usePar ( const IOPar )
protected

Friends And Related Function Documentation

friend class LevelSet
friend

Member Data Documentation

Notifier<Level> Strat::Level::changed
Color Strat::Level::color_
protected
ID Strat::Level::id_
protected
const LevelSet* Strat::Level::lvlset_
protected
IOPar& Strat::Level::pars_
protected
Notifier<Level> Strat::Level::toBeRemoved

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