OpendTect  7.0
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 Member Functions

 Lithology (const char *)
 
 Lithology (const Lithology &)
 
 Lithology (const LithologyID &, const char *nm, bool por=false)
 
 ~Lithology ()
 
OD::Colorcolor ()
 
const OD::Colorcolor () const
 
void fill (BufferString &) const
 
LithologyID 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 &)
 
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 const Lithologyundef ()
 

Protected Attributes

OD::Color color_
 
const LithologyID id_
 
bool porous_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class LithologySet
 

Additional Inherited Members

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

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.

LithologyID: unsetID() -> id is unset. Should call getFreeID to get a valid ID LithologyID: isValid: Lithology is defined and has a unique ID

<>

Constructor & Destructor Documentation

◆ Lithology() [1/3]

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

◆ Lithology() [2/3]

Strat::Lithology::Lithology ( const Lithology )

◆ ~Lithology()

Strat::Lithology::~Lithology ( )

◆ Lithology() [3/3]

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

Member Function Documentation

◆ color() [1/2]

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

◆ color() [2/2]

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

◆ fill()

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

◆ id()

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

◆ isUdf()

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

◆ 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_

OD::Color Strat::Lithology::color_
protected

◆ id_

const LithologyID 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-2024