![]() |
OpendTect
7.0
|
manages the synthetics for a set of Layer Models. More...
Public Types | |
enum | SubSelType { NoSubSel , OnlyZO , NoZO , OnlyEIStack , NoEIStack , OnlyEIGather , NoEIGather , OnlyPS , NoPS , OnlyPSBased , NoPSBased , OnlyAttrib , NoAttrib , OnlyRaw , NoRaw , OnlyInput , OnlyWithInput , NoWithInput , OnlyProps , NoProps , OnlyFilter , NoFilter } |
Public Member Functions | |
DataMgr (const DataMgr &, int calceach) | |
DataMgr (const Strat::LayerModelSuite &) | |
~DataMgr () | |
bool | addInstAttribSynthetics (const SynthID &inpid, const TypeSet< Attrib::Instantaneous::OutType > &, TypeSet< SynthID > &) |
bool | addPropertySynthetics (TypeSet< SynthID > *=nullptr, const BufferStringSet *propnms=nullptr) |
SynthID | addSynthetic (const SynthGenParams &) |
int | calcEach () const |
bool | checkElasticPropSel (const ElasticPropSelection &, const RefLayer::Type *checktyp=nullptr, uiString *msg=nullptr) const |
void | clearInfoMsg () |
DirtyCountType | dirtyCount () const |
bool | disableSynthetic (const TypeSet< SynthID > &) |
Notifier< DataMgr > & | elasticModelChanged () |
const ElasticModelSet & | elasticModels (int lmsidx=-1) const |
bool | ensureGenerated (SynthID, TaskRunner *=nullptr, int curlmidx=-1) const |
bool | ensureInstantAttribsDataSet (const TypeSet< SynthID > &, TaskRunner *=nullptr, int curlmidx=-1) const |
Generates all attribs from a same input synthetic. More... | |
bool | ensurePropertyDataSets (TaskRunner *=nullptr, int lmsidx=-1, double zstep=0.001) const |
Generates all properties, or a subselection. More... | |
uiRetVal | errMsg () const |
void | fillPar (IOPar &, const ObjectSet< IOPar > *disppars=nullptr) const |
SynthID | find (const char *nm, int *lmsidx=nullptr) const |
SynthID | find (const PropertyRef &, bool require_generated=false, int lmsidx=-1) const |
SynthID | first (bool prestack, bool require_generated=false, int lmsidx=-1) const |
const TypeSet< SynthGenParams > & | genParams () const |
ConstRefMan< SyntheticData > | getDataSet (SynthID, int lmsidx=-1) const |
ConstRefMan< SyntheticData > | getDataSetByIdx (int, int lmsidx=-1) const |
BufferString | getFinalDataSetName (const char *gpnm, bool isprop=false, int lmsidx=-1) const |
const SynthGenParams * | getGenParams (SynthID) const |
SynthID | getIDByIdx (int) const |
void | getIDs (const MultiID &wvltid, TypeSet< SynthID > &, bool omitempty=false, int lmsidx=-1) const |
void | getIDs (TypeSet< SynthID > &, SubSelType t=NoSubSel, bool omitempty=false, int lmsidx=-1) const |
void | getLevelDepths (Strat::LevelID, TypeSet< float > &zvals, int lmsidx=-1) const |
void | getNames (BufferStringSet &, SubSelType t=NoSubSel, bool omitempty=false, int lmsidx=-1) const |
void | getNames (const MultiID &wvltid, BufferStringSet &, bool omitempty=false, int lmsidx=-1) const |
DataMgr * | getProdMgr () |
may return this More... | |
const DataMgr * | getProdMgr () const |
may return this More... | |
bool | getUnscaledSynthetics (RefObjectSet< const SyntheticData > *, TypeSet< MultiID > *unscaledwvlts, int lmsidx=-1) const |
return true if unscaled synthetics are found More... | |
bool | hasValidDataSet (SynthID, int lmsidx=-1) const |
bool | haveOfType (SynthGenParams::SynthType) const |
int | indexOf (const SyntheticData *, int lmsidx=-1) const |
uiRetVal | infoMsg () const |
bool | isAttribute (SynthID) const |
bool | isElasticPS (SynthID) const |
bool | isElasticStack (SynthID) const |
bool | isEmpty () const |
bool | isFilter (SynthID) const |
bool | isPS (SynthID) const |
bool | isStratProp (SynthID) const |
void | kick () |
const Strat::LayerModel & | layerModel (int lmsidx=-1) const |
const Strat::LayerModelSuite & | layerModelSuite () const |
const StratSynth::LevelSet & | levels (int lmsidx=-1) const |
int | lmsIndexOf (const SyntheticData *) const |
void | modelChange () |
BufferString | nameOf (SynthID) const |
int | nrSequences (int curlmidx=-1) const |
all available More... | |
int | nrTraces (int curlmidx=-1) const |
actual calculated More... | |
bool | removeSynthetic (SynthID) |
RefLayer::Type | requiredRefLayerType () const |
void | setCalcEach (int) |
bool | setElasticProperties (const IOPar &, uiString *msg=nullptr) |
Will set a default if none found. More... | |
void | setEmpty () |
void | setPackLevelTimes (SynthID, Strat::LevelID) const |
void | setWavelet (const Wavelet &wvlt) |
void | synthChange () |
void | touch () const |
bool | updateSynthetic (SynthID, const SynthGenParams &) |
bool | updateSyntheticName (SynthID, const char *newnm) |
bool | updateWavelet (const MultiID &oldwvltid, const MultiID &newwvltid) |
bool | usePar (const IOPar &) |
![]() | |
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 () |
Static Public Member Functions | |
static bool | getAllGenPars (const IOPar &, ObjectSet< SynthGenParams > &) |
static const char * | sKeyNrSynthetics () |
static const char * | sKeySyntheticNr () |
static const char * | sKeySynthetics () |
![]() | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< DataMgr > | elPropSelChanged |
CNotifier< DataMgr, SynthID > | entryAdded |
CNotifier< DataMgr, const TypeSet< SynthID > & > | entryChanged |
CNotifier< DataMgr, const TypeSet< SynthID > & > | entryDisabled |
CNotifier< DataMgr, const TypeSet< SynthID > & > | entryRemoved |
CNotifier< DataMgr, const TypeSet< SynthID > & > | entryRenamed |
CNotifier< DataMgr, const MultiID & > | newWvltUsed |
CNotifier< DataMgr, const BufferStringSet & > | wvltScalingDone |
Private Attributes | |
int | calceach_ = 1 |
DirtyCounter | dirtycount_ |
ObjectSet< ElasticModelSet > | elasticmodelsets_ |
uiRetVal | errmsg_ |
TypeSet< SynthGenParams > | genparams_ |
TypeSet< SynthID > | ids_ |
uiRetVal | infomsg_ |
ObjectSet< StratSynth::LevelSet > | levelsets_ |
ObjectSet< RefObjectSet< const SyntheticData > > | lmdatasets_ |
const Strat::LayerModelSuite & | lms_ |
PtrMan< DataMgr > | prodmgr_ |
bool | swaveinfomsgshown_ = false |
const Wavelet * | wvlt_ = nullptr |
Friends | |
class | PropertyDataSetsCreator |
class | StratSeqSplitter |
manages the synthetics for a set of Layer Models.
The 'key' to adding synthetics is the SynthGenParams object. Adding a synthetic means adding one of those. Actually generating the seismics will require a call of 'ensureGenerated()' for that DataSet ID. This makes sure that the DataSet for the current layer model is available.
Note that this class manages the DataSet's for the multiple LayerModel's in a LayerModelSuite. The LayerModelSuite has the notion of a 'current' LayerModel, which is why you can but do not have to specify the LayerModel index for all DataSet-related operations (int curlmidx=-1).
<>
StratSynth::DataMgr::DataMgr | ( | const Strat::LayerModelSuite & | ) |
StratSynth::DataMgr::DataMgr | ( | const DataMgr & | , |
int | calceach | ||
) |
StratSynth::DataMgr::~DataMgr | ( | ) |
|
private |
bool StratSynth::DataMgr::addInstAttribSynthetics | ( | const SynthID & | inpid, |
const TypeSet< Attrib::Instantaneous::OutType > & | , | ||
TypeSet< SynthID > & | |||
) |
|
private |
|
private |
bool StratSynth::DataMgr::addPropertySynthetics | ( | TypeSet< SynthID > * | = nullptr , |
const BufferStringSet * | propnms = nullptr |
||
) |
SynthID StratSynth::DataMgr::addSynthetic | ( | const SynthGenParams & | ) |
|
private |
|
inline |
bool StratSynth::DataMgr::checkElasticPropSel | ( | const ElasticPropSelection & | , |
const RefLayer::Type * | checktyp = nullptr , |
||
uiString * | msg = nullptr |
||
) | const |
|
private |
|
private |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
inline |
const ElasticModelSet& StratSynth::DataMgr::elasticModels | ( | int | lmsidx = -1 | ) | const |
|
private |
|
private |
|
private |
bool StratSynth::DataMgr::ensureGenerated | ( | SynthID | , |
TaskRunner * | = nullptr , |
||
int | curlmidx = -1 |
||
) | const |
bool StratSynth::DataMgr::ensureInstantAttribsDataSet | ( | const TypeSet< SynthID > & | , |
TaskRunner * | = nullptr , |
||
int | curlmidx = -1 |
||
) | const |
Generates all attribs from a same input synthetic.
|
private |
bool StratSynth::DataMgr::ensurePropertyDataSets | ( | TaskRunner * | = nullptr , |
int | lmsidx = -1 , |
||
double | zstep = 0.001 |
||
) | const |
Generates all properties, or a subselection.
|
inline |
SynthID StratSynth::DataMgr::find | ( | const char * | nm, |
int * | lmsidx = nullptr |
||
) | const |
SynthID StratSynth::DataMgr::find | ( | const PropertyRef & | , |
bool | require_generated = false , |
||
int | lmsidx = -1 |
||
) | const |
SynthID StratSynth::DataMgr::first | ( | bool | prestack, |
bool | require_generated = false , |
||
int | lmsidx = -1 |
||
) | const |
|
private |
|
private |
|
inline |
|
private |
|
static |
|
private |
ConstRefMan<SyntheticData> StratSynth::DataMgr::getDataSet | ( | SynthID | , |
int | lmsidx = -1 |
||
) | const |
ConstRefMan<SyntheticData> StratSynth::DataMgr::getDataSetByIdx | ( | int | , |
int | lmsidx = -1 |
||
) | const |
BufferString StratSynth::DataMgr::getFinalDataSetName | ( | const char * | gpnm, |
bool | isprop = false , |
||
int | lmsidx = -1 |
||
) | const |
const SynthGenParams* StratSynth::DataMgr::getGenParams | ( | SynthID | ) | const |
SynthID StratSynth::DataMgr::getIDByIdx | ( | int | ) | const |
void StratSynth::DataMgr::getIDs | ( | const MultiID & | wvltid, |
TypeSet< SynthID > & | , | ||
bool | omitempty = false , |
||
int | lmsidx = -1 |
||
) | const |
void StratSynth::DataMgr::getIDs | ( | TypeSet< SynthID > & | , |
SubSelType | t = NoSubSel , |
||
bool | omitempty = false , |
||
int | lmsidx = -1 |
||
) | const |
void StratSynth::DataMgr::getLevelDepths | ( | Strat::LevelID | , |
TypeSet< float > & | zvals, | ||
int | lmsidx = -1 |
||
) | const |
void StratSynth::DataMgr::getNames | ( | BufferStringSet & | , |
SubSelType | t = NoSubSel , |
||
bool | omitempty = false , |
||
int | lmsidx = -1 |
||
) | const |
void StratSynth::DataMgr::getNames | ( | const MultiID & | wvltid, |
BufferStringSet & | , | ||
bool | omitempty = false , |
||
int | lmsidx = -1 |
||
) | const |
DataMgr* StratSynth::DataMgr::getProdMgr | ( | ) |
may return this
const DataMgr* StratSynth::DataMgr::getProdMgr | ( | ) | const |
may return this
|
private |
|
private |
|
private |
bool StratSynth::DataMgr::getUnscaledSynthetics | ( | RefObjectSet< const SyntheticData > * | , |
TypeSet< MultiID > * | unscaledwvlts, | ||
int | lmsidx = -1 |
||
) | const |
return true if unscaled synthetics are found
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
bool StratSynth::DataMgr::hasValidDataSet | ( | SynthID | , |
int | lmsidx = -1 |
||
) | const |
|
private |
bool StratSynth::DataMgr::haveOfType | ( | SynthGenParams::SynthType | ) | const |
int StratSynth::DataMgr::indexOf | ( | const SyntheticData * | , |
int | lmsidx = -1 |
||
) | const |
|
inline |
bool StratSynth::DataMgr::isAttribute | ( | SynthID | ) | const |
bool StratSynth::DataMgr::isElasticPS | ( | SynthID | ) | const |
bool StratSynth::DataMgr::isElasticStack | ( | SynthID | ) | const |
bool StratSynth::DataMgr::isEmpty | ( | ) | const |
|
private |
bool StratSynth::DataMgr::isFilter | ( | SynthID | ) | const |
bool StratSynth::DataMgr::isPS | ( | SynthID | ) | const |
bool StratSynth::DataMgr::isStratProp | ( | SynthID | ) | const |
|
private |
void StratSynth::DataMgr::kick | ( | ) |
const Strat::LayerModel& StratSynth::DataMgr::layerModel | ( | int | lmsidx = -1 | ) | const |
|
inline |
const StratSynth::LevelSet& StratSynth::DataMgr::levels | ( | int | lmsidx = -1 | ) | const |
|
private |
int StratSynth::DataMgr::lmsIndexOf | ( | const SyntheticData * | ) | const |
|
private |
|
inline |
BufferString StratSynth::DataMgr::nameOf | ( | SynthID | ) | const |
|
private |
int StratSynth::DataMgr::nrSequences | ( | int | curlmidx = -1 | ) | const |
all available
int StratSynth::DataMgr::nrTraces | ( | int | curlmidx = -1 | ) | const |
actual calculated
bool StratSynth::DataMgr::removeSynthetic | ( | SynthID | ) |
RefLayer::Type StratSynth::DataMgr::requiredRefLayerType | ( | ) | const |
|
private |
void StratSynth::DataMgr::setCalcEach | ( | int | ) |
|
private |
Will set a default if none found.
|
private |
|
inline |
void StratSynth::DataMgr::setPackLevelTimes | ( | SynthID | , |
Strat::LevelID | |||
) | const |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
bool StratSynth::DataMgr::updateSynthetic | ( | SynthID | , |
const SynthGenParams & | |||
) |
bool StratSynth::DataMgr::updateSyntheticName | ( | SynthID | , |
const char * | newnm | ||
) |
bool StratSynth::DataMgr::usePar | ( | const IOPar & | ) |
|
friend |
|
friend |
|
private |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
CNotifier<DataMgr,const BufferStringSet&> StratSynth::DataMgr::wvltScalingDone |
Generated at 02/08/2024 10:20:26 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024