OpendTect  6.3
waveletmanager.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: May 2001 / Mar 2016
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "seismod.h"
14 #include "saveablemanager.h"
15 #include "wavelet.h"
16 
17 
21 { mODTextTranslationClass(Pick::WaveletManager)
22 public:
23 
24  ConstRefMan<Wavelet> fetch(const ObjID&,uiRetVal&) const;
25  RefMan<Wavelet> fetchForEdit(const ObjID&,uiRetVal&);
26  ConstRefMan<Wavelet> fetch(const ObjID&) const;
27  RefMan<Wavelet> fetchForEdit(const ObjID&);
28 
29  ObjID getID(const Wavelet&) const;
30 
31  uiRetVal store(const Wavelet&,const IOPar* ioobjpars=0) const;
33  uiRetVal store(const Wavelet&,const ObjID&,
34  const IOPar* ioobjpars=0) const;
35  uiRetVal save(const ObjID&) const;
36  uiRetVal save(const Wavelet&) const;
37  bool needsSave(const ObjID&) const;
38  bool needsSave(const Wavelet&) const;
39 
40  // Use MonitorLock when iterating
41  ConstRefMan<Wavelet> get(IdxType) const;
42  RefMan<Wavelet> getForEdit(IdxType);
43 
44  bool isScaled(const ObjID&) const;
45  bool getScalingInfo(const ObjID&,ObjID& orgid,
46  DBKey& horid,DBKey& seisid,
47  BufferString& lvlnm) const;
50  void setScalingInfo(const ObjID&,
51  const ObjID* orgid=0,const DBKey* horid=0,
52  const DBKey* seisid=0,const char* lvlnm=0);
55 
56 protected:
57 
59  ~WaveletManager();
60 
61  virtual Saveable* getSaver(const SharedObject&) const;
62 
63  template<class T> T doFetch(const ObjID&,uiRetVal&) const;
64  Wavelet* gtWavelet(const ObjID&) const;
65 
66 public:
67 
69 
70 };
71 
72 
75 {
76  return WaveletManager::getInstance();
77 }
#define mExpClass(module)
Definition: commondefs.h:157
size_type IdxType
Definition: saveablemanager.h:47
Seismics.
Definition: segydirectdef.h:20
short IdxType
Definition: seisblocksdata.h:39
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
#define mDeclareSaveableManagerInstance(typ)
Definition: saveablemanager.h:145
WaveletManager & WaveletMGR()
access to the singleton Wavelet Manager
Definition: waveletmanager.h:74
Definition: sharedobject.h:18
Definition: wavelet.h:22
Object that can be saved at any time.
Definition: saveable.h:23
Manages all stored Wavlets.
Definition: waveletmanager.h:20
Base class for managers of Saveable objects: loading and storing.
Definition: saveablemanager.h:41
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Definition: uistring.h:299
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36

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