OpendTect  6.6
sectionextender.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: A.H. Bril
8  Date: 23-10-1996
9  Contents: Ranges
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mpeenginemod.h"
16 
17 #include "emposid.h"
18 #include "emobject.h"
19 #include "factory.h"
20 #include "sets.h"
21 #include "sortedlist.h"
22 #include "task.h"
23 #include "trckeyzsampling.h"
24 
25 class TrcKeyValue;
26 
27 namespace MPE
28 {
29 
30 class SectionSourceSelector;
31 
38 {
39 public:
42 
43  virtual void reset();
44  virtual void setDirection(const TrcKeyValue&);
45  virtual const TrcKeyValue* getDirection() const;
46 
47  void setStartPosition(const TrcKey&);
50  bool isExcludedPos(const TrcKey&) const;
51  int nextStep();
52 
53  void extendInVolume(const BinID& bidstep,
54  float zstep);
55 
58 
59  virtual const TrcKeyZSampling& getExtBoundary() const;
62 
63  virtual int maxNrPosInExtArea() const { return -1; }
64  virtual void preallocExtArea() {}
65 
66  const char* errMsg() const;
67  virtual void fillPar(IOPar&) const {}
68  virtual bool usePar(const IOPar&) { return true; }
69 
70  void setUndo(bool yn) { setundo_ = yn; }
71 
72 protected:
73  void addTarget(const TrcKey& target,
74  const TrcKey& src);
75  virtual float getDepth(const TrcKey& src,
76  const TrcKey& target) const;
77  virtual void prepareDataIfRequired() { return; }
78 
82 
84 
86 
89  bool setundo_;
90 };
91 
92 
94  EM::SectionID, ExtenderFactory );
95 
96 } // namespace MPE
97 
emobject.h
sortedlist.h
emposid.h
MPE::SectionExtender::setStartPositions
void setStartPositions(const TypeSet< TrcKey > &)
task.h
factory.h
MPE::SectionExtender::setUndo
void setUndo(bool yn)
Definition: sectionextender.h:70
MPE::SectionExtender::setStartPosition
void setStartPosition(const TrcKey &)
MPE::SectionExtender::unsetExtBoundary
void unsetExtBoundary()
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
MPE::SectionExtender::reset
virtual void reset()
MPE::SectionExtender::errmsg
BufferString errmsg
Definition: sectionextender.h:88
MPE::SectionExtender::prepareDataIfRequired
virtual void prepareDataIfRequired()
Definition: sectionextender.h:77
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
MPE::SectionExtender::errMsg
const char * errMsg() const
MPE
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
MPE::SectionExtender::sid_
const EM::SectionID sid_
Definition: sectionextender.h:87
MPE::SectionExtender::excludePositions
void excludePositions(const TypeSet< TrcKey > *)
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
MPE::SectionExtender::startpos_
TypeSet< TrcKey > startpos_
Definition: sectionextender.h:81
MPE::SectionExtender::getAddedPositions
const TypeSet< TrcKey > & getAddedPositions() const
MPE::SectionExtender::addTarget
void addTarget(const TrcKey &target, const TrcKey &src)
MPE::SectionExtender::getDirection
virtual const TrcKeyValue * getDirection() const
trckeyzsampling.h
MPE::mDefineFactory2Param
mDefineFactory2Param(MPEEngine, SectionExtender, EM::EMObject *, EM::SectionID, ExtenderFactory)
MPE::SectionExtender
SequentialTask to extend the section of an EM object with ID EM::SectionID.
Definition: sectionextender.h:38
TrcKeyValue
Definition: trckeyvalue.h:27
MPE::SectionExtender::usePar
virtual bool usePar(const IOPar &)
Definition: sectionextender.h:68
MPE::SectionExtender::maxNrPosInExtArea
virtual int maxNrPosInExtArea() const
Definition: sectionextender.h:63
MPE::SectionExtender::addedpossrc_
TypeSet< TrcKey > addedpossrc_
Definition: sectionextender.h:80
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
TrcKey
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
EM::SectionID
od_int16 SectionID
Definition: emposid.h:24
MPE::SectionExtender::getExtBoundary
virtual const TrcKeyZSampling & getExtBoundary() const
MPE::SectionExtender::getAddedPositionsSource
const TypeSet< TrcKey > & getAddedPositionsSource() const
MPE::SectionExtender::nextStep
int nextStep()
MPE::SectionExtender::addedpos_
TypeSet< TrcKey > addedpos_
Definition: sectionextender.h:79
MPE::SectionExtender::extendInVolume
void extendInVolume(const BinID &bidstep, float zstep)
MPE::SectionExtender::isExcludedPos
bool isExcludedPos(const TrcKey &) const
MPE::SectionExtender::excludedpos_
const TypeSet< TrcKey > * excludedpos_
Definition: sectionextender.h:83
MPE::SectionExtender::preallocExtArea
virtual void preallocExtArea()
Definition: sectionextender.h:64
EM::EMObject
Base class for all EarthModel objects.
Definition: emobject.h:159
MPE::SectionExtender::setundo_
bool setundo_
Definition: sectionextender.h:89
MPE::SectionExtender::extboundary_
TrcKeyZSampling extboundary_
Definition: sectionextender.h:85
MPE::SectionExtender::setExtBoundary
void setExtBoundary(const TrcKeyZSampling &)
sets.h
MPE::SectionExtender::sectionID
EM::SectionID sectionID() const
MPE::SectionExtender::setDirection
virtual void setDirection(const TrcKeyValue &)
MPE::SectionExtender::SectionExtender
SectionExtender(EM::SectionID si=-1)
SequentialTask
The generalization of something (e.g. a computation) where the steps must be done in sequence,...
Definition: task.h:125
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
MPE::SectionExtender::getDepth
virtual float getDepth(const TrcKey &src, const TrcKey &target) const
MPE::SectionExtender::fillPar
virtual void fillPar(IOPar &) const
Definition: sectionextender.h:67
TypeSet< TrcKey >

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