OpendTect-6_4  6.4
volprocvolreader.h
Go to the documentation of this file.
1 #ifndef volprocvolreader_h
2 #define volprocvolreader_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: November 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "volumeprocessingmod.h"
16 #include "volprocstep.h"
17 #include "multiid.h"
18 
19 class IOObj;
20 class Scaler;
21 class SeisTrcReader;
22 class SeisTrcTranslator;
23 
24 namespace VolProc
25 {
26 
32 mExpClass(VolumeProcessing) VolumeReader : public Step
34 public:
36  Step, VolumeReader,
37  "VolumeReader", tr("Input Volume") )
38  ~VolumeReader();
39 
40  bool needsInput() const { return false; }
41  bool setVolumeID(const MultiID&);
42  const MultiID& getVolumeID() const { return mid_; }
43 
44  void fillPar(IOPar&) const;
45  bool usePar(const IOPar&);
46 
47  bool canInputAndOutputBeSame() const { return true; }
48  bool needsFullVolume() const { return false; }
49  bool canHandle2D() const { return true; }
50 
51  /* mDeprecated (this function will be protected virtual after 6.0) */
52  od_int64 extraMemoryUsage(OutputSlotID,const TrcKeySampling&,
53  const StepInterval<int>&) const;
54 
55 protected:
56 
57  Task* createTask();
58  bool prefersBinIDWise() const { return false; }
59 
60  bool prepareWork(const IOObj&);
61 
62  static const char* sKeyVolumeID() { return "Volume ID"; }
63 
69 
70 };
71 
72 } // namespace VolProc
73 
74 #endif
ObjectSet< SeisTrcTranslator > translators_
Definition: volprocvolreader.h:66
#define mExpClass(module)
Definition: commondefs.h:160
const MultiID & getVolumeID() const
Definition: volprocvolreader.h:42
Definition: ioobj.h:58
bool canHandle2D() const
Definition: volprocvolreader.h:49
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
#define od_int64
Definition: plftypes.h:36
bool prefersBinIDWise() const
Definition: volprocvolreader.h:58
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:289
bool needsInput() const
Definition: volprocvolreader.h:40
reads from a seismic data store.
Definition: seisread.h:50
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: seistrctr.h:90
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
Adapter for a VolProc chain to external attribute calculation.
Definition: seisdatapackwriter.h:25
ObjectSet< Scaler > compscalers_
Definition: volprocvolreader.h:68
bool canInputAndOutputBeSame() const
Definition: volprocvolreader.h:47
int OutputSlotID
Definition: volprocstep.h:47
Scaling of floating point numbers.
Definition: scaler.h:33
TypeSet< int > components_
Definition: volprocvolreader.h:67
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
An algorithm/calculation/transformation that takes one scalar volume as input, processes it...
Definition: volprocstep.h:42
static const char * sKeyVolumeID()
Definition: volprocvolreader.h:62
MultiID mid_
Definition: volprocvolreader.h:64
ObjectSet< SeisTrcReader > readers_
Definition: volprocvolreader.h:65
Reads in a volume. Will replace previous values if data is present in the read volume.
Definition: volprocvolreader.h:32
bool needsFullVolume() const
Definition: volprocvolreader.h:48
Generalization of something (e.g. a computation) that needs to be done in multiple steps...
Definition: task.h:28
Compound key consisting of ints.
Definition: multiid.h:25

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