OpendTect
7.0
|
A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same MultiID. More...
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 BinID & | changeBid () const |
void | cleanUp (bool keepchanged) |
Executor * | commitChanges () |
void | fillPar (IOPar &) const |
const OD::Color & | getColor () const |
bool | getDip (const BinIDValue &, int horid, float &inldip, float &crldip) |
const DipSource & | getDipSource (bool primary) const |
EventSet * | getEvents (const BinID &, bool load, bool create) |
const EventSet * | getEvents (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 MultiID & | getStorageID () const |
const MultiID & | horizonEMReference (int id) const |
bool | isChanged () const |
Executor * | load (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) |
Executor * | setStorageID (const MultiID &mid, bool reload) |
Undo & | undo () |
const Undo & | undo () 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 CallBacker * | trueCaller () |
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_type & | name () const override |
NamedObject & | operator= (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< EventManager > | change |
Notifier< EventManager > | forceReload |
Notifier< EventManager > | resetChangeStatus |
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 () |
Referenced & | operator= (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::Horizon3D > | emhorizons_ |
Threads::Lock | eventlock_ |
MultiDimStorage< EventSet * > | events_ |
TypeSet< int > | horids_ |
TypeSet< MultiID > | horrefs_ |
int | nexthorid_ = 0 |
BinIDValueSet * | notificationqueue_ |
SeisTrcReader * | primarydipreader_ = nullptr |
DipSource | primarydipsource_ |
BinIDValueSet * | reloadbids_ |
SeisTrcReader * | secondarydipreader_ = nullptr |
DipSource | secondarydipsource_ |
MultiID | storageid_ |
Undo | undo_ |
VelocityPicks * | velpicks_ |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
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 *) |
A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same MultiID.
<>
PreStack::EventManager::EventManager | ( | ) |
|
protectedvirtual |
int PreStack::EventManager::addHorizon | ( | int | id = -1 | ) |
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.
|
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 |
|
inline |
|
protected |
bool PreStack::EventManager::getDip | ( | const BinIDValue & | , |
int | horid, | ||
float & | inldip, | ||
float & | crldip | ||
) |
const DipSource& PreStack::EventManager::getDipSource | ( | bool | primary | ) | const |
const EventSet* PreStack::EventManager::getEvents | ( | const BinID & | , |
bool | load = false , |
||
bool | create = false |
||
) | const |
|
inline |
bool PreStack::EventManager::getHorRanges | ( | TrcKeySampling & | ) | const |
bool PreStack::EventManager::getLocations | ( | BinIDValueSet & | ) | const |
|
inline |
const MultiID& PreStack::EventManager::getStorageID | ( | ) | const |
const MultiID& 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 & | bid = BinID::udf() | ) |
void PreStack::EventManager::resetChangedFlag | ( | bool | onlyhorflag | ) |
void PreStack::EventManager::setColor | ( | const OD::Color & | ) |
void PreStack::EventManager::setDipSource | ( | const DipSource & | , |
bool | primary | ||
) |
void PreStack::EventManager::setHorizonEMReference | ( | int | id, |
const MultiID & | |||
) |
void PreStack::EventManager::setNextHorizonID | ( | int | ) |
Sets the storage id.
mid | Database Object key |
reload | if true, all data will be removed, forceReload will trigger, and data at the reload positions will be loaded from the new data. |
|
inlinestaticprotected |
|
inline |
|
inline |
bool PreStack::EventManager::usePar | ( | const IOPar & | ) |
|
protected |
Notifier<EventManager> PreStack::EventManager::change |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Notifier<EventManager> PreStack::EventManager::forceReload |
When triggered, all EventSets must be unreffed. Eventual load requirements should be added.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Notifier<EventManager> PreStack::EventManager::resetChangeStatus |
Triggers when the chang flags are reseted.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024