OpendTect  6.3
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
EM::RelationTree Class Reference

A Relation tree where a parent-child relationship means a top-bottom relationship for the horizons. More...

Classes

class  Node
 

Public Member Functions

 RelationTree (bool is2d, bool read=true)
 
 ~RelationTree ()
 
const RelationTree::NodegetNode (const DBKey &) const
 
void getParents (int, TypeSet< int > &) const
 
void removeNode (const DBKey &, bool write=true)
 
void addRelation (const DBKey &id1, const DBKey &id2, bool write=true)
 
int findRelation (const DBKey &, const DBKey &) const
 
bool getSorted (const DBKeySet &unsortedids, DBKeySet &sortedids) const
 
bool read ()
 
bool write () const
 

Static Public Member Functions

static bool sortHorizons (bool is2d, const DBKeySet &unsortedids, DBKeySet &sortedids)
 

Protected Member Functions

int findNode (const DBKey &) const
 
bool read (bool removeoutdated)
 

Static Protected Member Functions

static const char * sKeyHorizonRelations ()
 

Protected Attributes

ObjectSet< RelationTree::Nodenodes_
 
bool is2d_
 

Detailed Description

A Relation tree where a parent-child relationship means a top-bottom relationship for the horizons.

Constructor & Destructor Documentation

EM::RelationTree::RelationTree ( bool  is2d,
bool  read = true 
)
EM::RelationTree::~RelationTree ( )

Member Function Documentation

void EM::RelationTree::addRelation ( const DBKey id1,
const DBKey id2,
bool  write = true 
)
int EM::RelationTree::findNode ( const DBKey ) const
protected
int EM::RelationTree::findRelation ( const DBKey ,
const DBKey  
) const
const RelationTree::Node* EM::RelationTree::getNode ( const DBKey ) const
void EM::RelationTree::getParents ( int  ,
TypeSet< int > &   
) const
bool EM::RelationTree::getSorted ( const DBKeySet unsortedids,
DBKeySet sortedids 
) const
bool EM::RelationTree::read ( )
inline
bool EM::RelationTree::read ( bool  removeoutdated)
protected
void EM::RelationTree::removeNode ( const DBKey ,
bool  write = true 
)
static const char* EM::RelationTree::sKeyHorizonRelations ( )
staticprotected
static bool EM::RelationTree::sortHorizons ( bool  is2d,
const DBKeySet unsortedids,
DBKeySet sortedids 
)
static

Much faster if you only need RelationTree for sorting and unsortedids is a small subset of all horizons in the survey.

bool EM::RelationTree::write ( ) const

Member Data Documentation

bool EM::RelationTree::is2d_
protected
ObjectSet<RelationTree::Node> EM::RelationTree::nodes_
protected

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