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

a name and an ID. More...

Inheritance diagram for Strat::Lithology:
[legend]

Public Types

typedef int ID
 

Public Member Functions

 Lithology (ID id, const char *nm, bool por=false)
 
 Lithology (const Lithology &l)
 
Lithologyoperator= (const Lithology &)
 
bool operator== (const Lithology &l) const
 
bool isUdf () const
 
ID id () const
 
bool & porous ()
 
bool porous () const
 
Colorcolor ()
 
const Colorcolor () const
 
 Lithology (const char *)
 
void fill (BufferString &) 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 bool isUdf (ID id)
 
static const Lithologyundef ()
 

Protected Attributes

const ID id_
 
bool porous_
 
Color color_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Friends

class LithologySet
 

Additional Inherited Members

- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Detailed Description

a name and an ID.

The reason we don't manage the ID is that user may have their own IDs. For example, it may correspond with a lithology log value.

ID: -2 -> id is unset. Should call getFreeID to get a valid ID ID: -1 -> Lithology is undefined ID: >=0 Lithology is defined and has a unique ID

Member Typedef Documentation

typedef int Strat::Lithology::ID

Constructor & Destructor Documentation

Strat::Lithology::Lithology ( ID  id,
const char *  nm,
bool  por = false 
)
Strat::Lithology::Lithology ( const Lithology l)
inline
Strat::Lithology::Lithology ( const char *  )

Member Function Documentation

Color& Strat::Lithology::color ( )
inline
const Color& Strat::Lithology::color ( ) const
inline
void Strat::Lithology::fill ( BufferString ) const
ID Strat::Lithology::id ( ) const
inline
bool Strat::Lithology::isUdf ( ) const
inline
static bool Strat::Lithology::isUdf ( ID  id)
inlinestatic
Lithology& Strat::Lithology::operator= ( const Lithology )
bool Strat::Lithology::operator== ( const Lithology l) const
inline
bool& Strat::Lithology::porous ( )
inline
bool Strat::Lithology::porous ( ) const
inline
static const Lithology& Strat::Lithology::undef ( )
static

Friends And Related Function Documentation

friend class LithologySet
friend

Member Data Documentation

Color Strat::Lithology::color_
protected
const ID Strat::Lithology::id_
protected
bool Strat::Lithology::porous_
protected

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