OpendTect  7.0
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 OD::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 &bid=BinID::udf())
 
void resetChangedFlag (bool onlyhorflag)
 
void setColor (const OD::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 SharedObject
 SharedObject (const char *nm=nullptr)
 
 SharedObject (const SharedObject &)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- 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
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Public Attributes

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

Protected Member Functions

virtual ~EventManager ()
 
bool getDip (const BinIDValue &, int horid, bool primary, float &inldip, float &crldip)
 
- Protected Member Functions inherited from SharedObject
virtual ~SharedObject ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Static Protected Member Functions

static const char * sKeyStorageID ()
 

Protected Attributes

bool auxdatachanged_ = false
 
BinID changebid_
 
Threads::Lock changebidlock_
 
OD::Color color_
 
ObjectSet< EM::Horizon3Demhorizons_
 
Threads::Lock eventlock_
 
MultiDimStorage< EventSet * > events_
 
TypeSet< int > horids_
 
TypeSet< MultiIDhorrefs_
 
int nexthorid_ = 0
 
BinIDValueSetnotificationqueue_
 
SeisTrcReaderprimarydipreader_ = nullptr
 
DipSource primarydipsource_
 
BinIDValueSetreloadbids_
 
SeisTrcReadersecondarydipreader_ = nullptr
 
DipSource secondarydipsource_
 
MultiID storageid_
 
Undo undo_
 
VelocityPicks * velpicks_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

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

◆ ~EventManager()

virtual PreStack::EventManager::~EventManager ( )
protectedvirtual

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 OD::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 bid = BinID::udf())

◆ resetChangedFlag()

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

◆ setColor()

void PreStack::EventManager::setColor ( const OD::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_

bool PreStack::EventManager::auxdatachanged_ = false
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_

OD::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_ = 0
protected

◆ notificationqueue_

BinIDValueSet* PreStack::EventManager::notificationqueue_
protected

◆ primarydipreader_

SeisTrcReader* PreStack::EventManager::primarydipreader_ = nullptr
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_ = nullptr
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-2024