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

Tree of UnitRef's. More...

Inheritance diagram for Strat::RefTree:
[legend]

Public Member Functions

 RefTree ()
 
 ~RefTree ()
 
Repos::Source source () const
 
LithologySetlithologies ()
 
const LithologySetlithologies () const
 
ContentSetcontents ()
 
const ContentSetcontents () const
 
const UnitRefnotifUnit () const
 if null, assume everything has changed More...
 
const LeafUnitRefundefLeaf () const
 
virtual int level () const
 
void createFromLevelSet (const LevelSet &)
 keep contents and lithologies More...
 
const LeavedUnitRefgetLevelSetUnit (const char *lvlnm) const
 
void addLevelUnit (const Level &)
 
void removeLevelUnit (const Level &)
 
bool read (od_istream &)
 
bool write (od_ostream &) const
 
void reportChange (const UnitRef *, bool isrem=false)
 
void reportAdd (const UnitRef *)
 
bool addLeavedUnit (const char *, const char *)
 
Strat::LeavedUnitRefgetByLevel (int lvlid) const
 
- Public Member Functions inherited from Strat::NodeOnlyUnitRef
 NodeOnlyUnitRef (NodeUnitRef *up, const char *c, const char *d=0)
 
virtual bool hasLeaves () const
 
virtual Type type () const
 
virtual const LeafUnitReffirstLeaf () const
 
- Public Member Functions inherited from Strat::NodeUnitRef
 NodeUnitRef (NodeUnitRef *, const char *, const char *d=0)
 
 ~NodeUnitRef ()
 
void setEmpty ()
 
virtual bool isEmpty () const
 
virtual bool hasChildren () const
 
virtual const OD::Stringcode () const
 
virtual void setCode (const char *c)
 
virtual Interval< float > timeRange () const
 
virtual void setTimeRange (const Interval< float > &)
 
void incTimeRange (const Interval< float > &)
 
int nrRefs () const
 
UnitRefref (int idx)
 
const UnitRefref (int idx) const
 
int indexOf (const UnitRef *ur) const
 
virtual bool isParentOf (const UnitRef &) const
 
UnitReffind (const char *urcode)
 
const UnitReffind (const char *urcode) const
 
virtual int nrLeaves () const
 
virtual bool add (UnitRef *, bool rev=false)
 
virtual bool insert (UnitRef *, int posidx)
 
virtual UnitRefreplace (int uridx, UnitRef *)
 
void swapChildren (int, int)
 
void remove (int uridx)
 
void remove (const UnitRef *ur)
 
void removeAllChildren ()
 
virtual void getPropsFrom (const IOPar &)
 
virtual void putPropsTo (IOPar &) const
 
- Public Member Functions inherited from Strat::UnitRef
 mDeclareEnumUtils (Type) UnitRef(NodeUnitRef *
 
virtual ~UnitRef ()
 
virtual bool isUndef () const
 
bool isLeaf () const
 
bool isLeaved () const
 
CompoundKey fullCode () const
 
CompoundKey parentCode () const
 
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
 
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)
 
- 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 * sKeyNoCode ()
 
static void getStdNames (BufferStringSet &)
 
static RefTreecreateStd (const char *)
 
- Static Public Member Functions inherited from Strat::UnitRef
static const char * sKeyPropsFor ()
 
static const char * sKeyTreeProps ()
 

Public Attributes

Notifier< RefTreeunitAdded
 
Notifier< RefTreeunitChanged
 
Notifier< RefTreeunitToBeDeleted
 
Notifier< RefTreedeleteNotif
 
Repos::Source src_
 
BufferString name_
 
- Public Attributes inherited from Strat::UnitRef
const char * d =0)
 
Notifier< UnitRefchanged
 
Notifier< UnitReftoBeDeleted
 

Protected Member Functions

void initTree ()
 
void setToActualTypes ()
 
void levelToBeRemoved (CallBacker *)
 
- Protected Member Functions inherited from Strat::NodeUnitRef
UnitReffnd (const char *) const
 
void takeChildrenFrom (NodeUnitRef *)
 
void changeTimeRange (float dtime)
 
- Protected Member Functions inherited from Strat::UnitRef
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

LithologySet liths_
 
ContentSet contents_
 
const UnitRefnotifun_
 
LeafUnitRefudfleaf_
 
- Protected Attributes inherited from Strat::NodeUnitRef
ObjectSet< UnitRefrefs_
 
Interval< float > timerg_
 
BufferString code_
 
- Protected Attributes inherited from Strat::UnitRef
NodeUnitRefupnode_
 
BufferString desc_
 
Color color_
 
IOPar pars_
 

Friends

class RefTreeMgr
 

Additional Inherited Members

- Public Types inherited from Strat::UnitRef
enum  Type { NodeOnly, Leaved, Leaf }
 

Detailed Description

Tree of UnitRef's.

Constructor & Destructor Documentation

Strat::RefTree::RefTree ( )
Strat::RefTree::~RefTree ( )

Member Function Documentation

bool Strat::RefTree::addLeavedUnit ( const char *  ,
const char *   
)
void Strat::RefTree::addLevelUnit ( const Level )
ContentSet& Strat::RefTree::contents ( )
inline
const ContentSet& Strat::RefTree::contents ( ) const
inline
void Strat::RefTree::createFromLevelSet ( const LevelSet )

keep contents and lithologies

static RefTree* Strat::RefTree::createStd ( const char *  )
static
Strat::LeavedUnitRef* Strat::RefTree::getByLevel ( int  lvlid) const
const LeavedUnitRef* Strat::RefTree::getLevelSetUnit ( const char *  lvlnm) const
static void Strat::RefTree::getStdNames ( BufferStringSet )
static
void Strat::RefTree::initTree ( )
protected
virtual int Strat::RefTree::level ( ) const
inlinevirtual

Reimplemented from Strat::NodeUnitRef.

void Strat::RefTree::levelToBeRemoved ( CallBacker )
protected
LithologySet& Strat::RefTree::lithologies ( )
inline
const LithologySet& Strat::RefTree::lithologies ( ) const
inline
const UnitRef* Strat::RefTree::notifUnit ( ) const
inline

if null, assume everything has changed

bool Strat::RefTree::read ( od_istream )
void Strat::RefTree::removeLevelUnit ( const Level )
void Strat::RefTree::reportAdd ( const UnitRef )
void Strat::RefTree::reportChange ( const UnitRef ,
bool  isrem = false 
)
void Strat::RefTree::setToActualTypes ( )
protected
static const char* Strat::RefTree::sKeyNoCode ( )
inlinestatic
Repos::Source Strat::RefTree::source ( ) const
inline
const LeafUnitRef& Strat::RefTree::undefLeaf ( ) const
inline
bool Strat::RefTree::write ( od_ostream ) const

Friends And Related Function Documentation

friend class RefTreeMgr
friend

Member Data Documentation

ContentSet Strat::RefTree::contents_
protected
Notifier<RefTree> Strat::RefTree::deleteNotif
LithologySet Strat::RefTree::liths_
protected
BufferString Strat::RefTree::name_
const UnitRef* Strat::RefTree::notifun_
protected
Repos::Source Strat::RefTree::src_
LeafUnitRef& Strat::RefTree::udfleaf_
protected
Notifier<RefTree> Strat::RefTree::unitAdded
Notifier<RefTree> Strat::RefTree::unitChanged
Notifier<RefTree> Strat::RefTree::unitToBeDeleted

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