OpendTect  6.6
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 addDisplayPropertyLink (DisplayPropertyLink *)
 
int addHolder (DisplayPropertyHolder *)
 
void createPossibleLinks (DisplayPropertyHolder *, ObjectSet< DisplayPropertyLink > &)
 DisplayPropertyLinks become yours. More...
 
void fillPar (IOPar &) const
 
DisplayPropertyLinkgetDisplayPropertyLink (int id)
 
const DisplayPropertyLinkgetDisplayPropertyLink (int id) const
 
int getDisplayPropertyLinkID (int idx) const
 
const DisplayPropertyHoldergetHolder (int) const
 
int nrDisplayPropertyLinks () const
 
int nrHolders () const
 
void removeDisplayPropertyLink (int id)
 
bool usePar (const IOPar &)
 

Static Public Member Functions

static DisplayLinkManagergetImpl ()
 

Protected Member Functions

void removeHolder (DisplayPropertyHolder *)
 

Protected Attributes

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

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()

DisplayLinkManager::~DisplayLinkManager ( )

Member Function Documentation

◆ addDisplayPropertyLink()

int DisplayLinkManager::addDisplayPropertyLink ( DisplayPropertyLink )

PropertyLink becomes mine, returns id for new link.

◆ addHolder()

int DisplayLinkManager::addHolder ( DisplayPropertyHolder )

◆ createPossibleLinks()

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

DisplayPropertyLinks become yours.

◆ fillPar()

void DisplayLinkManager::fillPar ( IOPar ) const

◆ getDisplayPropertyLink() [1/2]

DisplayPropertyLink* DisplayLinkManager::getDisplayPropertyLink ( int  id)

◆ getDisplayPropertyLink() [2/2]

const DisplayPropertyLink* DisplayLinkManager::getDisplayPropertyLink ( int  id) const

◆ getDisplayPropertyLinkID()

int DisplayLinkManager::getDisplayPropertyLinkID ( int  idx) const

◆ getHolder()

const DisplayPropertyHolder* DisplayLinkManager::getHolder ( int  ) const

◆ getImpl()

static DisplayLinkManager& DisplayLinkManager::getImpl ( )
static

◆ nrDisplayPropertyLinks()

int DisplayLinkManager::nrDisplayPropertyLinks ( ) const

◆ nrHolders()

int DisplayLinkManager::nrHolders ( ) const

◆ removeDisplayPropertyLink()

void DisplayLinkManager::removeDisplayPropertyLink ( int  id)

◆ removeHolder()

void DisplayLinkManager::removeHolder ( DisplayPropertyHolder )
protected

◆ usePar()

bool DisplayLinkManager::usePar ( const IOPar )

Friends And Related Function Documentation

◆ DisplayPropertyHolder

friend class DisplayPropertyHolder
friend

Member Data Documentation

◆ freeholderid_

int DisplayLinkManager::freeholderid_
protected

◆ freelinkid_

int DisplayLinkManager::freelinkid_
protected

◆ holders_

ObjectSet<DisplayPropertyHolder> DisplayLinkManager::holders_
protected

◆ lock_

Threads::Lock DisplayLinkManager::lock_
mutableprotected

◆ propertylinkids_

TypeSet<int> DisplayLinkManager::propertylinkids_
protected

◆ propertylinks_

ObjectSet<DisplayPropertyLink> DisplayLinkManager::propertylinks_
protected

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