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::UnitRef Class Referenceabstract

Reference data for a stratigraphic unit. More...

Inheritance diagram for Strat::UnitRef:
[legend]

Public Types

enum  Type { NodeOnly, Leaved, Leaf }
 

Public Member Functions

 mDeclareEnumUtils (Type) UnitRef(NodeUnitRef *
 
virtual ~UnitRef ()
 
virtual Type type () const =0
 
virtual bool isEmpty () const
 
virtual bool isUndef () const
 
virtual bool hasChildren () const =0
 
bool isLeaf () const
 
bool isLeaved () const
 
CompoundKey fullCode () const
 
CompoundKey parentCode () const
 
virtual const OD::Stringcode () const =0
 
virtual void setCode (const char *)
 
const OD::Stringdescription () const
 
virtual void setDescription (const char *d)
 
Color color () const
 
void setColor (Color)
 
IOParpars ()
 
const IOParpars () const
 
NodeUnitRefupNode (int skip=0)
 
const NodeUnitRefupNode (int skip=0) const
 
void setUpNode (NodeUnitRef *newpar)
 
NodeUnitReftopNode ()
 
const NodeUnitReftopNode () const
 
RefTreerefTree ()
 
const RefTreerefTree () const
 
virtual bool isParentOf (const UnitRef &) const
 
virtual int level () const =0
 
virtual const LeafUnitReffirstLeaf () const =0
 
int treeDepth () const
 
bool isBelow (const UnitRef *) const
 is given ref parent, grandparent, grandgrand... More...
 
bool precedes (const UnitRef &) const
 in terms of iterating through tree More...
 
virtual void fill (BufferString &bs) const
 
virtual void use (const char *s)
 
virtual void getPropsFrom (const IOPar &)
 
virtual void putPropsTo (IOPar &) const
 
- 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 char * sKeyPropsFor ()
 
static const char * sKeyTreeProps ()
 

Public Attributes

const char * d =0)
 
Notifier< UnitRefchanged
 
Notifier< UnitReftoBeDeleted
 

Protected Member Functions

void doFill (BufferString &, int) const
 
void doUse (const char *, int *)
 
void notifChange (bool isrem=false)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

NodeUnitRefupnode_
 
BufferString desc_
 
Color color_
 
IOPar pars_
 

Friends

class NodeUnitRef
 

Detailed Description

Reference data for a stratigraphic unit.

Every stratigraphy is a tree of units. A stratigraphy consists of reference units - every part of the subsurface can be attached to a reference unit.

Member Enumeration Documentation

Enumerator
NodeOnly 
Leaved 
Leaf 

Constructor & Destructor Documentation

virtual Strat::UnitRef::~UnitRef ( )
virtual

Member Function Documentation

virtual const OD::String& Strat::UnitRef::code ( ) const
pure virtual

Implemented in Strat::LeafUnitRef, and Strat::NodeUnitRef.

Color Strat::UnitRef::color ( ) const
inline
const OD::String& Strat::UnitRef::description ( ) const
inline
void Strat::UnitRef::doFill ( BufferString ,
int   
) const
protected
void Strat::UnitRef::doUse ( const char *  ,
int *   
)
protected
virtual void Strat::UnitRef::fill ( BufferString bs) const
inlinevirtual

Reimplemented in Strat::LeafUnitRef, and Strat::LeavedUnitRef.

virtual const LeafUnitRef* Strat::UnitRef::firstLeaf ( ) const
pure virtual
CompoundKey Strat::UnitRef::fullCode ( ) const
virtual void Strat::UnitRef::getPropsFrom ( const IOPar )
virtual

Reimplemented in Strat::LeafUnitRef, and Strat::NodeUnitRef.

virtual bool Strat::UnitRef::hasChildren ( ) const
pure virtual

Implemented in Strat::LeafUnitRef, and Strat::NodeUnitRef.

bool Strat::UnitRef::isBelow ( const UnitRef ) const

is given ref parent, grandparent, grandgrand...

virtual bool Strat::UnitRef::isEmpty ( ) const
inlinevirtual

Reimplemented in Strat::NodeUnitRef.

bool Strat::UnitRef::isLeaf ( ) const
inline
bool Strat::UnitRef::isLeaved ( ) const
inline
virtual bool Strat::UnitRef::isParentOf ( const UnitRef ) const
inlinevirtual

Reimplemented in Strat::NodeUnitRef.

virtual bool Strat::UnitRef::isUndef ( ) const
inlinevirtual

Reimplemented in Strat::LeafUnitRef.

virtual int Strat::UnitRef::level ( ) const
pure virtual
Strat::UnitRef::mDeclareEnumUtils ( Type  )
void Strat::UnitRef::notifChange ( bool  isrem = false)
protected
CompoundKey Strat::UnitRef::parentCode ( ) const
IOPar& Strat::UnitRef::pars ( )
inline
const IOPar& Strat::UnitRef::pars ( ) const
inline
bool Strat::UnitRef::precedes ( const UnitRef ) const

in terms of iterating through tree

virtual void Strat::UnitRef::putPropsTo ( IOPar ) const
virtual

Reimplemented in Strat::NodeUnitRef.

RefTree& Strat::UnitRef::refTree ( )
const RefTree& Strat::UnitRef::refTree ( ) const
virtual void Strat::UnitRef::setCode ( const char *  )
inlinevirtual

Reimplemented in Strat::NodeUnitRef.

void Strat::UnitRef::setColor ( Color  )
virtual void Strat::UnitRef::setDescription ( const char *  d)
inlinevirtual
void Strat::UnitRef::setUpNode ( NodeUnitRef newpar)
inline
static const char* Strat::UnitRef::sKeyPropsFor ( )
inlinestatic
static const char* Strat::UnitRef::sKeyTreeProps ( )
inlinestatic
NodeUnitRef * Strat::UnitRef::topNode ( )
inline
const NodeUnitRef * Strat::UnitRef::topNode ( ) const
inline
int Strat::UnitRef::treeDepth ( ) const
virtual Type Strat::UnitRef::type ( ) const
pure virtual
NodeUnitRef* Strat::UnitRef::upNode ( int  skip = 0)
const NodeUnitRef* Strat::UnitRef::upNode ( int  skip = 0) const
inline
virtual void Strat::UnitRef::use ( const char *  s)
inlinevirtual

Reimplemented in Strat::LeafUnitRef, and Strat::LeavedUnitRef.

Friends And Related Function Documentation

friend class NodeUnitRef
friend

Member Data Documentation

Notifier<UnitRef> Strat::UnitRef::changed
Color Strat::UnitRef::color_
protected
const char* Strat::UnitRef::d =0)
BufferString Strat::UnitRef::desc_
protected
IOPar Strat::UnitRef::pars_
protected
Notifier<UnitRef> Strat::UnitRef::toBeDeleted
NodeUnitRef* Strat::UnitRef::upnode_
protected

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