OpendTect  6.3
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | 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 DBKey. More...

Inheritance diagram for PreStack::EventManager:
[legend]

Public Member Functions

 struct (PreStackProcessing) DipSource
 
 EventManager ()
 
const TypeSet< int > & getHorizonIDs () const
 
int addHorizon (int id=-1)
 
bool removeHorizon (int id)
 
const DBKeyhorizonEMReference (int id) const
 
void setHorizonEMReference (int id, const DBKey &)
 
int nextHorizonID (bool usethis)
 
void setNextHorizonID (int)
 
const ColorgetColor () const
 
void setColor (const Color &)
 
void setDipSource (const DipSource &, bool primary)
 
const DipSource & getDipSource (bool primary) const
 
ExecutorsetStorageID (const DBKey &mid, bool reload)
 
const DBKeygetStorageID () const
 
bool getHorRanges (TrcKeySampling &) const
 
bool getLocations (BinIDValueSet &) const
 
Undoundo ()
 
const Undoundo () const
 
ExecutorcommitChanges ()
 
Executorload (const BinIDValueSet &, bool trigger)
 
bool isChanged () const
 
void resetChangedFlag (bool onlyhorflag)
 
EventSetgetEvents (const BinID &, bool load, bool create)
 
const EventSetgetEvents (const BinID &, bool load=false, bool create=false) const
 
void cleanUp (bool keepchanged)
 
MultiDimStorage< EventSet * > & getStorage ()
 
const BinIDchangeBid () const
 
void blockChange (bool yn, bool sendall)
 
void addReloadPositions (const BinIDValueSet &)
 
void addReloadPosition (const BinID &)
 
void reportChange (const BinID &)
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
bool getDip (const BinIDValue &, int horid, float &inldip, float &crldip)
 
- 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 

Public Attributes

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

Protected Member Functions

bool getDip (const BinIDValue &, int horid, bool primary, float &inldip, float &crldip)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * sKeyStorageID ()
 

Protected Attributes

MultiDimStorage< EventSet * > events_
 
Threads::Lock eventlock_
 
DBKey storageid_
 
VelocityPicks * velpicks_
 
Color color_
 
TypeSet< int > horids_
 
DBKeySet horrefs_
 
ObjectSet< EM::Horizon3Demhorizons_
 
BinID changebid_
 
Threads::Lock changebidlock_
 
BinIDValueSetnotificationqueue_
 
BinIDValueSetreloadbids_
 
int nexthorid_
 
int auxdatachanged_
 
DipSource primarydipsource_
 
DipSource secondarydipsource_
 
Seis::Providerprimarydipprovider_
 
Seis::Providersecondarydipprovider_
 
Undo undo_
 
uiString errmsg_
 

Private Member Functions

 ~EventManager ()
 

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 DBKey.

Constructor & Destructor Documentation

PreStack::EventManager::~EventManager ( )
private
PreStack::EventManager::EventManager ( )

Member Function Documentation

int PreStack::EventManager::addHorizon ( int  id = -1)
Returns
horid
Note
id argument is only for internal use i.e. the reader
void PreStack::EventManager::addReloadPosition ( const BinID )
void PreStack::EventManager::addReloadPositions ( const BinIDValueSet )
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.

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

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

void PreStack::EventManager::cleanUp ( bool  keepchanged)
Executor* PreStack::EventManager::commitChanges ( )
void PreStack::EventManager::fillPar ( IOPar ) const
const Color& PreStack::EventManager::getColor ( ) const
inline
bool PreStack::EventManager::getDip ( const BinIDValue ,
int  horid,
float &  inldip,
float &  crldip 
)
bool PreStack::EventManager::getDip ( const BinIDValue ,
int  horid,
bool  primary,
float &  inldip,
float &  crldip 
)
protected
const DipSource& PreStack::EventManager::getDipSource ( bool  primary) const
EventSet* PreStack::EventManager::getEvents ( const BinID ,
bool  load,
bool  create 
)
const EventSet* PreStack::EventManager::getEvents ( const BinID ,
bool  load = false,
bool  create = false 
) const
const TypeSet<int>& PreStack::EventManager::getHorizonIDs ( ) const
inline
bool PreStack::EventManager::getHorRanges ( TrcKeySampling ) const
bool PreStack::EventManager::getLocations ( BinIDValueSet ) const
MultiDimStorage<EventSet*>& PreStack::EventManager::getStorage ( )
inline
const DBKey& PreStack::EventManager::getStorageID ( ) const
const DBKey& PreStack::EventManager::horizonEMReference ( int  id) const
bool PreStack::EventManager::isChanged ( ) const
Executor* PreStack::EventManager::load ( const BinIDValueSet ,
bool  trigger 
)
int PreStack::EventManager::nextHorizonID ( bool  usethis)
bool PreStack::EventManager::removeHorizon ( int  id)
void PreStack::EventManager::reportChange ( const BinID )
void PreStack::EventManager::resetChangedFlag ( bool  onlyhorflag)
void PreStack::EventManager::setColor ( const Color )
void PreStack::EventManager::setDipSource ( const DipSource &  ,
bool  primary 
)
void PreStack::EventManager::setHorizonEMReference ( int  id,
const DBKey  
)
void PreStack::EventManager::setNextHorizonID ( int  )
Executor* PreStack::EventManager::setStorageID ( const DBKey mid,
bool  reload 
)

Sets the storage id.

Parameters
reloadif true, all data will be removed, forceReload will trigger, and data at the reload positions will be loaded from the new data. Note that no data on disk is changed/duplicated. That can be done with the translator.
static const char* PreStack::EventManager::sKeyStorageID ( )
inlinestaticprotected
PreStack::EventManager::struct ( PreStackProcessing  )
inline
Undo& PreStack::EventManager::undo ( )
inline
const Undo& PreStack::EventManager::undo ( ) const
inline
bool PreStack::EventManager::usePar ( const IOPar )

Member Data Documentation

int PreStack::EventManager::auxdatachanged_
protected
Notifier<EventManager> PreStack::EventManager::change
Note
Dont enable/disable, use blockChange if needed.
BinID PreStack::EventManager::changebid_
protected
Threads::Lock PreStack::EventManager::changebidlock_
protected
Color PreStack::EventManager::color_
protected
ObjectSet<EM::Horizon3D> PreStack::EventManager::emhorizons_
protected
uiString PreStack::EventManager::errmsg_
protected
Threads::Lock PreStack::EventManager::eventlock_
protected
MultiDimStorage<EventSet*> PreStack::EventManager::events_
protected
Notifier<EventManager> PreStack::EventManager::forceReload

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

TypeSet<int> PreStack::EventManager::horids_
protected
DBKeySet PreStack::EventManager::horrefs_
protected
int PreStack::EventManager::nexthorid_
protected
BinIDValueSet* PreStack::EventManager::notificationqueue_
protected
Seis::Provider* PreStack::EventManager::primarydipprovider_
protected
DipSource PreStack::EventManager::primarydipsource_
protected
BinIDValueSet* PreStack::EventManager::reloadbids_
protected
Notifier<EventManager> PreStack::EventManager::resetChangeStatus

Triggers when the chang flags are reseted.

Seis::Provider* PreStack::EventManager::secondarydipprovider_
protected
DipSource PreStack::EventManager::secondarydipsource_
protected
DBKey PreStack::EventManager::storageid_
protected
Undo PreStack::EventManager::undo_
protected
VelocityPicks* PreStack::EventManager::velpicks_
protected

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