OpendTect  6.3
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Strat::LeavedUnitRef Class Reference

UnitRef for units containing Leaf units only. More...

Inheritance diagram for Strat::LeavedUnitRef:
[legend]

Public Types

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

Public Member Functions

 LeavedUnitRef (NodeUnitRef *up, const char *c, const char *d=0)
 
virtual Type type () const
 
virtual bool hasLeaves () const
 
LevelID levelID () const
 
void setLevelID (LevelID)
 
virtual int nrLeaves () const
 
virtual const LeafUnitReffirstLeaf () const
 
LeafUnitRefgetLeaf (int)
 
const LeafUnitRefgetLeaf (int i) const
 
LeafUnitRefgetLeaf (const Lithology &)
 
const LeafUnitRefgetLeaf (const Lithology &l) 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 level () const
 
virtual bool add (UnitRef *, bool rev=false)
 
virtual bool insert (UnitRef *, int posidx)
 
virtual UnitRefreplace (int uridx, UnitRef *)
 
void moveChild (int, bool up)
 
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...
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 

Protected Member Functions

virtual void fill (BufferString &bs) const
 
virtual void use (const char *s)
 
- 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 doFill (BufferString &, IntegerID< int >) const
 
void doUse (const char *, int *)
 
void doUse (const char *, IntegerID< int > &)
 
void notifChange (bool isrem=false)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

LevelID levelid_
 
- 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_
 

Additional Inherited Members

- Static Public Member Functions inherited from Strat::UnitRef
static const char * sKeyPropsFor ()
 
static const char * sKeyTreeProps ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from Strat::UnitRef
const char * d =0)
 
Notifier< UnitRefchanged
 
Notifier< UnitReftoBeDeleted
 

Detailed Description

UnitRef for units containing Leaf units only.

Member Typedef Documentation

typedef Level::ID Strat::LeavedUnitRef::LevelID

Constructor & Destructor Documentation

Strat::LeavedUnitRef::LeavedUnitRef ( NodeUnitRef up,
const char *  c,
const char *  d = 0 
)
inline

Member Function Documentation

virtual void Strat::LeavedUnitRef::fill ( BufferString bs) const
inlineprotectedvirtual

Reimplemented from Strat::UnitRef.

virtual const LeafUnitRef* Strat::LeavedUnitRef::firstLeaf ( ) const
inlinevirtual

Implements Strat::UnitRef.

LeafUnitRef* Strat::LeavedUnitRef::getLeaf ( int  )
const LeafUnitRef* Strat::LeavedUnitRef::getLeaf ( int  i) const
inline
LeafUnitRef* Strat::LeavedUnitRef::getLeaf ( const Lithology )
const LeafUnitRef* Strat::LeavedUnitRef::getLeaf ( const Lithology l) const
inline
virtual bool Strat::LeavedUnitRef::hasLeaves ( ) const
inlinevirtual

Implements Strat::NodeUnitRef.

LevelID Strat::LeavedUnitRef::levelID ( ) const
inline
virtual int Strat::LeavedUnitRef::nrLeaves ( ) const
inlinevirtual

Reimplemented from Strat::NodeUnitRef.

void Strat::LeavedUnitRef::setLevelID ( LevelID  )
virtual Type Strat::LeavedUnitRef::type ( ) const
inlinevirtual

Implements Strat::UnitRef.

virtual void Strat::LeavedUnitRef::use ( const char *  s)
inlineprotectedvirtual

Reimplemented from Strat::UnitRef.

Member Data Documentation

LevelID Strat::LeavedUnitRef::levelid_
protected

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