OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Strat::NodeUnitRef Class Referenceabstract

UnitRef for units containing other units only. More...

Inheritance diagram for Strat::NodeUnitRef:
[legend]

Public Member Functions

 NodeUnitRef (NodeUnitRef *, const char *, const char *d=0)
 
 ~NodeUnitRef ()
 
void setEmpty ()
 
virtual bool isEmpty () const
 
virtual bool hasChildren () const
 
virtual bool hasLeaves () const =0
 
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 int level () 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 Type type () const =0
 
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
 
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)
 
- 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...
 

Protected Member Functions

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

ObjectSet< UnitRefrefs_
 
Interval< float > timerg_
 
BufferString code_
 
- Protected Attributes inherited from Strat::UnitRef
NodeUnitRefupnode_
 
BufferString desc_
 
Color color_
 
IOPar pars_
 

Friends

class RefTree
 

Additional Inherited Members

- Public Types inherited from Strat::UnitRef
enum  Type { NodeOnly, Leaved, Leaf }
 
- Static Public Member Functions inherited from Strat::UnitRef
static const char * sKeyPropsFor ()
 
static const char * sKeyTreeProps ()
 
- Public Attributes inherited from Strat::UnitRef
const char * d =0)
 
Notifier< UnitRefchanged
 
Notifier< UnitReftoBeDeleted
 

Detailed Description

UnitRef for units containing other units only.

Constructor & Destructor Documentation

Strat::NodeUnitRef::NodeUnitRef ( NodeUnitRef ,
const char *  ,
const char *  d = 0 
)
Strat::NodeUnitRef::~NodeUnitRef ( )

Member Function Documentation

virtual bool Strat::NodeUnitRef::add ( UnitRef ,
bool  rev = false 
)
virtual
void Strat::NodeUnitRef::changeTimeRange ( float  dtime)
protected
virtual const OD::String& Strat::NodeUnitRef::code ( ) const
inlinevirtual

Implements Strat::UnitRef.

UnitRef* Strat::NodeUnitRef::find ( const char *  urcode)
inline
const UnitRef* Strat::NodeUnitRef::find ( const char *  urcode) const
inline
UnitRef* Strat::NodeUnitRef::fnd ( const char *  ) const
protected
virtual void Strat::NodeUnitRef::getPropsFrom ( const IOPar )
virtual

Reimplemented from Strat::UnitRef.

virtual bool Strat::NodeUnitRef::hasChildren ( ) const
inlinevirtual

Implements Strat::UnitRef.

virtual bool Strat::NodeUnitRef::hasLeaves ( ) const
pure virtual
void Strat::NodeUnitRef::incTimeRange ( const Interval< float > &  )
int Strat::NodeUnitRef::indexOf ( const UnitRef ur) const
inline
virtual bool Strat::NodeUnitRef::insert ( UnitRef ,
int  posidx 
)
virtual
virtual bool Strat::NodeUnitRef::isEmpty ( ) const
inlinevirtual

Reimplemented from Strat::UnitRef.

virtual bool Strat::NodeUnitRef::isParentOf ( const UnitRef ) const
virtual

Reimplemented from Strat::UnitRef.

virtual int Strat::NodeUnitRef::level ( ) const
inlinevirtual

Implements Strat::UnitRef.

Reimplemented in Strat::RefTree.

virtual int Strat::NodeUnitRef::nrLeaves ( ) const
virtual

Reimplemented in Strat::LeavedUnitRef.

int Strat::NodeUnitRef::nrRefs ( ) const
inline
virtual void Strat::NodeUnitRef::putPropsTo ( IOPar ) const
virtual

Reimplemented from Strat::UnitRef.

UnitRef& Strat::NodeUnitRef::ref ( int  idx)
inline
const UnitRef& Strat::NodeUnitRef::ref ( int  idx) const
inline
void Strat::NodeUnitRef::remove ( int  uridx)
inline
void Strat::NodeUnitRef::remove ( const UnitRef ur)
inline
void Strat::NodeUnitRef::removeAllChildren ( )
inline
virtual UnitRef* Strat::NodeUnitRef::replace ( int  uridx,
UnitRef  
)
virtual
virtual void Strat::NodeUnitRef::setCode ( const char *  c)
inlinevirtual

Reimplemented from Strat::UnitRef.

void Strat::NodeUnitRef::setEmpty ( )
virtual void Strat::NodeUnitRef::setTimeRange ( const Interval< float > &  )
virtual
void Strat::NodeUnitRef::swapChildren ( int  ,
int   
)
void Strat::NodeUnitRef::takeChildrenFrom ( NodeUnitRef )
protected
virtual Interval<float> Strat::NodeUnitRef::timeRange ( ) const
inlinevirtual

Friends And Related Function Documentation

friend class RefTree
friend

Member Data Documentation

BufferString Strat::NodeUnitRef::code_
protected
ObjectSet<UnitRef> Strat::NodeUnitRef::refs_
protected
Interval<float> Strat::NodeUnitRef::timerg_
protected

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