OpendTect  6.3
volprocvolreader.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: K. Tingdahl
8  Date: November 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "volumeprocessingmod.h"
14 
15 #include "dbkey.h"
16 #include "volprocstep.h"
17 
18 class IOObj;
19 class Scaler;
20 class SeisTrcReader;
21 class SeisTrcTranslator;
22 
23 
24 namespace VolProc
25 {
26 
30 mExpClass(VolumeProcessing) VolumeReader : public Step
32 public:
34  Step, VolumeReader,
35  "VolumeReader", tr("Input Volume") )
36  ~VolumeReader();
37 
38  bool setVolumeID(const DBKey&);
39  const DBKey& getVolumeID() const { return mid_; }
40 
41  virtual void fillPar(IOPar&) const;
42  virtual bool usePar(const IOPar&);
43  virtual Task* createTask();
44 
45  virtual bool needsFullVolume() const { return false;}
46  virtual bool canInputAndOutputBeSame() const { return true; }
47  virtual bool areSamplesIndependent() const { return true; }
48  virtual bool canHandle2D() const { return true; }
49  virtual bool needsInput() const { return false;}
50 
51 protected:
52 
53  virtual od_int64 extraMemoryUsage(OutputSlotID,
54  const TrcKeySampling&,
55  const StepInterval<int>&) const;
56 
57  bool prepareWork(const IOObj&);
58 
59  static const char* sKeyVolumeID() { return "Volume ID"; }
60 
66 
67 };
68 
69 } // namespace VolProc
ObjectSet< SeisTrcTranslator > translators_
Definition: volprocvolreader.h:63
#define mExpClass(module)
Definition: commondefs.h:157
Definition: ioobj.h:57
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
const DBKey & getVolumeID() const
Definition: volprocvolreader.h:39
virtual bool needsInput() const
Definition: volprocvolreader.h:49
virtual bool canInputAndOutputBeSame() const
Definition: volprocvolreader.h:46
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
#define od_int64
Definition: plftypes.h:34
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:287
reads from a seismic data store.
Definition: seisread.h:43
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Definition: seistrctr.h:85
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:25
virtual bool needsFullVolume() const
Definition: volprocvolreader.h:45
Adapter for a VolProc chain to external attribute calculation.
Definition: velocitygridder.h:29
ObjectSet< Scaler > compscalers_
Definition: volprocvolreader.h:65
int OutputSlotID
Definition: volprocstep.h:47
Scaling of floating point numbers.
Definition: scaler.h:30
TypeSet< int > components_
Definition: volprocvolreader.h:64
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
virtual bool canHandle2D() const
Definition: volprocvolreader.h:48
An algorithm/calculation/transformation that takes one scalar volume as input, processes it...
Definition: volprocstep.h:39
DBKey mid_
Definition: volprocvolreader.h:61
static const char * sKeyVolumeID()
Definition: volprocvolreader.h:59
ObjectSet< SeisTrcReader > readers_
Definition: volprocvolreader.h:62
Reads a volume. Will replace previous values if data is present in the read volume.
Definition: volprocvolreader.h:30
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
virtual bool areSamplesIndependent() const
Definition: volprocvolreader.h:47
Generalization of something (e.g. a computation) that needs to be done in multiple steps...
Definition: task.h:26

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