OpendTect  6.6
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
PreStack::EventManager Class Reference

A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same MultiID. More...

Inheritance diagram for PreStack::EventManager:
[legend]

Classes

struct  DipSource
 

Public Member Functions

 EventManager ()
 
int addHorizon (int id=-1)
 
void addReloadPosition (const BinID &)
 
void addReloadPositions (const BinIDValueSet &)
 
void blockChange (bool yn, bool sendall)
 
const BinIDchangeBid () const
 
void cleanUp (bool keepchanged)
 
ExecutorcommitChanges ()
 
void fillPar (IOPar &) const
 
const ColorgetColor () const
 
bool getDip (const BinIDValue &, int horid, float &inldip, float &crldip)
 
const DipSourcegetDipSource (bool primary) const
 
EventSetgetEvents (const BinID &, bool load, bool create)
 
const EventSetgetEvents (const BinID &, bool load=false, bool create=false) const
 
const TypeSet< int > & getHorizonIDs () const
 
bool getHorRanges (TrcKeySampling &) const
 
bool getLocations (BinIDValueSet &) const
 
MultiDimStorage< EventSet * > & getStorage ()
 
const MultiIDgetStorageID () const
 
const MultiIDhorizonEMReference (int id) const
 
bool isChanged () const
 
Executorload (const BinIDValueSet &, bool trigger)
 
int nextHorizonID (bool usethis)
 
bool removeHorizon (int id)
 
void reportChange (const BinID &)
 
void resetChangedFlag (bool onlyhorflag)
 
void setColor (const Color &)
 
void setDipSource (const DipSource &, bool primary)
 
void setHorizonEMReference (int id, const MultiID &)
 
void setNextHorizonID (int)
 
ExecutorsetStorageID (const MultiID &mid, bool reload)
 
Undoundo ()
 
const Undoundo () const
 
bool usePar (const IOPar &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 

Public Attributes

Notifier< EventManagerchange
 
Notifier< EventManagerforceReload
 
Notifier< EventManagerresetChangeStatus
 Triggers when the chang flags are reseted. More...
 

Protected Member Functions

bool getDip (const BinIDValue &, int horid, bool primary, float &inldip, float &crldip)
 

Static Protected Member Functions

static const char * sKeyStorageID ()
 

Protected Attributes

int auxdatachanged_
 
BinID changebid_
 
Threads::Lock changebidlock_
 
Color color_
 
ObjectSet< EM::Horizon3Demhorizons_
 
Threads::Lock eventlock_
 
MultiDimStorage< EventSet * > events_
 
TypeSet< int > horids_
 
TypeSet< MultiIDhorrefs_
 
int nexthorid_
 
BinIDValueSetnotificationqueue_
 
SeisTrcReaderprimarydipreader_
 
DipSource primarydipsource_
 
BinIDValueSetreloadbids_
 
SeisTrcReadersecondarydipreader_
 
DipSource secondarydipsource_
 
MultiID storageid_
 
Undo undo_
 
VelocityPicks * velpicks_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same MultiID.

<>

Constructor & Destructor Documentation

◆ EventManager()

PreStack::EventManager::EventManager ( )

Member Function Documentation

◆ addHorizon()

int PreStack::EventManager::addHorizon ( int  id = -1)
Returns
horid
Note
id argument is only for internal use i.e. the reader

◆ addReloadPosition()

void PreStack::EventManager::addReloadPosition ( const BinID )

◆ addReloadPositions()

void PreStack::EventManager::addReloadPositions ( const BinIDValueSet )

◆ blockChange()

void PreStack::EventManager::blockChange ( bool  yn,
bool  sendall 
)

Turns off notification, but class will record changes. If sendall is on when turning off the block, all recorded changes will be triggered.

◆ changeBid()

const BinID& PreStack::EventManager::changeBid ( ) const
inline

Can be -1 if general (name/color/horid) change.

◆ cleanUp()

void PreStack::EventManager::cleanUp ( bool  keepchanged)

◆ commitChanges()

Executor* PreStack::EventManager::commitChanges ( )

◆ fillPar()

void PreStack::EventManager::fillPar ( IOPar ) const

◆ getColor()

const Color& PreStack::EventManager::getColor ( ) const
inline

◆ getDip() [1/2]

bool PreStack::EventManager::getDip ( const BinIDValue ,
int  horid,
bool  primary,
float &  inldip,
float &  crldip 
)
protected

◆ getDip() [2/2]

bool PreStack::EventManager::getDip ( const BinIDValue ,
int  horid,
float &  inldip,
float &  crldip 
)

◆ getDipSource()

const DipSource& PreStack::EventManager::getDipSource ( bool  primary) const

◆ getEvents() [1/2]

EventSet* PreStack::EventManager::getEvents ( const BinID ,
bool  load,
bool  create 
)

◆ getEvents() [2/2]

const EventSet* PreStack::EventManager::getEvents ( const BinID ,
bool  load = false,
bool  create = false 
) const

◆ getHorizonIDs()

const TypeSet<int>& PreStack::EventManager::getHorizonIDs ( ) const
inline

◆ getHorRanges()

bool PreStack::EventManager::getHorRanges ( TrcKeySampling ) const

◆ getLocations()

bool PreStack::EventManager::getLocations ( BinIDValueSet ) const

◆ getStorage()

MultiDimStorage<EventSet*>& PreStack::EventManager::getStorage ( )
inline

◆ getStorageID()

const MultiID& PreStack::EventManager::getStorageID ( ) const

◆ horizonEMReference()

const MultiID& PreStack::EventManager::horizonEMReference ( int  id) const

◆ isChanged()

bool PreStack::EventManager::isChanged ( ) const

◆ load()

Executor* PreStack::EventManager::load ( const BinIDValueSet ,
bool  trigger 
)

◆ nextHorizonID()

int PreStack::EventManager::nextHorizonID ( bool  usethis)

◆ removeHorizon()

bool PreStack::EventManager::removeHorizon ( int  id)

◆ reportChange()

void PreStack::EventManager::reportChange ( const BinID )

◆ resetChangedFlag()

void PreStack::EventManager::resetChangedFlag ( bool  onlyhorflag)

◆ setColor()

void PreStack::EventManager::setColor ( const Color )

◆ setDipSource()

void PreStack::EventManager::setDipSource ( const DipSource ,
bool  primary 
)

◆ setHorizonEMReference()

void PreStack::EventManager::setHorizonEMReference ( int  id,
const MultiID  
)

◆ setNextHorizonID()

void PreStack::EventManager::setNextHorizonID ( int  )

◆ setStorageID()

Executor* PreStack::EventManager::setStorageID ( const MultiID mid,
bool  reload 
)

Sets the storage id.

Parameters
midDatabase Object key
reloadif true, all data will be removed, forceReload will trigger, and data at the reload positions will be loaded from the new data.
Note
Note that no data on disk is changed/duplicated. That can be done with the translator.

◆ sKeyStorageID()

static const char* PreStack::EventManager::sKeyStorageID ( )
inlinestaticprotected

◆ undo() [1/2]

Undo& PreStack::EventManager::undo ( )
inline

◆ undo() [2/2]

const Undo& PreStack::EventManager::undo ( ) const
inline

◆ usePar()

bool PreStack::EventManager::usePar ( const IOPar )

Member Data Documentation

◆ auxdatachanged_

int PreStack::EventManager::auxdatachanged_
protected

◆ change

Notifier<EventManager> PreStack::EventManager::change
Note
Dont enable/disable, use blockChange if needed.

◆ changebid_

BinID PreStack::EventManager::changebid_
protected

◆ changebidlock_

Threads::Lock PreStack::EventManager::changebidlock_
protected

◆ color_

Color PreStack::EventManager::color_
protected

◆ emhorizons_

ObjectSet<EM::Horizon3D> PreStack::EventManager::emhorizons_
protected

◆ eventlock_

Threads::Lock PreStack::EventManager::eventlock_
protected

◆ events_

MultiDimStorage<EventSet*> PreStack::EventManager::events_
protected

◆ forceReload

Notifier<EventManager> PreStack::EventManager::forceReload

When triggered, all EventSets must be unreffed. Eventual load requirements should be added.

◆ horids_

TypeSet<int> PreStack::EventManager::horids_
protected

◆ horrefs_

TypeSet<MultiID> PreStack::EventManager::horrefs_
protected

◆ nexthorid_

int PreStack::EventManager::nexthorid_
protected

◆ notificationqueue_

BinIDValueSet* PreStack::EventManager::notificationqueue_
protected

◆ primarydipreader_

SeisTrcReader* PreStack::EventManager::primarydipreader_
protected

◆ primarydipsource_

DipSource PreStack::EventManager::primarydipsource_
protected

◆ reloadbids_

BinIDValueSet* PreStack::EventManager::reloadbids_
protected

◆ resetChangeStatus

Notifier<EventManager> PreStack::EventManager::resetChangeStatus

Triggers when the chang flags are reseted.

◆ secondarydipreader_

SeisTrcReader* PreStack::EventManager::secondarydipreader_
protected

◆ secondarydipsource_

DipSource PreStack::EventManager::secondarydipsource_
protected

◆ storageid_

MultiID PreStack::EventManager::storageid_
protected

◆ undo_

Undo PreStack::EventManager::undo_
protected

◆ velpicks_

VelocityPicks* PreStack::EventManager::velpicks_
protected

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