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

Public Member Functions

 DisplayLinkManager ()
 
 ~DisplayLinkManager ()
 
int nrHolders () const
 
int addHolder (DisplayPropertyHolder *)
 
const DisplayPropertyHoldergetHolder (int) const
 
void createPossibleLinks (DisplayPropertyHolder *, ObjectSet< DisplayPropertyLink > &)
 DisplayPropertyLinks become yours. More...
 
int nrDisplayPropertyLinks () const
 
int getDisplayPropertyLinkID (int idx) const
 
int addDisplayPropertyLink (DisplayPropertyLink *)
 
void removeDisplayPropertyLink (int id)
 
DisplayPropertyLinkgetDisplayPropertyLink (int id)
 
const DisplayPropertyLinkgetDisplayPropertyLink (int id) const
 
bool usePar (const IOPar &)
 
void fillPar (IOPar &) const
 

Static Public Member Functions

static DisplayLinkManagergetImpl ()
 

Protected Member Functions

void removeHolder (DisplayPropertyHolder *)
 

Protected Attributes

ObjectSet< DisplayPropertyHolderholders_
 
int freeholderid_
 
Threads::Lock lock_
 
ObjectSet< DisplayPropertyLinkpropertylinks_
 
TypeSet< int > propertylinkids_
 
int freelinkid_
 

Friends

class DisplayPropertyHolder
 

Detailed Description

brief Manages property links between differerent displays.

Property links can be ranges, color sequences and other parameters.

The intelligence on what can be linked lies in the subclasses of DisplayPropertyLink.

Displays that are able to link properties to must inherit DisplayPropertyHolder and in addition must be added to the DisplayLinkManager.

To create a link from a certain DisplayPropertyHolder, DisplayLinkManager::createPossibleLinks should be called. This fills an ObjectSet<DisplayPropertyLink>&, and one or more links in that set may be enabled by calling DisplayPropertyHolder::addDisplayPropertyLink().

The link is removed by calling DisplayPropertyHolder::removeDisplayPropertyLink().

Constructor & Destructor Documentation

DisplayLinkManager::DisplayLinkManager ( )
DisplayLinkManager::~DisplayLinkManager ( )

Member Function Documentation

int DisplayLinkManager::addDisplayPropertyLink ( DisplayPropertyLink )

PropertyLink becomes mine, returns id for new link.

int DisplayLinkManager::addHolder ( DisplayPropertyHolder )
void DisplayLinkManager::createPossibleLinks ( DisplayPropertyHolder ,
ObjectSet< DisplayPropertyLink > &   
)

DisplayPropertyLinks become yours.

void DisplayLinkManager::fillPar ( IOPar ) const
DisplayPropertyLink* DisplayLinkManager::getDisplayPropertyLink ( int  id)
const DisplayPropertyLink* DisplayLinkManager::getDisplayPropertyLink ( int  id) const
int DisplayLinkManager::getDisplayPropertyLinkID ( int  idx) const
const DisplayPropertyHolder* DisplayLinkManager::getHolder ( int  ) const
static DisplayLinkManager& DisplayLinkManager::getImpl ( )
static
int DisplayLinkManager::nrDisplayPropertyLinks ( ) const
int DisplayLinkManager::nrHolders ( ) const
void DisplayLinkManager::removeDisplayPropertyLink ( int  id)
void DisplayLinkManager::removeHolder ( DisplayPropertyHolder )
protected
bool DisplayLinkManager::usePar ( const IOPar )

Friends And Related Function Documentation

friend class DisplayPropertyHolder
friend

Member Data Documentation

int DisplayLinkManager::freeholderid_
protected
int DisplayLinkManager::freelinkid_
protected
ObjectSet<DisplayPropertyHolder> DisplayLinkManager::holders_
protected
Threads::Lock DisplayLinkManager::lock_
mutableprotected
TypeSet<int> DisplayLinkManager::propertylinkids_
protected
ObjectSet<DisplayPropertyLink> DisplayLinkManager::propertylinks_
protected

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