OpendTect-6_4  6.4
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 MultiID &) const
 
void getParents (int, TypeSet< int > &) const
 
void removeNode (const MultiID &, bool write=true)
 
void addRelation (const MultiID &id1, const MultiID &id2, bool write=true)
 
int findRelation (const MultiID &, const MultiID &) const
 
bool getSorted (const TypeSet< MultiID > &unsortedids, TypeSet< MultiID > &sortedids) const
 
bool read ()
 
bool write () const
 

Static Public Member Functions

static bool clear (bool is2d, bool dowrite=true)
 
static bool sortHorizons (bool is2d, const TypeSet< MultiID > &unsortedids, TypeSet< MultiID > &sortedids)
 
static bool getSorted (bool is2d, TypeSet< MultiID > &)
 
static bool getSorted (bool is2d, BufferStringSet &)
 
static bool update (bool id2d, const TypeSet< MultiID > &sortedids)
 

Protected Member Functions

int findNode (const MultiID &) 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 MultiID id1,
const MultiID id2,
bool  write = true 
)
static bool EM::RelationTree::clear ( bool  is2d,
bool  dowrite = true 
)
static
int EM::RelationTree::findNode ( const MultiID ) const
protected
int EM::RelationTree::findRelation ( const MultiID ,
const MultiID  
) const
const RelationTree::Node* EM::RelationTree::getNode ( const MultiID ) const
void EM::RelationTree::getParents ( int  ,
TypeSet< int > &   
) const
bool EM::RelationTree::getSorted ( const TypeSet< MultiID > &  unsortedids,
TypeSet< MultiID > &  sortedids 
) const
static bool EM::RelationTree::getSorted ( bool  is2d,
TypeSet< MultiID > &   
)
static
static bool EM::RelationTree::getSorted ( bool  is2d,
BufferStringSet  
)
static
bool EM::RelationTree::read ( )
inline
bool EM::RelationTree::read ( bool  removeoutdated)
protected
void EM::RelationTree::removeNode ( const MultiID ,
bool  write = true 
)
static const char* EM::RelationTree::sKeyHorizonRelations ( )
staticprotected
static bool EM::RelationTree::sortHorizons ( bool  is2d,
const TypeSet< MultiID > &  unsortedids,
TypeSet< MultiID > &  sortedids 
)
static

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

static bool EM::RelationTree::update ( bool  id2d,
const TypeSet< MultiID > &  sortedids 
)
static
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. 2019