OpendTect-6_4  6.4
volproctrans.h
Go to the documentation of this file.
1 #ifndef volproctrans_h
2 #define volproctrans_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: March 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "volumeprocessingmod.h"
16 #include "transl.h"
17 
20 namespace VolProc { class Chain; }
21 
27  : public TranslatorGroup
28 { isTranslatorGroup(VolProcessing);
29 public:
31 
32  const char* defExtension() const { return "vpsetup"; }
33  static const char* sKeyIsVolProcSetup() { return "VolProcSetup"; }
34 
35  //For od_process_volume par-files
36  static const char* sKeyChainID() { return "Chain ID"; }
37  static const char* sKeyOutputID() { return "Output ID"; }
38 };
39 
40 
45 mExpClass(VolumeProcessing) VolProcessingTranslator : public Translator
46 {
47 public:
49 
50  virtual const char* read(VolProc::Chain&,Conn&) = 0;
52  virtual const char* write(const VolProc::Chain&,Conn&) = 0;
54 
55  static bool retrieve(VolProc::Chain&,const IOObj*,
56  uiString&);
57  static bool store(const VolProc::Chain&,const IOObj*,
58  uiString&);
59 };
60 
61 
68 { isTranslator(dgb,VolProcessing)
69 public:
70 
71  mDefEmptyTranslatorConstructor(dgb,VolProcessing)
72 
73  const char* read(VolProc::Chain&,Conn&);
74  const char* write(const VolProc::Chain&,Conn&);
75 
76 };
77 
78 
84  : public TranslatorGroup
85 { isTranslatorGroup(VolProcessing2D);
86 public:
88 
89  const char* defExtension() const { return "vpsetup"; }
90  static const char* sKeyIsVolProcSetup() { return "VolProcSetup2D"; }
91 
92  //For od_process_volume par-files
93  static const char* sKeyChainID() { return "Chain ID"; }
94  static const char* sKeyOutputID() { return "Output ID"; }
95 };
96 
97 
103 {
104 public:
105  mDefEmptyTranslatorBaseConstructor(VolProcessing2D)
106 
107  virtual const char* read(VolProc::Chain&,Conn&) = 0;
109  virtual const char* write(const VolProc::Chain&,Conn&) = 0;
111 
112  static bool retrieve(VolProc::Chain&,const IOObj*,
113  uiString&);
114  static bool store(const VolProc::Chain&,const IOObj*,
115  uiString&);
116 };
117 
118 
125 { isTranslator(dgb,VolProcessing2D)
126 public:
127 
128  mDefEmptyTranslatorConstructor(dgb,VolProcessing2D)
129 
130  const char* read(VolProc::Chain&,Conn&);
131  const char* write(const VolProc::Chain&,Conn&);
132 
133 };
134 
135 #endif
Translator implementation for Volume Processing Setups.
Definition: volproctrans.h:26
#define mExpClass(module)
Definition: commondefs.h:160
static const char * sKeyChainID()
Definition: volproctrans.h:93
Definition: ioobj.h:58
static const char * sKeyOutputID()
Definition: volproctrans.h:94
Volume Processing Translator.
Definition: volproctrans.h:102
static const char * sKeyOutputID()
Definition: volproctrans.h:37
Definition: uistring.h:89
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:267
Group of Translators. Has a static factory.
Definition: transl.h:56
mDefEmptyTranslatorGroupConstructor(VolProcessing2D) const char *defExtension() const
Definition: volproctrans.h:87
A chain of Steps that can be applied to a volume of scalars.
Definition: volprocchain.h:29
dgb Volume Processing Translator
Definition: volproctrans.h:66
Adapter for a VolProc chain to external attribute calculation.
Definition: seisdatapackwriter.h:25
#define mDefEmptyTranslatorBaseConstructor(clss)
Definition: transl.h:261
I/O Interpreter class for a certain object type.
Definition: transl.h:123
Data connection.
Definition: conn.h:30
Volume Processing Translator.
Definition: volproctrans.h:45
static const char * sKeyChainID()
Definition: volproctrans.h:36
dgb Volume Processing Translator
Definition: volproctrans.h:123
Translator implementation for 2D Volume Processing Setups.
Definition: volproctrans.h:83
FixedString Chain()
Definition: keystrs.h:45
static const char * sKeyIsVolProcSetup()
Definition: volproctrans.h:90
mDefEmptyTranslatorGroupConstructor(VolProcessing) const char *defExtension() const
Definition: volproctrans.h:30
#define isTranslatorGroup(clss)
Definition: transl.h:206
static const char * sKeyIsVolProcSetup()
Definition: volproctrans.h:33
#define isTranslator(spec, clss)
Definition: transl.h:230

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