OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "volumeprocessingmod.h"
15 #include "volprocstep.h"
16 #include "multiid.h"
17 
18 class IOObj;
19 class Scaler;
20 class SeisTrcReader;
21 class SeisTrcTranslator;
22 
23 namespace VolProc
24 {
25 
31 mExpClass(VolumeProcessing) VolumeReader : public Step
33 public:
36  "VolumeReader", tr("Input Volume") )
37  ~VolumeReader();
38 
39  bool needsInput() const { return false; }
40  bool setVolumeID(const MultiID&);
41  const MultiID& getVolumeID() const { return mid_; }
42 
43  void fillPar(IOPar&) const;
44  bool usePar(const IOPar&);
45 
46  bool canInputAndOutputBeSame() const { return true; }
47  bool needsFullVolume() const { return false; }
48  bool canHandle2D() const { return true; }
49 
50  /* mDeprecated (this function will be protected virtual after 6.0) */
52  const StepInterval<int>&) const;
53 
54 protected:
55 
57  bool prefersBinIDWise() const { return false; }
58 
59  bool prepareWork(const IOObj&);
60 
61  static const char* sKeyVolumeID() { return "Volume ID"; }
62 
68 
69 };
70 
71 } // namespace VolProc
72 
TrcKeySampling
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:35
VolProc
Adapter for a VolProc chain to external attribute calculation.
Definition: seisdatapackwriter.h:24
VolProc::VolumeReader::usePar
bool usePar(const IOPar &)
SeisTrcReader
reads from a seismic data store.
Definition: seisread.h:50
ObjectSet< SeisTrcReader >
od_int64
#define od_int64
Definition: plftypes.h:35
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
VolProc::VolumeReader::fillPar
void fillPar(IOPar &) const
VolProc::VolumeReader::compscalers_
ObjectSet< Scaler > compscalers_
Definition: volprocvolreader.h:67
VolProc::VolumeReader
Reads in a volume. Will replace previous values if data is present in the read volume.
Definition: volprocvolreader.h:32
VolProc::VolumeReader::setVolumeID
bool setVolumeID(const MultiID &)
VolProc::VolumeReader::canHandle2D
bool canHandle2D() const
Definition: volprocvolreader.h:48
VolProc::VolumeReader::components_
TypeSet< int > components_
Definition: volprocvolreader.h:66
VolProc::VolumeReader::prefersBinIDWise
bool prefersBinIDWise() const
Definition: volprocvolreader.h:57
multiid.h
StepInterval< int >
Scaler
Scaling of floating point numbers.
Definition: scaler.h:33
Task
Generalization of something (e.g. a computation) that needs to be done in multiple steps.
Definition: task.h:28
VolProc::VolumeReader::mid_
MultiID mid_
Definition: volprocvolreader.h:63
VolProc::VolumeReader::createTask
Task * createTask()
IOObj
Definition: ioobj.h:58
VolProc::VolumeReader::sKeyVolumeID
static const char * sKeyVolumeID()
Definition: volprocvolreader.h:61
SeisTrcTranslator
Definition: seistrctr.h:90
VolProc::VolumeReader::needsFullVolume
bool needsFullVolume() const
Definition: volprocvolreader.h:47
VolProc::Step
An algorithm/calculation/transformation that takes one scalar volume as input, processes it,...
Definition: volprocstep.h:42
VolProc::VolumeReader::getVolumeID
const MultiID & getVolumeID() const
Definition: volprocvolreader.h:41
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
VolProc::VolumeReader::canInputAndOutputBeSame
bool canInputAndOutputBeSame() const
Definition: volprocvolreader.h:46
VolProc::VolumeReader::translators_
ObjectSet< SeisTrcTranslator > translators_
Definition: volprocvolreader.h:65
VolProc::VolumeReader::prepareWork
bool prepareWork(const IOObj &)
volprocstep.h
VolProc::VolumeReader::extraMemoryUsage
od_int64 extraMemoryUsage(OutputSlotID, const TrcKeySampling &, const StepInterval< int > &) const
VolProc::VolumeReader::mDefaultFactoryInstantiation
mDefaultFactoryInstantiation(Step, VolumeReader, "VolumeReader", tr("Input Volume")) ~VolumeReader()
VolProc::VolumeReader::needsInput
bool needsInput() const
Definition: volprocvolreader.h:39
VolProc::Step::OutputSlotID
int OutputSlotID
Definition: volprocstep.h:46
VolProc::VolumeReader::readers_
ObjectSet< SeisTrcReader > readers_
Definition: volprocvolreader.h:64
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
VolProc::VolumeReader::mODTextTranslationClass
mODTextTranslationClass(VolumeReader)
TypeSet< int >

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