OpendTect  6.6
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 Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

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

Protected Attributes

Color color_
 
const ID id_
 
bool porous_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class LithologySet
 

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

◆ ID

typedef int Strat::Lithology::ID

Constructor & Destructor Documentation

◆ Lithology() [1/3]

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

◆ Lithology() [2/3]

Strat::Lithology::Lithology ( const Lithology l)
inline

◆ Lithology() [3/3]

Strat::Lithology::Lithology ( const char *  )

Member Function Documentation

◆ color() [1/2]

Color& Strat::Lithology::color ( )
inline

◆ color() [2/2]

const Color& Strat::Lithology::color ( ) const
inline

◆ fill()

void Strat::Lithology::fill ( BufferString ) const

◆ id()

ID Strat::Lithology::id ( ) const
inline

◆ isUdf() [1/2]

bool Strat::Lithology::isUdf ( ) const
inline

◆ isUdf() [2/2]

static bool Strat::Lithology::isUdf ( ID  id)
inlinestatic

◆ operator=()

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

◆ operator==()

bool Strat::Lithology::operator== ( const Lithology l) const
inline

◆ porous() [1/2]

bool& Strat::Lithology::porous ( )
inline

◆ porous() [2/2]

bool Strat::Lithology::porous ( ) const
inline

◆ undef()

static const Lithology& Strat::Lithology::undef ( )
static

Friends And Related Function Documentation

◆ LithologySet

friend class LithologySet
friend

Member Data Documentation

◆ color_

Color Strat::Lithology::color_
protected

◆ id_

const ID Strat::Lithology::id_
protected

◆ porous_

bool Strat::Lithology::porous_
protected

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